oci-monitoring 2.76.1 → 2.77.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/lib/client.d.ts +108 -15
- package/lib/client.js +392 -14
- package/lib/client.js.map +1 -1
- package/lib/model/aggregated-datapoint.d.ts +3 -3
- package/lib/model/aggregated-datapoint.js +1 -1
- package/lib/model/alarm-dimension-states-collection.d.ts +4 -4
- package/lib/model/alarm-dimension-states-collection.js +1 -1
- package/lib/model/alarm-dimension-states-entry.d.ts +3 -3
- package/lib/model/alarm-dimension-states-entry.js +1 -1
- package/lib/model/alarm-history-collection.d.ts +2 -2
- package/lib/model/alarm-history-collection.js +1 -1
- package/lib/model/alarm-history-entry.d.ts +5 -5
- package/lib/model/alarm-history-entry.js +1 -1
- package/lib/model/alarm-status-summary.d.ts +6 -6
- package/lib/model/alarm-status-summary.js +1 -1
- package/lib/model/alarm-summary.d.ts +18 -12
- package/lib/model/alarm-summary.js +1 -1
- package/lib/model/alarm-summary.js.map +1 -1
- package/lib/model/alarm-suppression-alarm-target.d.ts +32 -0
- package/lib/model/alarm-suppression-alarm-target.js +58 -0
- package/lib/model/alarm-suppression-alarm-target.js.map +1 -0
- package/lib/model/alarm-suppression-collection.d.ts +32 -0
- package/lib/model/alarm-suppression-collection.js +65 -0
- package/lib/model/alarm-suppression-collection.js.map +1 -0
- package/lib/model/alarm-suppression-history-item-collection.d.ts +32 -0
- package/lib/model/alarm-suppression-history-item-collection.js +65 -0
- package/lib/model/alarm-suppression-history-item-collection.js.map +1 -0
- package/lib/model/alarm-suppression-history-item.d.ts +87 -0
- package/lib/model/alarm-suppression-history-item.js +71 -0
- package/lib/model/alarm-suppression-history-item.js.map +1 -0
- package/lib/model/alarm-suppression-summary.d.ts +114 -0
- package/lib/model/alarm-suppression-summary.js +61 -0
- package/lib/model/alarm-suppression-summary.js.map +1 -0
- package/lib/model/alarm-suppression-target.d.ts +26 -0
- package/lib/model/alarm-suppression-target.js +72 -0
- package/lib/model/alarm-suppression-target.js.map +1 -0
- package/lib/model/alarm-suppression.d.ts +123 -0
- package/lib/model/alarm-suppression.js +71 -0
- package/lib/model/alarm-suppression.js.map +1 -0
- package/lib/model/alarm.d.ts +26 -27
- package/lib/model/alarm.js +1 -1
- package/lib/model/alarm.js.map +1 -1
- package/lib/model/change-alarm-compartment-details.d.ts +1 -1
- package/lib/model/change-alarm-compartment-details.js +1 -1
- package/lib/model/create-alarm-details.d.ts +23 -24
- package/lib/model/create-alarm-details.js +1 -1
- package/lib/model/create-alarm-details.js.map +1 -1
- package/lib/model/create-alarm-suppression-details.d.ts +91 -0
- package/lib/model/create-alarm-suppression-details.js +61 -0
- package/lib/model/create-alarm-suppression-details.js.map +1 -0
- package/lib/model/datapoint.d.ts +3 -3
- package/lib/model/datapoint.js +1 -1
- package/lib/model/failed-metric-record.d.ts +1 -1
- package/lib/model/failed-metric-record.js +1 -1
- package/lib/model/index.d.ts +19 -1
- package/lib/model/index.js +20 -2
- package/lib/model/index.js.map +1 -1
- package/lib/model/list-metrics-details.d.ts +9 -9
- package/lib/model/list-metrics-details.js +1 -1
- package/lib/model/metric-data-details.d.ts +8 -8
- package/lib/model/metric-data-details.js +1 -1
- package/lib/model/metric-data.d.ts +8 -8
- package/lib/model/metric-data.js +1 -1
- package/lib/model/metric.d.ts +5 -5
- package/lib/model/metric.js +1 -1
- package/lib/model/post-metric-data-details.d.ts +2 -2
- package/lib/model/post-metric-data-details.js +1 -1
- package/lib/model/post-metric-data-response-details.d.ts +1 -1
- package/lib/model/post-metric-data-response-details.js +1 -1
- package/lib/model/retrieve-dimension-states-details.d.ts +4 -4
- package/lib/model/retrieve-dimension-states-details.js +1 -1
- package/lib/model/summarize-alarm-suppression-history-details.d.ts +58 -0
- package/lib/model/summarize-alarm-suppression-history-details.js +33 -0
- package/lib/model/summarize-alarm-suppression-history-details.js.map +1 -0
- package/lib/model/summarize-metrics-data-details.d.ts +12 -9
- package/lib/model/summarize-metrics-data-details.js +1 -1
- package/lib/model/summarize-metrics-data-details.js.map +1 -1
- package/lib/model/suppression.d.ts +6 -5
- package/lib/model/suppression.js +1 -1
- package/lib/model/suppression.js.map +1 -1
- package/lib/model/update-alarm-details.d.ts +22 -23
- package/lib/model/update-alarm-details.js +1 -1
- package/lib/model/update-alarm-details.js.map +1 -1
- package/lib/monitoring-waiter.d.ts +9 -1
- package/lib/monitoring-waiter.js +13 -1
- package/lib/monitoring-waiter.js.map +1 -1
- package/lib/request/change-alarm-compartment-request.d.ts +2 -2
- package/lib/request/create-alarm-request.d.ts +1 -1
- package/lib/request/create-alarm-suppression-request.d.ts +39 -0
- package/lib/request/create-alarm-suppression-request.js +15 -0
- package/lib/request/create-alarm-suppression-request.js.map +1 -0
- package/lib/request/delete-alarm-request.d.ts +2 -2
- package/lib/request/delete-alarm-suppression-request.d.ts +35 -0
- package/lib/request/delete-alarm-suppression-request.js +15 -0
- package/lib/request/delete-alarm-suppression-request.js.map +1 -0
- package/lib/request/get-alarm-history-request.d.ts +5 -5
- package/lib/request/get-alarm-request.d.ts +1 -1
- package/lib/request/get-alarm-suppression-request.d.ts +28 -0
- package/lib/request/get-alarm-suppression-request.js +15 -0
- package/lib/request/get-alarm-suppression-request.js.map +1 -0
- package/lib/request/index.d.ts +11 -1
- package/lib/request/index.js +4 -2
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-alarm-suppressions-request.d.ts +83 -0
- package/lib/request/list-alarm-suppressions-request.js +30 -0
- package/lib/request/list-alarm-suppressions-request.js.map +1 -0
- package/lib/request/list-alarms-request.d.ts +5 -5
- package/lib/request/list-alarms-status-request.d.ts +15 -16
- package/lib/request/list-alarms-status-request.js.map +1 -1
- package/lib/request/list-metrics-request.d.ts +3 -3
- package/lib/request/post-metric-data-request.d.ts +1 -1
- package/lib/request/remove-alarm-suppression-request.d.ts +2 -2
- package/lib/request/retrieve-dimension-states-request.d.ts +2 -2
- package/lib/request/summarize-alarm-suppression-history-request.d.ts +52 -0
- package/lib/request/summarize-alarm-suppression-history-request.js +15 -0
- package/lib/request/summarize-alarm-suppression-history-request.js.map +1 -0
- package/lib/request/summarize-metrics-data-request.d.ts +2 -2
- package/lib/request/update-alarm-request.d.ts +2 -2
- package/lib/response/create-alarm-response.d.ts +1 -1
- package/lib/response/create-alarm-suppression-response.d.ts +30 -0
- package/lib/response/create-alarm-suppression-response.js +15 -0
- package/lib/response/create-alarm-suppression-response.js.map +1 -0
- package/lib/response/delete-alarm-suppression-response.d.ts +20 -0
- package/lib/response/delete-alarm-suppression-response.js +15 -0
- package/lib/response/delete-alarm-suppression-response.js.map +1 -0
- package/lib/response/get-alarm-response.d.ts +1 -1
- package/lib/response/get-alarm-suppression-response.d.ts +30 -0
- package/lib/response/get-alarm-suppression-response.js +15 -0
- package/lib/response/get-alarm-suppression-response.js.map +1 -0
- package/lib/response/index.d.ts +11 -1
- package/lib/response/index.js +1 -1
- package/lib/response/list-alarm-suppressions-response.d.ts +39 -0
- package/lib/response/list-alarm-suppressions-response.js +15 -0
- package/lib/response/list-alarm-suppressions-response.js.map +1 -0
- package/lib/response/summarize-alarm-suppression-history-response.d.ts +39 -0
- package/lib/response/summarize-alarm-suppression-history-response.js +15 -0
- package/lib/response/summarize-alarm-suppression-history-response.js.map +1 -0
- package/lib/response/update-alarm-response.d.ts +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Monitoring API
|
|
4
4
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
5
|
-
Endpoints vary by operation. For
|
|
5
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
6
6
|
For more information, see
|
|
7
7
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Monitoring API
|
|
3
3
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
4
|
-
Endpoints vary by operation. For
|
|
4
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
5
5
|
For more information, see
|
|
6
6
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Monitoring API
|
|
4
4
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
5
|
-
Endpoints vary by operation. For
|
|
5
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
6
6
|
For more information, see
|
|
7
7
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Monitoring API
|
|
3
3
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
4
|
-
Endpoints vary by operation. For
|
|
4
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
5
5
|
For more information, see
|
|
6
6
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
7
7
|
|
|
@@ -22,8 +22,8 @@ For more information, see
|
|
|
22
22
|
export interface RetrieveDimensionStatesDetails {
|
|
23
23
|
/**
|
|
24
24
|
* A filter to return only alarm state entries that match the exact set of specified dimension key-value pairs.
|
|
25
|
-
* If you specify
|
|
26
|
-
* and
|
|
25
|
+
* If you specify {@code \"availabilityDomain\": \"phx-ad-1\"} but the alarm state entry corresponds to the set {@code \"availabilityDomain\": \"phx-ad-1\"}
|
|
26
|
+
* and {@code \"resourceId\": \"ocid1.instance.region1.phx.exampleuniqueID\"}, then no results are returned.
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
"dimensionFilters"?: {
|
|
@@ -31,7 +31,7 @@ export interface RetrieveDimensionStatesDetails {
|
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* A filter to return only alarm state entries that match the status value.
|
|
34
|
-
* Example:
|
|
34
|
+
* Example: {@code FIRING}
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
"status"?: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Monitoring API
|
|
4
4
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
5
|
-
Endpoints vary by operation. For
|
|
5
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
6
6
|
For more information, see
|
|
7
7
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
8
8
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monitoring API
|
|
3
|
+
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
4
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
5
|
+
For more information, see
|
|
6
|
+
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20180401
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* The configuration details for returning history of suppressions for the specified alarm.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export interface SummarizeAlarmSuppressionHistoryDetails {
|
|
22
|
+
/**
|
|
23
|
+
* A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs.
|
|
24
|
+
* If you specify {\"availabilityDomain\": \"phx-ad-1\"}
|
|
25
|
+
* and the alarm state entry corresponds to the set {\"availabilityDomain\": \"phx-ad-1\" and \"resourceId\": \"ocid1.instance.region1.phx.exampleuniqueID\"},
|
|
26
|
+
* then this alarm will be included for suppression.
|
|
27
|
+
* <p>
|
|
28
|
+
Example: {@code {\"resourceId\": \"ocid1.instance.region1.phx.exampleuniqueID\"}}
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
"dimensions"?: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* A filter to return only entries with \"timeSuppressFrom\" time occurring on or after the specified time.
|
|
36
|
+
* <p>
|
|
37
|
+
The value cannot be a future time.
|
|
38
|
+
* Format defined by RFC3339.
|
|
39
|
+
* <p>
|
|
40
|
+
Example: {@code 2023-02-01T01:02:29.600Z}
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
"timeSuppressFromGreaterThanOrEqualTo"?: Date;
|
|
44
|
+
/**
|
|
45
|
+
* A filter to return only entries with \"timeSuppressFrom\" time occurring before the specified time.
|
|
46
|
+
* <p>
|
|
47
|
+
The value cannot be a future time.
|
|
48
|
+
* Format defined by RFC3339.
|
|
49
|
+
* <p>
|
|
50
|
+
Example: {@code 2023-02-01T01:02:29.600Z}
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
"timeSuppressFromLessThan"?: Date;
|
|
54
|
+
}
|
|
55
|
+
export declare namespace SummarizeAlarmSuppressionHistoryDetails {
|
|
56
|
+
function getJsonObj(obj: SummarizeAlarmSuppressionHistoryDetails): object;
|
|
57
|
+
function getDeserializedJsonObj(obj: SummarizeAlarmSuppressionHistoryDetails): object;
|
|
58
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Monitoring API
|
|
4
|
+
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
5
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
6
|
+
For more information, see
|
|
7
|
+
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
8
|
+
|
|
9
|
+
* OpenAPI spec version: 20180401
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.SummarizeAlarmSuppressionHistoryDetails = void 0;
|
|
20
|
+
var SummarizeAlarmSuppressionHistoryDetails;
|
|
21
|
+
(function (SummarizeAlarmSuppressionHistoryDetails) {
|
|
22
|
+
function getJsonObj(obj) {
|
|
23
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
24
|
+
return jsonObj;
|
|
25
|
+
}
|
|
26
|
+
SummarizeAlarmSuppressionHistoryDetails.getJsonObj = getJsonObj;
|
|
27
|
+
function getDeserializedJsonObj(obj) {
|
|
28
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
29
|
+
return jsonObj;
|
|
30
|
+
}
|
|
31
|
+
SummarizeAlarmSuppressionHistoryDetails.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
32
|
+
})(SummarizeAlarmSuppressionHistoryDetails = exports.SummarizeAlarmSuppressionHistoryDetails || (exports.SummarizeAlarmSuppressionHistoryDetails = {}));
|
|
33
|
+
//# sourceMappingURL=summarize-alarm-suppression-history-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summarize-alarm-suppression-history-details.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/summarize-alarm-suppression-history-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AA0CH,IAAiB,uCAAuC,CAWvD;AAXD,WAAiB,uCAAuC;IACtD,SAAgB,UAAU,CAAC,GAA4C;QACrE,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,kDAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA4C;QACjF,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,8DAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,uCAAuC,GAAvC,+CAAuC,KAAvC,+CAAuC,QAWvD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Monitoring API
|
|
3
3
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
4
|
-
Endpoints vary by operation. For
|
|
4
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
5
5
|
For more information, see
|
|
6
6
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
7
7
|
|
|
@@ -23,7 +23,7 @@ export interface SummarizeMetricsDataDetails {
|
|
|
23
23
|
/**
|
|
24
24
|
* The source service or application to use when searching for metric data points to aggregate.
|
|
25
25
|
* <p>
|
|
26
|
-
Example:
|
|
26
|
+
Example: {@code oci_computeagent}
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
"namespace": string;
|
|
@@ -31,7 +31,7 @@ export interface SummarizeMetricsDataDetails {
|
|
|
31
31
|
* Resource group that you want to match. A null value returns only metric data that has no resource groups. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric.
|
|
32
32
|
* A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
|
|
33
33
|
* <p>
|
|
34
|
-
Example:
|
|
34
|
+
Example: {@code frontend-fleet}
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
"resourceGroup"?: string;
|
|
@@ -40,7 +40,8 @@ export interface SummarizeMetricsDataDetails {
|
|
|
40
40
|
* aggregate. The query must specify a metric, statistic, and interval.
|
|
41
41
|
* Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges.
|
|
42
42
|
* You can optionally specify dimensions and grouping functions.
|
|
43
|
-
*
|
|
43
|
+
* When specifying a dimension value, surround it with double quotes, and escape each double quote with a backslash ({@code \\}) character.
|
|
44
|
+
* Supported grouping functions: {@code grouping()}, {@code groupBy()}.
|
|
44
45
|
* <p>
|
|
45
46
|
Construct your query to avoid exceeding limits on returned data. See {@link MetricData}.
|
|
46
47
|
* <p>
|
|
@@ -49,7 +50,9 @@ export interface SummarizeMetricsDataDetails {
|
|
|
49
50
|
* For available dimensions, review the metric definition for the supported service. See
|
|
50
51
|
* [Supported Services](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices).
|
|
51
52
|
* <p>
|
|
52
|
-
Example:
|
|
53
|
+
Example 1: {@code CpuUtilization[1m].sum()}
|
|
54
|
+
* <p>
|
|
55
|
+
Example 2 (escaped double quotes for value string): {@code CpuUtilization[1m]{resourceId = \\\"<var><instance_OCID></var>\\\"}.max()}
|
|
53
56
|
*
|
|
54
57
|
*/
|
|
55
58
|
"query": string;
|
|
@@ -58,7 +61,7 @@ export interface SummarizeMetricsDataDetails {
|
|
|
58
61
|
* Format is defined by RFC3339. The response includes metric data points for the startTime.
|
|
59
62
|
* Default value: the timestamp 3 hours before the call was sent.
|
|
60
63
|
* <p>
|
|
61
|
-
Example:
|
|
64
|
+
Example: {@code 2023-02-01T01:02:29.600Z}
|
|
62
65
|
*
|
|
63
66
|
*/
|
|
64
67
|
"startTime"?: Date;
|
|
@@ -67,7 +70,7 @@ export interface SummarizeMetricsDataDetails {
|
|
|
67
70
|
* Format is defined by RFC3339. The response excludes metric data points for the endTime.
|
|
68
71
|
* Default value: the timestamp representing when the call was sent.
|
|
69
72
|
* <p>
|
|
70
|
-
Example:
|
|
73
|
+
Example: {@code 2023-02-01T02:02:29.600Z}
|
|
71
74
|
*
|
|
72
75
|
*/
|
|
73
76
|
"endTime"?: Date;
|
|
@@ -76,9 +79,9 @@ export interface SummarizeMetricsDataDetails {
|
|
|
76
79
|
* frequency for returning aggregated data points. For example, use a query interval of
|
|
77
80
|
* 5 minutes with a resolution of 1 minute to retrieve five-minute aggregations at a one-minute
|
|
78
81
|
* frequency. The resolution must be equal or less than the interval in the query. The default
|
|
79
|
-
* resolution is 1m (one minute). Supported values:
|
|
82
|
+
* resolution is 1m (one minute). Supported values: {@code 1m}-{@code 60m}, {@code 1h}-{@code 24h}, {@code 1d}.
|
|
80
83
|
* <p>
|
|
81
|
-
Example:
|
|
84
|
+
Example: {@code 5m}
|
|
82
85
|
*
|
|
83
86
|
*/
|
|
84
87
|
"resolution"?: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Monitoring API
|
|
4
4
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
5
|
-
Endpoints vary by operation. For
|
|
5
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
6
6
|
For more information, see
|
|
7
7
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summarize-metrics-data-details.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/summarize-metrics-data-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;
|
|
1
|
+
{"version":3,"file":"summarize-metrics-data-details.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/summarize-metrics-data-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AA8EH,IAAiB,2BAA2B,CAW3C;AAXD,WAAiB,2BAA2B;IAC1C,SAAgB,UAAU,CAAC,GAAgC;QACzD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,sCAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAgC;QACrE,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,kDAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAW3C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Monitoring API
|
|
3
3
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
4
|
-
Endpoints vary by operation. For
|
|
4
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
5
5
|
For more information, see
|
|
6
6
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
7
7
|
|
|
@@ -15,7 +15,8 @@ For more information, see
|
|
|
15
15
|
* 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.
|
|
16
16
|
*/
|
|
17
17
|
/**
|
|
18
|
-
* The configuration details for
|
|
18
|
+
* The configuration details for an alarm-wide suppression.
|
|
19
|
+
* For dimension-specific suppressions, see {@link AlarmSuppression}.
|
|
19
20
|
* For information about alarms, see
|
|
20
21
|
* [Alarms Overview](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview).
|
|
21
22
|
*
|
|
@@ -29,21 +30,21 @@ export interface Suppression {
|
|
|
29
30
|
Oracle recommends including tracking information for the event or associated work,
|
|
30
31
|
* such as a ticket number.
|
|
31
32
|
* <p>
|
|
32
|
-
Example:
|
|
33
|
+
Example: {@code Planned outage due to change IT-1234.}
|
|
33
34
|
*
|
|
34
35
|
*/
|
|
35
36
|
"description"?: string;
|
|
36
37
|
/**
|
|
37
38
|
* The start date and time for the suppression to take place, inclusive. Format defined by RFC3339.
|
|
38
39
|
* <p>
|
|
39
|
-
Example:
|
|
40
|
+
Example: {@code 2023-02-01T01:02:29.600Z}
|
|
40
41
|
*
|
|
41
42
|
*/
|
|
42
43
|
"timeSuppressFrom": Date;
|
|
43
44
|
/**
|
|
44
45
|
* The end date and time for the suppression to take place, inclusive. Format defined by RFC3339.
|
|
45
46
|
* <p>
|
|
46
|
-
Example:
|
|
47
|
+
Example: {@code 2023-02-01T02:02:29.600Z}
|
|
47
48
|
*
|
|
48
49
|
*/
|
|
49
50
|
"timeSuppressUntil": Date;
|
package/lib/model/suppression.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Monitoring API
|
|
4
4
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
5
|
-
Endpoints vary by operation. For
|
|
5
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
6
6
|
For more information, see
|
|
7
7
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suppression.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/suppression.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;
|
|
1
|
+
{"version":3,"file":"suppression.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/suppression.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAyCH,IAAiB,WAAW,CAW3B;AAXD,WAAiB,WAAW;IAC1B,SAAgB,UAAU,CAAC,GAAgB;QACzC,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,sBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAgB;QACrD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,kCAAsB,yBAIrC,CAAA;AACH,CAAC,EAXgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAW3B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Monitoring API
|
|
3
3
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
4
|
-
Endpoints vary by operation. For
|
|
4
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
5
5
|
For more information, see
|
|
6
6
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
7
7
|
|
|
@@ -26,7 +26,7 @@ export interface UpdateAlarmDetails {
|
|
|
26
26
|
* <p>
|
|
27
27
|
This value determines the title of each alarm notification.
|
|
28
28
|
* <p>
|
|
29
|
-
Example:
|
|
29
|
+
Example: {@code High CPU Utilization}
|
|
30
30
|
*
|
|
31
31
|
*/
|
|
32
32
|
"displayName"?: string;
|
|
@@ -48,14 +48,14 @@ export interface UpdateAlarmDetails {
|
|
|
48
48
|
* then the call is rejected. When false, the alarm evaluates metrics from only the compartment specified
|
|
49
49
|
* in metricCompartmentId. Default is false.
|
|
50
50
|
* <p>
|
|
51
|
-
Example:
|
|
51
|
+
Example: {@code true}
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
54
|
"metricCompartmentIdInSubtree"?: boolean;
|
|
55
55
|
/**
|
|
56
56
|
* The source service or application emitting the metric that is evaluated by the alarm.
|
|
57
57
|
* <p>
|
|
58
|
-
Example:
|
|
58
|
+
Example: {@code oci_computeagent}
|
|
59
59
|
*
|
|
60
60
|
*/
|
|
61
61
|
"namespace"?: string;
|
|
@@ -64,7 +64,7 @@ export interface UpdateAlarmDetails {
|
|
|
64
64
|
* A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).
|
|
65
65
|
* Avoid entering confidential information.
|
|
66
66
|
* <p>
|
|
67
|
-
Example:
|
|
67
|
+
Example: {@code frontend-fleet}
|
|
68
68
|
*
|
|
69
69
|
*/
|
|
70
70
|
"resourceGroup"?: string;
|
|
@@ -75,7 +75,7 @@ export interface UpdateAlarmDetails {
|
|
|
75
75
|
* rule condition has been met. The query must specify a metric, statistic, interval, and trigger
|
|
76
76
|
* rule (threshold or absence). Supported values for interval depend on the specified time range. More
|
|
77
77
|
* interval values are supported for smaller time ranges. You can optionally
|
|
78
|
-
* specify dimensions and grouping functions. Supported grouping functions:
|
|
78
|
+
* specify dimensions and grouping functions. Supported grouping functions: {@code grouping()}, {@code groupBy()}.
|
|
79
79
|
* For information about writing MQL expressions, see
|
|
80
80
|
* [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm).
|
|
81
81
|
* For details about MQL, see
|
|
@@ -102,7 +102,7 @@ export interface UpdateAlarmDetails {
|
|
|
102
102
|
*/
|
|
103
103
|
"query"?: string;
|
|
104
104
|
/**
|
|
105
|
-
* The time between calculated aggregation windows for the alarm. Supported value:
|
|
105
|
+
* The time between calculated aggregation windows for the alarm. Supported value: {@code 1m}
|
|
106
106
|
*
|
|
107
107
|
*/
|
|
108
108
|
"resolution"?: string;
|
|
@@ -112,7 +112,7 @@ export interface UpdateAlarmDetails {
|
|
|
112
112
|
* alarm must persist in breaching the condition for five minutes before the alarm updates its
|
|
113
113
|
* state to \"FIRING\".
|
|
114
114
|
* <p>
|
|
115
|
-
The duration is specified as a string in ISO 8601 format (
|
|
115
|
+
The duration is specified as a string in ISO 8601 format ({@code PT10M} for ten minutes or {@code PT1H}
|
|
116
116
|
* for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M.
|
|
117
117
|
* <p>
|
|
118
118
|
Under the default value of PT1M, the first evaluation that breaches the alarm updates the
|
|
@@ -121,14 +121,14 @@ export interface UpdateAlarmDetails {
|
|
|
121
121
|
The alarm updates its status to \"OK\" when the breaching condition has been clear for
|
|
122
122
|
* the most recent minute.
|
|
123
123
|
* <p>
|
|
124
|
-
Example:
|
|
124
|
+
Example: {@code PT5M}
|
|
125
125
|
*
|
|
126
126
|
*/
|
|
127
127
|
"pendingDuration"?: string;
|
|
128
128
|
/**
|
|
129
129
|
* The perceived severity of the alarm with regard to the affected system.
|
|
130
130
|
* <p>
|
|
131
|
-
Example:
|
|
131
|
+
Example: {@code CRITICAL}
|
|
132
132
|
*
|
|
133
133
|
*/
|
|
134
134
|
"severity"?: string;
|
|
@@ -137,21 +137,21 @@ export interface UpdateAlarmDetails {
|
|
|
137
137
|
* to operators for resolving the alarm condition. Consider adding links to standard runbook
|
|
138
138
|
* practices. Avoid entering confidential information.
|
|
139
139
|
* <p>
|
|
140
|
-
Example:
|
|
140
|
+
Example: {@code High CPU usage alert. Follow runbook instructions for resolution.}
|
|
141
141
|
*
|
|
142
142
|
*/
|
|
143
143
|
"body"?: string;
|
|
144
144
|
/**
|
|
145
|
-
* When set to
|
|
146
|
-
* When set to
|
|
145
|
+
* When set to {@code true}, splits alarm notifications per metric stream.
|
|
146
|
+
* When set to {@code false}, groups alarm notifications across metric streams.
|
|
147
147
|
*
|
|
148
148
|
*/
|
|
149
149
|
"isNotificationsPerMetricDimensionEnabled"?: boolean;
|
|
150
150
|
/**
|
|
151
151
|
* The format to use for alarm notifications. The formats are:
|
|
152
|
-
* *
|
|
153
|
-
* *
|
|
154
|
-
* *
|
|
152
|
+
* * {@code RAW} - Raw JSON blob. Default value. When the {@code destinations} attribute specifies {@code Streaming}, all alarm notifications use this format.
|
|
153
|
+
* * {@code PRETTY_JSON}: JSON with new lines and indents. Available when the {@code destinations} attribute specifies {@code Notifications} only.
|
|
154
|
+
* * {@code ONS_OPTIMIZED}: Simplified, user-friendly layout. Available when the {@code destinations} attribute specifies {@code Notifications} only. Applies to Email subscription types only.
|
|
155
155
|
*
|
|
156
156
|
*/
|
|
157
157
|
"messageFormat"?: UpdateAlarmDetails.MessageFormat;
|
|
@@ -159,20 +159,19 @@ export interface UpdateAlarmDetails {
|
|
|
159
159
|
* A list of destinations for alarm notifications.
|
|
160
160
|
* Each destination is represented by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
|
|
161
161
|
* of a related resource, such as a {@link NotificationTopic}.
|
|
162
|
-
* Supported destination services: Notifications
|
|
163
|
-
* , Streaming.
|
|
162
|
+
* Supported destination services: Notifications, Streaming.
|
|
164
163
|
* Limit: One destination per supported destination service.
|
|
165
164
|
*
|
|
166
165
|
*/
|
|
167
166
|
"destinations"?: Array<string>;
|
|
168
167
|
/**
|
|
169
168
|
* The frequency for re-submitting alarm notifications, if the alarm keeps firing without
|
|
170
|
-
* interruption. Format defined by ISO 8601. For example,
|
|
169
|
+
* interruption. Format defined by ISO 8601. For example, {@code PT4H} indicates four hours.
|
|
171
170
|
* Minimum: PT1M. Maximum: P30D.
|
|
172
171
|
* <p>
|
|
173
172
|
Default value: null (notifications are not re-submitted).
|
|
174
173
|
* <p>
|
|
175
|
-
Example:
|
|
174
|
+
Example: {@code PT2H}
|
|
176
175
|
*
|
|
177
176
|
*/
|
|
178
177
|
"repeatNotificationDuration"?: string;
|
|
@@ -184,13 +183,13 @@ export interface UpdateAlarmDetails {
|
|
|
184
183
|
/**
|
|
185
184
|
* Whether the alarm is enabled.
|
|
186
185
|
* <p>
|
|
187
|
-
Example:
|
|
186
|
+
Example: {@code true}
|
|
188
187
|
*
|
|
189
188
|
*/
|
|
190
189
|
"isEnabled"?: boolean;
|
|
191
190
|
/**
|
|
192
191
|
* Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
|
|
193
|
-
* Example:
|
|
192
|
+
* Example: {@code {\"Department\": \"Finance\"}}
|
|
194
193
|
*
|
|
195
194
|
*/
|
|
196
195
|
"freeformTags"?: {
|
|
@@ -198,7 +197,7 @@ export interface UpdateAlarmDetails {
|
|
|
198
197
|
};
|
|
199
198
|
/**
|
|
200
199
|
* Usage of predefined tag keys. These predefined keys are scoped to namespaces.
|
|
201
|
-
* Example:
|
|
200
|
+
* Example: {@code {\"Operations\": {\"CostCenter\": \"42\"}}}
|
|
202
201
|
*
|
|
203
202
|
*/
|
|
204
203
|
"definedTags"?: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Monitoring API
|
|
4
4
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
5
|
-
Endpoints vary by operation. For
|
|
5
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
6
6
|
For more information, see
|
|
7
7
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
8
8
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-alarm-details.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/update-alarm-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"update-alarm-details.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/update-alarm-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA6LlC,IAAiB,kBAAkB,CA6BlC;AA7BD,WAAiB,kBAAkB;IACjC,IAAY,aAIX;IAJD,WAAY,aAAa;QACvB,4BAAW,CAAA;QACX,2CAA0B,CAAA;QAC1B,+CAA8B,CAAA;IAChC,CAAC,EAJW,aAAa,GAAb,gCAAa,KAAb,gCAAa,QAIxB;IAED,SAAgB,UAAU,CAAC,GAAuB;QAChD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,aAAa,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS;SAC3F,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,6BAAU,aASzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAuB;QAC5D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,CAAC,GAAG,CAAC,WAAW,CAAC;gBAC3D,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,yCAAsB,yBAWrC,CAAA;AACH,CAAC,EA7BgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QA6BlC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Monitoring API
|
|
3
3
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
4
|
-
Endpoints vary by operation. For
|
|
4
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
5
5
|
For more information, see
|
|
6
6
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
7
7
|
|
|
@@ -30,4 +30,12 @@ export declare class MonitoringWaiter {
|
|
|
30
30
|
* @return response returns GetAlarmResponse | null (null in case of 404 response)
|
|
31
31
|
*/
|
|
32
32
|
forAlarm(request: serviceRequests.GetAlarmRequest, ...targetStates: models.Alarm.LifecycleState[]): Promise<serviceResponses.GetAlarmResponse | null>;
|
|
33
|
+
/**
|
|
34
|
+
* Waits forAlarmSuppression till it reaches any of the provided states
|
|
35
|
+
*
|
|
36
|
+
* @param request the request to send
|
|
37
|
+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
|
|
38
|
+
* @return response returns GetAlarmSuppressionResponse | null (null in case of 404 response)
|
|
39
|
+
*/
|
|
40
|
+
forAlarmSuppression(request: serviceRequests.GetAlarmSuppressionRequest, ...targetStates: models.AlarmSuppression.LifecycleState[]): Promise<serviceResponses.GetAlarmSuppressionResponse | null>;
|
|
33
41
|
}
|
package/lib/monitoring-waiter.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Monitoring API
|
|
4
4
|
* Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources.
|
|
5
|
-
Endpoints vary by operation. For
|
|
5
|
+
Endpoints vary by operation. For PostMetricData, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints.
|
|
6
6
|
For more information, see
|
|
7
7
|
[the Monitoring documentation](/iaas/Content/Monitoring/home.htm).
|
|
8
8
|
|
|
@@ -64,6 +64,18 @@ class MonitoringWaiter {
|
|
|
64
64
|
return oci_common_1.genericTerminalConditionWaiter(this.config, () => this.client.getAlarm(request), response => targetStates.includes(response.alarm.lifecycleState), targetStates.includes(models.Alarm.LifecycleState.Deleted));
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Waits forAlarmSuppression till it reaches any of the provided states
|
|
69
|
+
*
|
|
70
|
+
* @param request the request to send
|
|
71
|
+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
|
|
72
|
+
* @return response returns GetAlarmSuppressionResponse | null (null in case of 404 response)
|
|
73
|
+
*/
|
|
74
|
+
forAlarmSuppression(request, ...targetStates) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
return oci_common_1.genericTerminalConditionWaiter(this.config, () => this.client.getAlarmSuppression(request), response => targetStates.includes(response.alarmSuppression.lifecycleState), targetStates.includes(models.AlarmSuppression.LifecycleState.Deleted));
|
|
77
|
+
});
|
|
78
|
+
}
|
|
67
79
|
}
|
|
68
80
|
exports.MonitoringWaiter = MonitoringWaiter;
|
|
69
81
|
//# sourceMappingURL=monitoring-waiter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monitoring-waiter.js","sourceRoot":"","sources":["../../../../lib/monitoring/lib/monitoring-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;AAEhG,MAAa,gBAAgB;IAC3B,YACU,MAAwB,EACf,MAA4B;QADrC,WAAM,GAAN,MAAM,CAAkB;QACf,WAAM,GAAN,MAAM,CAAsB;IAC5C,CAAC;IAEJ;;;;;;OAMG;IACU,QAAQ,CACnB,OAAwC,EACxC,GAAG,YAA2C;;YAE9C,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EACnC,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAe,CAAC,EACjE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAC3D,CAAC;QACJ,CAAC;KAAA;CACF;
|
|
1
|
+
{"version":3,"file":"monitoring-waiter.js","sourceRoot":"","sources":["../../../../lib/monitoring/lib/monitoring-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;AAEhG,MAAa,gBAAgB;IAC3B,YACU,MAAwB,EACf,MAA4B;QADrC,WAAM,GAAN,MAAM,CAAkB;QACf,WAAM,GAAN,MAAM,CAAsB;IAC5C,CAAC;IAEJ;;;;;;OAMG;IACU,QAAQ,CACnB,OAAwC,EACxC,GAAG,YAA2C;;YAE9C,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EACnC,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAe,CAAC,EACjE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAC3D,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;OAMG;IACU,mBAAmB,CAC9B,OAAmD,EACnD,GAAG,YAAsD;;YAEzD,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAC9C,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC,cAAe,CAAC,EAC5E,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,CACtE,CAAC;QACJ,CAAC;KAAA;CACF;AA3CD,4CA2CC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import * as model from "../model";
|
|
14
14
|
import common = require("oci-common");
|
|
15
15
|
/**
|
|
16
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/monitoring/ChangeAlarmCompartment.ts.html |here} to see how to use ChangeAlarmCompartmentRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface ChangeAlarmCompartmentRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
|
@@ -26,7 +26,7 @@ export interface ChangeAlarmCompartmentRequest extends common.BaseRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
"changeAlarmCompartmentDetails": model.ChangeAlarmCompartmentDetails;
|
|
28
28
|
/**
|
|
29
|
-
* For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
|
29
|
+
* For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code if-match}
|
|
30
30
|
* parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
31
31
|
* will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
32
32
|
*
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import * as model from "../model";
|
|
14
14
|
import common = require("oci-common");
|
|
15
15
|
/**
|
|
16
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/monitoring/CreateAlarm.ts.html |here} to see how to use CreateAlarmRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateAlarmRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*
|
|
4
|
+
* OpenAPI spec version: 20180401
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* 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.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
import common = require("oci-common");
|
|
15
|
+
/**
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/monitoring/CreateAlarmSuppression.ts.html |here} to see how to use CreateAlarmSuppressionRequest.
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateAlarmSuppressionRequest extends common.BaseRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The details of the alarm suppression to be created
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
"createAlarmSuppressionDetails": model.CreateAlarmSuppressionDetails;
|
|
24
|
+
/**
|
|
25
|
+
* Customer part of the request identifier token. If you need to contact Oracle about a particular
|
|
26
|
+
* request, please provide the complete request ID.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
"opcRequestId"?: string;
|
|
30
|
+
/**
|
|
31
|
+
* A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
32
|
+
* server error without risk of executing that same action again. Retry tokens expire after 24
|
|
33
|
+
* hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
|
34
|
+
* has been deleted and purged from the system, then a retry of the original creation request
|
|
35
|
+
* might be rejected.
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
"opcRetryToken"?: string;
|
|
39
|
+
}
|