You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
*/
5
+
6
+
/* @param args Arguments to provide to the example. The following arguments are expected:
7
+
* <ul>
8
+
* <li>The first argument is the OCID of the compartment.</li>
9
+
* </ul>
10
+
* Refer https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/MetricData/PostMetricData for more details.
11
+
* This example uses phoenix metric endpoint https://telemetry-ingestion.us-phoenix-1.oraclecloud.com
12
+
* we can change this to a different region (refer https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/).
console.log("Successfully posted custom metric with name: %s to namespace: %s in region: %s",MetricDataDetails[0].name,MetricDataDetails[0].namespace,common.Region.US_PHOENIX_1._regionId)
85
+
86
+
}catch(error){
87
+
console.log(" Not able to run post metric monitoring example. Error: "+error);
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
*/
5
+
6
+
/* @param args Arguments to provide to the example. The following arguments are expected:
7
+
* <ul>
8
+
* <li>The first argument is the OCID of the compartment.</li>
9
+
* </ul>
10
+
* Refer https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/MetricData/PostMetricData for more details.
11
+
* This example uses phoenix metric endpoint https://telemetry-ingestion.us-phoenix-1.oraclecloud.com
12
+
* we can change this to a different region (refer https://docs.cloud.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/).
0 commit comments