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
Copy file name to clipboardExpand all lines: examples/javascript/monitoring-post-metric.js
+26-20
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
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
4
*/
5
5
6
-
/* @param args Arguments to provide to the example. The following arguments are expected:
6
+
/* @param args Arguments to provide to the example. The following arguments are expected:
7
7
* <ul>
8
8
* <li>The first argument is the OCID of the compartment.</li>
9
9
* </ul>
10
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
11
+
* This example uses phoenix metric endpoint https://telemetry-ingestion.us-phoenix-1.oraclecloud.com
12
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
+
console.log(
87
+
"Successfully posted custom metric with name: %s to namespace: %s in region: %s",
88
+
MetricDataDetails[0].name,
89
+
MetricDataDetails[0].namespace,
90
+
common.Region.US_PHOENIX_1._regionId
91
+
);
86
92
}catch(error){
87
93
console.log(" Not able to run post metric monitoring example. Error: "+error);
Copy file name to clipboardExpand all lines: examples/javascript/uploadmanager.js
+14
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,20 @@
3
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
4
*/
5
5
6
+
/*
7
+
* This Sample take directory path as a commandline argument and
8
+
* uploads all the files present in te directory to objectstorage using upload manager.
9
+
*
10
+
* @param args Arguments to provide to the example. The following arguments are expected:
11
+
* <ul>
12
+
* <li>The first argument is the absloute directory path to read files from.</li>
13
+
* <li>The second argument is the namespaceName</li>
14
+
* <li>The third argument is the name of an existing bucket to uplod object</li>
15
+
* </ul>
16
+
* NodeJS V8 Engine have a buffer size limitation, 2GB for 64-bit machine and 1GB for 32-bit machine.
17
+
* Do not pass in a partSize option greater than the buffer size limitation.
Copy file name to clipboardExpand all lines: examples/typescript/monitoring-post-metric.ts
+25-20
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,12 @@
3
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
4
*/
5
5
6
-
/* @param args Arguments to provide to the example. The following arguments are expected:
6
+
/* @param args Arguments to provide to the example. The following arguments are expected:
7
7
* <ul>
8
8
* <li>The first argument is the OCID of the compartment.</li>
9
9
* </ul>
10
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
11
+
* This example uses phoenix metric endpoint https://telemetry-ingestion.us-phoenix-1.oraclecloud.com
12
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