oci-monitoring 2.94.0 → 2.95.0

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.
Files changed (38) hide show
  1. package/lib/client.d.ts +17 -8
  2. package/lib/client.js +22 -8
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/alarm-status-summary.d.ts +7 -6
  5. package/lib/model/alarm-status-summary.js.map +1 -1
  6. package/lib/model/alarm-suppression-collection.d.ts +2 -2
  7. package/lib/model/alarm-suppression-compartment-target.d.ts +43 -0
  8. package/lib/model/alarm-suppression-compartment-target.js +58 -0
  9. package/lib/model/alarm-suppression-compartment-target.js.map +1 -0
  10. package/lib/model/alarm-suppression-history-item.d.ts +11 -1
  11. package/lib/model/alarm-suppression-history-item.js +10 -0
  12. package/lib/model/alarm-suppression-history-item.js.map +1 -1
  13. package/lib/model/alarm-suppression-summary.d.ts +20 -3
  14. package/lib/model/alarm-suppression-summary.js +10 -0
  15. package/lib/model/alarm-suppression-summary.js.map +1 -1
  16. package/lib/model/alarm-suppression-target.js +4 -0
  17. package/lib/model/alarm-suppression-target.js.map +1 -1
  18. package/lib/model/alarm-suppression.d.ts +29 -3
  19. package/lib/model/alarm-suppression.js +20 -0
  20. package/lib/model/alarm-suppression.js.map +1 -1
  21. package/lib/model/create-alarm-suppression-details.d.ts +23 -4
  22. package/lib/model/create-alarm-suppression-details.js +10 -0
  23. package/lib/model/create-alarm-suppression-details.js.map +1 -1
  24. package/lib/model/index.d.ts +6 -0
  25. package/lib/model/index.js +7 -1
  26. package/lib/model/index.js.map +1 -1
  27. package/lib/model/recurrence.d.ts +44 -0
  28. package/lib/model/recurrence.js +56 -0
  29. package/lib/model/recurrence.js.map +1 -0
  30. package/lib/model/suppression-condition.d.ts +27 -0
  31. package/lib/model/suppression-condition.js +72 -0
  32. package/lib/model/suppression-condition.js.map +1 -0
  33. package/lib/model/suppression.d.ts +7 -6
  34. package/lib/model/suppression.js.map +1 -1
  35. package/lib/request/list-alarm-suppressions-request.d.ts +54 -5
  36. package/lib/request/list-alarm-suppressions-request.js +5 -0
  37. package/lib/request/list-alarm-suppressions-request.js.map +1 -1
  38. package/package.json +3 -3
@@ -46,6 +46,8 @@ var AlarmSuppressionTarget;
46
46
  switch (obj.targetType) {
47
47
  case "ALARM":
48
48
  return model.AlarmSuppressionAlarmTarget.getJsonObj(jsonObj, true);
49
+ case "COMPARTMENT":
50
+ return model.AlarmSuppressionCompartmentTarget.getJsonObj(jsonObj, true);
49
51
  default:
50
52
  if (common.LOG.logger)
51
53
  common.LOG.logger.info(`Unknown value for: ${obj.targetType}`);
@@ -60,6 +62,8 @@ var AlarmSuppressionTarget;
60
62
  switch (obj.targetType) {
61
63
  case "ALARM":
62
64
  return model.AlarmSuppressionAlarmTarget.getDeserializedJsonObj(jsonObj, true);
65
+ case "COMPARTMENT":
66
+ return model.AlarmSuppressionCompartmentTarget.getDeserializedJsonObj(jsonObj, true);
63
67
  default:
64
68
  if (common.LOG.logger)
65
69
  common.LOG.logger.info(`Unknown value for: ${obj.targetType}`);
@@ -1 +1 @@
1
- {"version":3,"file":"alarm-suppression-target.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/alarm-suppression-target.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,sBAAsB,CAiCtC;AAjCD,WAAiB,sBAAsB;IACrC,SAAgB,UAAU,CAAC,GAA2B;QACpD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,2BAA2B,CAAC,UAAU,CACL,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,iCAAU,aAezB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA2B;QAChE,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,2BAA2B,CAAC,sBAAsB,CACjB,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,6CAAsB,yBAerC,CAAA;AACH,CAAC,EAjCgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAiCtC"}
1
+ {"version":3,"file":"alarm-suppression-target.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/alarm-suppression-target.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAStC,IAAiB,sBAAsB,CA2CtC;AA3CD,WAAiB,sBAAsB;IACrC,SAAgB,UAAU,CAAC,GAA2B;QACpD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,2BAA2B,CAAC,UAAU,CACL,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,aAAa;oBAChB,OAAO,KAAK,CAAC,iCAAiC,CAAC,UAAU,CACL,OAAQ,EAC1D,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,iCAAU,aAoBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA2B;QAChE,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,YAAY,IAAI,GAAG,IAAI,GAAG,CAAC,UAAU,EAAE;YAChD,QAAQ,GAAG,CAAC,UAAU,EAAE;gBACtB,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,2BAA2B,CAAC,sBAAsB,CACjB,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,aAAa;oBAChB,OAAO,KAAK,CAAC,iCAAiC,CAAC,sBAAsB,CACjB,OAAQ,EAC1D,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;aACzF;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IApBe,6CAAsB,yBAoBrC,CAAA;AACH,CAAC,EA3CgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QA2CtC"}
@@ -16,7 +16,7 @@ For more information, see
16
16
  */
17
17
  import * as model from "../model";
18
18
  /**
19
- * The configuration details for a dimension-specific alarm suppression.
19
+ * The configuration details for an alarm suppression.
20
20
  *
21
21
  */
22
22
  export interface AlarmSuppression {
@@ -28,7 +28,24 @@ export interface AlarmSuppression {
28
28
  * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm suppression.
29
29
  */
30
30
  "compartmentId": string;
31
- "alarmSuppressionTarget": model.AlarmSuppressionAlarmTarget;
31
+ "alarmSuppressionTarget": model.AlarmSuppressionAlarmTarget | model.AlarmSuppressionCompartmentTarget;
32
+ /**
33
+ * The level of this alarm suppression.
34
+ * {@code ALARM} indicates a suppression of the entire alarm, regardless of dimension.
35
+ * {@code DIMENSION} indicates a suppression configured for specified dimensions.
36
+ *
37
+ */
38
+ "level": AlarmSuppression.Level;
39
+ /**
40
+ * Array of all preconditions for alarm suppression.
41
+ * Example: {@code [{
42
+ * conditionType: \"RECURRENCE\",
43
+ * suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\",
44
+ * suppressionDuration: \"PT1H\"
45
+ * }]}
46
+ *
47
+ */
48
+ "suppressionConditions"?: Array<model.SuppressionCondition>;
32
49
  /**
33
50
  * A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
34
51
  */
@@ -51,7 +68,7 @@ export interface AlarmSuppression {
51
68
  Example: {@code {\"resourceId\": \"ocid1.instance.region1.phx.exampleuniqueID\"}}
52
69
  *
53
70
  */
54
- "dimensions": {
71
+ "dimensions"?: {
55
72
  [key: string]: string;
56
73
  };
57
74
  /**
@@ -109,6 +126,15 @@ export interface AlarmSuppression {
109
126
  };
110
127
  }
111
128
  export declare namespace AlarmSuppression {
129
+ enum Level {
130
+ Alarm = "ALARM",
131
+ Dimension = "DIMENSION",
132
+ /**
133
+ * This value is used if a service returns a value for this enum that is not recognized by this
134
+ * version of the SDK.
135
+ */
136
+ UnknownValue = "UNKNOWN_VALUE"
137
+ }
112
138
  enum LifecycleState {
113
139
  Active = "ACTIVE",
114
140
  Deleted = "DELETED",
@@ -39,6 +39,16 @@ exports.AlarmSuppression = void 0;
39
39
  const model = __importStar(require("../model"));
40
40
  var AlarmSuppression;
41
41
  (function (AlarmSuppression) {
42
+ let Level;
43
+ (function (Level) {
44
+ Level["Alarm"] = "ALARM";
45
+ Level["Dimension"] = "DIMENSION";
46
+ /**
47
+ * This value is used if a service returns a value for this enum that is not recognized by this
48
+ * version of the SDK.
49
+ */
50
+ Level["UnknownValue"] = "UNKNOWN_VALUE";
51
+ })(Level = AlarmSuppression.Level || (AlarmSuppression.Level = {}));
42
52
  let LifecycleState;
43
53
  (function (LifecycleState) {
44
54
  LifecycleState["Active"] = "ACTIVE";
@@ -53,6 +63,11 @@ var AlarmSuppression;
53
63
  const jsonObj = Object.assign(Object.assign({}, obj), {
54
64
  "alarmSuppressionTarget": obj.alarmSuppressionTarget
55
65
  ? model.AlarmSuppressionTarget.getJsonObj(obj.alarmSuppressionTarget)
66
+ : undefined,
67
+ "suppressionConditions": obj.suppressionConditions
68
+ ? obj.suppressionConditions.map(item => {
69
+ return model.SuppressionCondition.getJsonObj(item);
70
+ })
56
71
  : undefined
57
72
  });
58
73
  return jsonObj;
@@ -62,6 +77,11 @@ var AlarmSuppression;
62
77
  const jsonObj = Object.assign(Object.assign({}, obj), {
63
78
  "alarmSuppressionTarget": obj.alarmSuppressionTarget
64
79
  ? model.AlarmSuppressionTarget.getDeserializedJsonObj(obj.alarmSuppressionTarget)
80
+ : undefined,
81
+ "suppressionConditions": obj.suppressionConditions
82
+ ? obj.suppressionConditions.map(item => {
83
+ return model.SuppressionCondition.getDeserializedJsonObj(item);
84
+ })
65
85
  : undefined
66
86
  });
67
87
  return jsonObj;
@@ -1 +1 @@
1
- {"version":3,"file":"alarm-suppression.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/alarm-suppression.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAyFlC,IAAiB,gBAAgB,CAmChC;AAnCD,WAAiB,gBAAgB;IAC/B,IAAY,cAQX;IARD,WAAY,cAAc;QACxB,mCAAiB,CAAA;QACjB,qCAAmB,CAAA;QACnB;;;WAGG;QACH,gDAA8B,CAAA;IAChC,CAAC,EARW,cAAc,GAAd,+BAAc,KAAd,+BAAc,QAQzB;IAED,SAAgB,UAAU,CAAC,GAAqB;QAC9C,MAAM,OAAO,mCACR,GAAG,GACH;YACD,wBAAwB,EAAE,GAAG,CAAC,sBAAsB;gBAClD,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,sBAAsB,CAAC;gBACrE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,2BAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAqB;QAC1D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,wBAAwB,EAAE,GAAG,CAAC,sBAAsB;gBAClD,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,GAAG,CAAC,sBAAsB,CAAC;gBACjF,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,uCAAsB,yBAWrC,CAAA;AACH,CAAC,EAnCgB,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAmChC"}
1
+ {"version":3,"file":"alarm-suppression.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/alarm-suppression.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA4GlC,IAAiB,gBAAgB,CAyDhC;AAzDD,WAAiB,gBAAgB;IAC/B,IAAY,KAQX;IARD,WAAY,KAAK;QACf,wBAAe,CAAA;QACf,gCAAuB,CAAA;QACvB;;;WAGG;QACH,uCAA8B,CAAA;IAChC,CAAC,EARW,KAAK,GAAL,sBAAK,KAAL,sBAAK,QAQhB;IAED,IAAY,cAQX;IARD,WAAY,cA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hB,wBAAgB,KAAhB,wBAAgB,QAyDhC"}
@@ -16,11 +16,20 @@ For more information, see
16
16
  */
17
17
  import * as model from "../model";
18
18
  /**
19
- * The configuration details for creating a dimension-specific alarm suppression.
19
+ * The configuration details for creating an alarm suppression.
20
20
  *
21
21
  */
22
22
  export interface CreateAlarmSuppressionDetails {
23
- "alarmSuppressionTarget": model.AlarmSuppressionAlarmTarget;
23
+ "alarmSuppressionTarget": model.AlarmSuppressionAlarmTarget | model.AlarmSuppressionCompartmentTarget;
24
+ /**
25
+ * The level of this alarm suppression.
26
+ * {@code ALARM} indicates a suppression of the entire alarm, regardless of dimension.
27
+ * {@code DIMENSION} indicates a suppression configured for specified dimensions.
28
+ * <p>
29
+ Defaut: {@code DIMENSION}
30
+ *
31
+ */
32
+ "level"?: string;
24
33
  /**
25
34
  * A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
26
35
  */
@@ -43,13 +52,13 @@ export interface CreateAlarmSuppressionDetails {
43
52
  * and the alarm state entry corresponds to the set {\"availabilityDomain\": \"phx-ad-1\" and \"resourceId\": \"ocid1.instance.region1.phx.exampleuniqueID\"},
44
53
  * then this alarm will be included for suppression.
45
54
  * <p>
46
- The value cannot be an empty object.
55
+ This is required only when the value of level is {@code DIMENSION}. If required, the value cannot be an empty object.
47
56
  * Only a single value is allowed per key. No grouping of multiple values is allowed under the same key.
48
57
  * Maximum characters (after serialization): 4000. This maximum satisfies typical use cases.
49
58
  * The response for an exceeded maximum is {@code HTTP 400} with an \"dimensions values are too long\" message.
50
59
  *
51
60
  */
52
- "dimensions": {
61
+ "dimensions"?: {
53
62
  [key: string]: string;
54
63
  };
55
64
  /**
@@ -84,6 +93,16 @@ export interface CreateAlarmSuppressionDetails {
84
93
  [key: string]: any;
85
94
  };
86
95
  };
96
+ /**
97
+ * Array of all preconditions for alarm suppression.
98
+ * Example: {@code [{
99
+ * conditionType: \"RECURRENCE\",
100
+ * suppressionRecurrence: \"FRQ=DAILY;BYHOUR=10\",
101
+ * suppressionDuration: \"PT1H\"
102
+ * }]}
103
+ *
104
+ */
105
+ "suppressionConditions"?: Array<model.SuppressionCondition>;
87
106
  }
88
107
  export declare namespace CreateAlarmSuppressionDetails {
89
108
  function getJsonObj(obj: CreateAlarmSuppressionDetails): object;
@@ -43,6 +43,11 @@ var CreateAlarmSuppressionDetails;
43
43
  const jsonObj = Object.assign(Object.assign({}, obj), {
44
44
  "alarmSuppressionTarget": obj.alarmSuppressionTarget
45
45
  ? model.AlarmSuppressionTarget.getJsonObj(obj.alarmSuppressionTarget)
46
+ : undefined,
47
+ "suppressionConditions": obj.suppressionConditions
48
+ ? obj.suppressionConditions.map(item => {
49
+ return model.SuppressionCondition.getJsonObj(item);
50
+ })
46
51
  : undefined
47
52
  });
48
53
  return jsonObj;
@@ -52,6 +57,11 @@ var CreateAlarmSuppressionDetails;
52
57
  const jsonObj = Object.assign(Object.assign({}, obj), {
53
58
  "alarmSuppressionTarget": obj.alarmSuppressionTarget
54
59
  ? model.AlarmSuppressionTarget.getDeserializedJsonObj(obj.alarmSuppressionTarget)
60
+ : undefined,
61
+ "suppressionConditions": obj.suppressionConditions
62
+ ? obj.suppressionConditions.map(item => {
63
+ return model.SuppressionCondition.getDeserializedJsonObj(item);
64
+ })
55
65
  : undefined
56
66
  });
57
67
  return jsonObj;
@@ -1 +1 @@
1
- {"version":3,"file":"create-alarm-suppression-details.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/create-alarm-suppression-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAkElC,IAAiB,6BAA6B,CAyB7C;AAzBD,WAAiB,6BAA6B;IAC5C,SAAgB,UAAU,CAAC,GAAkC;QAC3D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,wBAAwB,EAAE,GAAG,CAAC,sBAAsB;gBAClD,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,sBAAsB,CAAC;gBACrE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,wCAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAkC;QACvE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,wBAAwB,EAAE,GAAG,CAAC,sBAAsB;gBAClD,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,GAAG,CAAC,sBAAsB,CAAC;gBACjF,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,oDAAsB,yBAWrC,CAAA;AACH,CAAC,EAzBgB,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAyB7C"}
1
+ {"version":3,"file":"create-alarm-suppression-details.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/create-alarm-suppression-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAuFlC,IAAiB,6BAA6B,CAqC7C;AArCD,WAAiB,6BAA6B;IAC5C,SAAgB,UAAU,CAAC,GAAkC;QAC3D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,wBAAwB,EAAE,GAAG,CAAC,sBAAsB;gBAClD,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,sBAAsB,CAAC;gBACrE,CAAC,CAAC,SAAS;YAEb,uBAAuB,EAAE,GAAG,CAAC,qBAAqB;gBAChD,CAAC,CAAC,GAAG,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnC,OAAO,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBACrD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAjBe,wCAAU,aAiBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAkC;QACvE,MAAM,OAAO,mCACR,GAAG,GACH;YACD,wBAAwB,EAAE,GAAG,CAAC,sBAAsB;gBAClD,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC,sBAAsB,CAAC,GAAG,CAAC,sBAAsB,CAAC;gBACjF,CAAC,CAAC,SAAS;YAEb,uBAAuB,EAAE,GAAG,CAAC,qBAAqB;gBAChD,CAAC,CAAC,GAAG,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnC,OAAO,KAAK,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACjE,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAjBe,oDAAsB,yBAiBrC,CAAA;AACH,CAAC,EArCgB,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAqC7C"}
@@ -74,7 +74,13 @@ import * as SummarizeMetricsDataDetails from "./summarize-metrics-data-details";
74
74
  export import SummarizeMetricsDataDetails = SummarizeMetricsDataDetails.SummarizeMetricsDataDetails;
75
75
  import * as Suppression from "./suppression";
76
76
  export import Suppression = Suppression.Suppression;
77
+ import * as SuppressionCondition from "./suppression-condition";
78
+ export import SuppressionCondition = SuppressionCondition.SuppressionCondition;
77
79
  import * as UpdateAlarmDetails from "./update-alarm-details";
78
80
  export import UpdateAlarmDetails = UpdateAlarmDetails.UpdateAlarmDetails;
79
81
  import * as AlarmSuppressionAlarmTarget from "./alarm-suppression-alarm-target";
80
82
  export import AlarmSuppressionAlarmTarget = AlarmSuppressionAlarmTarget.AlarmSuppressionAlarmTarget;
83
+ import * as AlarmSuppressionCompartmentTarget from "./alarm-suppression-compartment-target";
84
+ export import AlarmSuppressionCompartmentTarget = AlarmSuppressionCompartmentTarget.AlarmSuppressionCompartmentTarget;
85
+ import * as Recurrence from "./recurrence";
86
+ export import Recurrence = Recurrence.Recurrence;
@@ -35,7 +35,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
35
35
  return result;
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.AlarmSuppressionAlarmTarget = exports.UpdateAlarmDetails = exports.Suppression = exports.SummarizeMetricsDataDetails = exports.SummarizeAlarmSuppressionHistoryDetails = exports.RetrieveDimensionStatesDetails = exports.PostMetricDataResponseDetails = exports.PostMetricDataDetails = exports.MetricDataDetails = exports.MetricData = exports.Metric = exports.ListMetricsDetails = exports.FailedMetricRecord = exports.Datapoint = exports.CreateAlarmSuppressionDetails = exports.CreateAlarmDetails = exports.ChangeAlarmCompartmentDetails = exports.AlarmSuppressionTarget = exports.AlarmSuppressionSummary = exports.AlarmSuppressionHistoryItemCollection = exports.AlarmSuppressionHistoryItem = exports.AlarmSuppressionCollection = exports.AlarmSuppression = exports.AlarmSummary = exports.AlarmStatusSummary = exports.AlarmOverride = exports.AlarmHistoryEntry = exports.AlarmHistoryCollection = exports.AlarmDimensionStatesEntry = exports.AlarmDimensionStatesCollection = exports.Alarm = exports.AggregatedDatapoint = void 0;
38
+ exports.Recurrence = exports.AlarmSuppressionCompartmentTarget = exports.AlarmSuppressionAlarmTarget = exports.UpdateAlarmDetails = exports.SuppressionCondition = exports.Suppression = exports.SummarizeMetricsDataDetails = exports.SummarizeAlarmSuppressionHistoryDetails = exports.RetrieveDimensionStatesDetails = exports.PostMetricDataResponseDetails = exports.PostMetricDataDetails = exports.MetricDataDetails = exports.MetricData = exports.Metric = exports.ListMetricsDetails = exports.FailedMetricRecord = exports.Datapoint = exports.CreateAlarmSuppressionDetails = exports.CreateAlarmDetails = exports.ChangeAlarmCompartmentDetails = exports.AlarmSuppressionTarget = exports.AlarmSuppressionSummary = exports.AlarmSuppressionHistoryItemCollection = exports.AlarmSuppressionHistoryItem = exports.AlarmSuppressionCollection = exports.AlarmSuppression = exports.AlarmSummary = exports.AlarmStatusSummary = exports.AlarmOverride = exports.AlarmHistoryEntry = exports.AlarmHistoryCollection = exports.AlarmDimensionStatesEntry = exports.AlarmDimensionStatesCollection = exports.Alarm = exports.AggregatedDatapoint = void 0;
39
39
  const AggregatedDatapoint = __importStar(require("./aggregated-datapoint"));
40
40
  exports.AggregatedDatapoint = AggregatedDatapoint.AggregatedDatapoint;
41
41
  const Alarm = __importStar(require("./alarm"));
@@ -96,8 +96,14 @@ const SummarizeMetricsDataDetails = __importStar(require("./summarize-metrics-da
96
96
  exports.SummarizeMetricsDataDetails = SummarizeMetricsDataDetails.SummarizeMetricsDataDetails;
97
97
  const Suppression = __importStar(require("./suppression"));
98
98
  exports.Suppression = Suppression.Suppression;
99
+ const SuppressionCondition = __importStar(require("./suppression-condition"));
100
+ exports.SuppressionCondition = SuppressionCondition.SuppressionCondition;
99
101
  const UpdateAlarmDetails = __importStar(require("./update-alarm-details"));
100
102
  exports.UpdateAlarmDetails = UpdateAlarmDetails.UpdateAlarmDetails;
101
103
  const AlarmSuppressionAlarmTarget = __importStar(require("./alarm-suppression-alarm-target"));
102
104
  exports.AlarmSuppressionAlarmTarget = AlarmSuppressionAlarmTarget.AlarmSuppressionAlarmTarget;
105
+ const AlarmSuppressionCompartmentTarget = __importStar(require("./alarm-suppression-compartment-target"));
106
+ exports.AlarmSuppressionCompartmentTarget = AlarmSuppressionCompartmentTarget.AlarmSuppressionCompartmentTarget;
107
+ const Recurrence = __importStar(require("./recurrence"));
108
+ exports.Recurrence = Recurrence.Recurrence;
103
109
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,4EAA8D;AAChD,QAAA,mBAAmB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC;AAC5E,+CAAiC;AACnB,QAAA,KAAK,GAAG,KAAK,CAAC,KAAK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,QAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACrC,0DAA4C;AAC9B,QAAA,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;AACjD,yEAA2D;AAC7C,QAAA,iBAAiB,GAAG,iBAAiB,CAAC,iBAAiB,CAAC;AACtE,kFAAoE;AACtD,QAAA,qBAAqB,GAAG,qBAAqB,CAAC,qBAAqB,CAAC;AAClF,mGAAqF;AACvE,QAAA,6BAA6B,GAAG,6BAA6B,CAAC,6BAA6B,CAAC;AAC1G,oGAAsF;AACxE,QAAA,8BAA8B,GAAG,8BAA8B,CAAC,8BAA8B,CAAC;AAC7G,uHAAyG;AAC3F,QAAA,uCAAuC,GAAG,uCAAuC,CAAC,uCAAuC,CAAC;AACxI,8FAAgF;AAClE,QAAA,2BAA2B,GAAG,2BAA2B,CAAC,2BAA2B,CAAC;AACpG,2DAA6C;AAC/B,QAAA,WAAW,GAAG,WAAW,CAAC,WAAW,CAAC;AACpD,8EAAgE;AAClD,QAAA,oBAAoB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC;AAC/E,2EAA6D;AAC/C,QAAA,kBAAkB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC;AAEzE,8FAAgF;AAClE,QAAA,2BAA2B,GAAG,2BAA2B,CAAC,2BAA2B,CAAC;AACpG,0GAA4F;AAC9E,QAAA,iCAAiC,GAAG,iCAAiC,CAAC,iCAAiC,CAAC;AACtH,yDAA2C;AAC7B,QAAA,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC"}
@@ -0,0 +1,44 @@
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
+ import * as model from "../model";
18
+ /**
19
+ * Alarm suppression recurring schedule. Only one recurrence condition is supported within the list of preconditions for a suppression ({@code suppressionConditions}).
20
+ *
21
+ */
22
+ export interface Recurrence extends model.SuppressionCondition {
23
+ /**
24
+ * Frequency and start time of the recurring suppression. The format follows
25
+ * [the iCalendar specification (RFC 5545, section 3.3.10)](https://datatracker.ietf.org/doc/html/rfc5545#section-3.3.10).
26
+ * Supported rule parts:
27
+ * * {@code FREQ}: Frequency of the recurring suppression: {@code WEEKLY} or {@code DAILY} only.
28
+ * * {@code BYDAY}: Comma separated days. Use with weekly suppressions only. Supported values: {@code MO}, {@code TU}, {@code WE}, {@code TH}, {@code FR}, {@code SA} ,{@code SU}.
29
+ * * {@code BYHOUR}, {@code BYMINUTE}, {@code BYSECOND}: Start time in UTC, after {@code timeSuppressFrom} value. Default is 00:00:00 UTC after {@code timeSuppressFrom}.
30
+ *
31
+ */
32
+ "suppressionRecurrence": string;
33
+ /**
34
+ * Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: {@code PT1M} (1 minute). Maximum: {@code PT24H} (24 hours).
35
+ *
36
+ */
37
+ "suppressionDuration": string;
38
+ "conditionType": string;
39
+ }
40
+ export declare namespace Recurrence {
41
+ function getJsonObj(obj: Recurrence, isParentJsonObj?: boolean): object;
42
+ const conditionType = "RECURRENCE";
43
+ function getDeserializedJsonObj(obj: Recurrence, isParentJsonObj?: boolean): object;
44
+ }
@@ -0,0 +1,56 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
21
+ }) : (function(o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ o[k2] = m[k];
24
+ }));
25
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
26
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
27
+ }) : function(o, v) {
28
+ o["default"] = v;
29
+ });
30
+ var __importStar = (this && this.__importStar) || function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.Recurrence = void 0;
39
+ const model = __importStar(require("../model"));
40
+ var Recurrence;
41
+ (function (Recurrence) {
42
+ function getJsonObj(obj, isParentJsonObj) {
43
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj ? obj : model.SuppressionCondition.getJsonObj(obj))), {});
44
+ return jsonObj;
45
+ }
46
+ Recurrence.getJsonObj = getJsonObj;
47
+ Recurrence.conditionType = "RECURRENCE";
48
+ function getDeserializedJsonObj(obj, isParentJsonObj) {
49
+ const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
50
+ ? obj
51
+ : model.SuppressionCondition.getDeserializedJsonObj(obj))), {});
52
+ return jsonObj;
53
+ }
54
+ Recurrence.getDeserializedJsonObj = getDeserializedJsonObj;
55
+ })(Recurrence = exports.Recurrence || (exports.Recurrence = {}));
56
+ //# sourceMappingURL=recurrence.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recurrence.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/recurrence.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA2BlC,IAAiB,UAAU,CAoB1B;AApBD,WAAiB,UAAU;IACzB,SAAgB,UAAU,CAAC,GAAe,EAAE,eAAyB;QACnE,MAAM,OAAO,mCACR,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAE,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,GAAG,CAAgB,CAAC,GACpF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAPe,qBAAU,aAOzB,CAAA;IACY,wBAAa,GAAG,YAAY,CAAC;IAC1C,SAAgB,sBAAsB,CAAC,GAAe,EAAE,eAAyB;QAC/E,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,GAAG,CAAgB,CAAC,GACxE,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,iCAAsB,yBASrC,CAAA;AACH,CAAC,EApBgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAoB1B"}
@@ -0,0 +1,27 @@
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
+ * Precondition for an alarm suppression within the suppression date and time range ({@code timeSuppressFrom} to {@code timeSuppressUntil}).
19
+ *
20
+ */
21
+ export interface SuppressionCondition {
22
+ "conditionType": string;
23
+ }
24
+ export declare namespace SuppressionCondition {
25
+ function getJsonObj(obj: SuppressionCondition): object;
26
+ function getDeserializedJsonObj(obj: SuppressionCondition): object;
27
+ }
@@ -0,0 +1,72 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
19
+ if (k2 === undefined) k2 = k;
20
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
21
+ }) : (function(o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ o[k2] = m[k];
24
+ }));
25
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
26
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
27
+ }) : function(o, v) {
28
+ o["default"] = v;
29
+ });
30
+ var __importStar = (this && this.__importStar) || function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.SuppressionCondition = void 0;
39
+ const model = __importStar(require("../model"));
40
+ const common = require("oci-common");
41
+ var SuppressionCondition;
42
+ (function (SuppressionCondition) {
43
+ function getJsonObj(obj) {
44
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
45
+ if (obj && "conditionType" in obj && obj.conditionType) {
46
+ switch (obj.conditionType) {
47
+ case "RECURRENCE":
48
+ return model.Recurrence.getJsonObj(jsonObj, true);
49
+ default:
50
+ if (common.LOG.logger)
51
+ common.LOG.logger.info(`Unknown value for: ${obj.conditionType}`);
52
+ }
53
+ }
54
+ return jsonObj;
55
+ }
56
+ SuppressionCondition.getJsonObj = getJsonObj;
57
+ function getDeserializedJsonObj(obj) {
58
+ const jsonObj = Object.assign(Object.assign({}, obj), {});
59
+ if (obj && "conditionType" in obj && obj.conditionType) {
60
+ switch (obj.conditionType) {
61
+ case "RECURRENCE":
62
+ return model.Recurrence.getDeserializedJsonObj(jsonObj, true);
63
+ default:
64
+ if (common.LOG.logger)
65
+ common.LOG.logger.info(`Unknown value for: ${obj.conditionType}`);
66
+ }
67
+ }
68
+ return jsonObj;
69
+ }
70
+ SuppressionCondition.getDeserializedJsonObj = getDeserializedJsonObj;
71
+ })(SuppressionCondition = exports.SuppressionCondition || (exports.SuppressionCondition = {}));
72
+ //# sourceMappingURL=suppression-condition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suppression-condition.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/suppression-condition.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAUtC,IAAiB,oBAAoB,CA2BpC;AA3BD,WAAiB,oBAAoB;IACnC,SAAgB,UAAU,CAAC,GAAyB;QAClD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,eAAe,IAAI,GAAG,IAAI,GAAG,CAAC,aAAa,EAAE;YACtD,QAAQ,GAAG,CAAC,aAAa,EAAE;gBACzB,KAAK,YAAY;oBACf,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAA4B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBAChF;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC;aAC5F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,+BAAU,aAYzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAyB;QAC9D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,eAAe,IAAI,GAAG,IAAI,GAAG,CAAC,aAAa,EAAE;YACtD,QAAQ,GAAG,CAAC,aAAa,EAAE;gBACzB,KAAK,YAAY;oBACf,OAAO,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAA4B,OAAQ,EAAE,IAAI,CAAC,CAAC;gBAC5F;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,aAAa,EAAE,CAAC,CAAC;aAC5F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,2CAAsB,yBAYrC,CAAA;AACH,CAAC,EA3BgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QA2BpC"}
@@ -15,12 +15,13 @@ 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 an alarm-wide suppression.
19
- * For dimension-specific suppressions, see {@link AlarmSuppression}.
20
- * For information about alarms, see
21
- * [Alarms Overview](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview).
22
- *
23
- */
18
+ * The configuration details for an alarm-wide suppression.
19
+ * For dimension-specific suppressions, see {@link AlarmSuppression}.
20
+ * <p>
21
+ For information about alarms, see
22
+ * [Alarms Overview](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview).
23
+ *
24
+ */
24
25
  export interface Suppression {
25
26
  /**
26
27
  * Human-readable reason for suppressing alarm notifications.
@@ -1 +1 @@
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
+ {"version":3,"file":"suppression.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/model/suppression.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AA0CH,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"}
@@ -15,19 +15,19 @@ import common = require("oci-common");
15
15
  * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/monitoring/ListAlarmSuppressions.ts.html |here} to see how to use ListAlarmSuppressionsRequest.
16
16
  */
17
17
  export interface ListAlarmSuppressionsRequest extends common.BaseRequest {
18
- /**
19
- * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
20
- */
21
- "alarmId": string;
22
18
  /**
23
19
  * Customer part of the request identifier token. If you need to contact Oracle about a particular
24
20
  * request, please provide the complete request ID.
25
21
  *
26
22
  */
27
23
  "opcRequestId"?: string;
24
+ /**
25
+ * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
26
+ */
27
+ "alarmId"?: string;
28
28
  /**
29
29
  * A filter to return only resources that match the given display name exactly.
30
- * Use this filter to list a alarm suppression by name.
30
+ * Use this filter to list an alarm suppression by name.
31
31
  * Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
32
32
  *
33
33
  */
@@ -37,6 +37,51 @@ export interface ListAlarmSuppressionsRequest extends common.BaseRequest {
37
37
  *
38
38
  */
39
39
  "lifecycleState"?: string;
40
+ /**
41
+ * The level of this alarm suppression.
42
+ * {@code ALARM} indicates a suppression of the entire alarm, regardless of dimension.
43
+ * {@code DIMENSION} indicates a suppression configured for specified dimensions.
44
+ *
45
+ */
46
+ "level"?: string;
47
+ /**
48
+ * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for searching.
49
+ * Use the tenancy OCID to search in the root compartment.
50
+ * <p>
51
+ If targetType is not specified, searches all suppressions defined under the compartment.
52
+ * If targetType is {@code COMPARTMENT}, searches suppressions in the specified compartment only.
53
+ * <p>
54
+ Example: {@code ocid1.compartment.oc1..exampleuniqueID}
55
+ *
56
+ */
57
+ "compartmentId"?: string;
58
+ /**
59
+ * When true, returns resources from all compartments and subcompartments. The parameter can
60
+ * only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment).
61
+ * A true value requires the user to have tenancy-level permissions. If this requirement is not met,
62
+ * then the call is rejected. When false, returns resources from only the compartment specified in
63
+ * compartmentId. Default is false.
64
+ *
65
+ */
66
+ "compartmentIdInSubtree"?: boolean;
67
+ /**
68
+ * The target type to use when listing alarm suppressions.
69
+ * {@code ALARM} lists all suppression records for the specified alarm.
70
+ * {@code COMPARTMENT} lists all suppression records for the specified compartment or tenancy.
71
+ *
72
+ */
73
+ "targetType"?: ListAlarmSuppressionsRequest.TargetType;
74
+ /**
75
+ * Setting this parameter to true requires the query to specify the alarm ({@code alarmId}).
76
+ * <p>
77
+ When true, lists all alarm suppressions that affect the specified alarm,
78
+ * including suppressions that target the corresponding compartment or tenancy.
79
+ * When false, lists only the alarm suppressions that target the specified alarm.
80
+ * <p>
81
+ Default is false.
82
+ *
83
+ */
84
+ "isAllSuppressions"?: boolean;
40
85
  /**
41
86
  * The field to use when sorting returned alarm suppressions. Only one sorting level is provided.
42
87
  * <p>
@@ -71,6 +116,10 @@ export interface ListAlarmSuppressionsRequest extends common.BaseRequest {
71
116
  "limit"?: number;
72
117
  }
73
118
  export declare namespace ListAlarmSuppressionsRequest {
119
+ enum TargetType {
120
+ Alarm = "ALARM",
121
+ Compartment = "COMPARTMENT"
122
+ }
74
123
  enum SortBy {
75
124
  DisplayName = "displayName",
76
125
  TimeCreated = "timeCreated",
@@ -15,6 +15,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ListAlarmSuppressionsRequest = void 0;
16
16
  var ListAlarmSuppressionsRequest;
17
17
  (function (ListAlarmSuppressionsRequest) {
18
+ let TargetType;
19
+ (function (TargetType) {
20
+ TargetType["Alarm"] = "ALARM";
21
+ TargetType["Compartment"] = "COMPARTMENT";
22
+ })(TargetType = ListAlarmSuppressionsRequest.TargetType || (ListAlarmSuppressionsRequest.TargetType = {}));
18
23
  let SortBy;
19
24
  (function (SortBy) {
20
25
  SortBy["DisplayName"] = "displayName";
@@ -1 +1 @@
1
- {"version":3,"file":"list-alarm-suppressions-request.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/request/list-alarm-suppressions-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAiEH,IAAiB,4BAA4B,CAW5C;AAXD,WAAiB,4BAA4B;IAC3C,IAAY,MAIX;IAJD,WAAY,MAAM;QAChB,qCAA2B,CAAA;QAC3B,qCAA2B,CAAA;QAC3B,+CAAqC,CAAA;IACvC,CAAC,EAJW,MAAM,GAAN,mCAAM,KAAN,mCAAM,QAIjB;IAED,IAAY,SAGX;IAHD,WAAY,SAAS;QACnB,wBAAW,CAAA;QACX,0BAAa,CAAA;IACf,CAAC,EAHW,SAAS,GAAT,sCAAS,KAAT,sCAAS,QAGpB;AACH,CAAC,EAXgB,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAW5C"}
1
+ {"version":3,"file":"list-alarm-suppressions-request.js","sourceRoot":"","sources":["../../../../../lib/monitoring/lib/request/list-alarm-suppressions-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AA8GH,IAAiB,4BAA4B,CAgB5C;AAhBD,WAAiB,4BAA4B;IAC3C,IAAY,UAGX;IAHD,WAAY,UAAU;QACpB,6BAAe,CAAA;QACf,yCAA2B,CAAA;IAC7B,CAAC,EAHW,UAAU,GAAV,uCAAU,KAAV,uCAAU,QAGrB;IAED,IAAY,MAIX;IAJD,WAAY,MAAM;QAChB,qCAA2B,CAAA;QAC3B,qCAA2B,CAAA;QAC3B,+CAAqC,CAAA;IACvC,CAAC,EAJW,MAAM,GAAN,mCAAM,KAAN,mCAAM,QAIjB;IAED,IAAY,SAGX;IAHD,WAAY,SAAS;QACnB,wBAAW,CAAA;QACX,0BAAa,CAAA;IACf,CAAC,EAHW,SAAS,GAAT,sCAAS,KAAT,sCAAS,QAGpB;AACH,CAAC,EAhBgB,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAgB5C"}