pulumi-oci 1.19.0a1705693078__py3-none-any.whl → 1.20.0__py3-none-any.whl
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.
- pulumi_oci/__init__.py +59 -0
- pulumi_oci/adm/_inputs.py +99 -18
- pulumi_oci/adm/get_remediation_run_application_dependency_recommendations.py +23 -3
- pulumi_oci/adm/get_vulnerability_audit.py +31 -5
- pulumi_oci/adm/get_vulnerability_audit_application_dependency_vulnerabilities.py +43 -6
- pulumi_oci/adm/get_vulnerability_audit_application_dependency_vulnerability.py +27 -1
- pulumi_oci/adm/get_vulnerability_audits.py +54 -3
- pulumi_oci/adm/outputs.py +296 -31
- pulumi_oci/adm/remediation_recipe.py +2 -0
- pulumi_oci/adm/vulnerability_audit.py +96 -37
- pulumi_oci/database/__init__.py +1 -0
- pulumi_oci/database/_inputs.py +40 -0
- pulumi_oci/database/cloud_vm_cluster.py +22 -1
- pulumi_oci/database/get_system_versions.py +173 -0
- pulumi_oci/database/outputs.py +88 -0
- pulumi_oci/database/vm_cluster.py +22 -1
- pulumi_oci/datasafe/__init__.py +22 -0
- pulumi_oci/datasafe/_inputs.py +1826 -161
- pulumi_oci/datasafe/audit_trail.py +140 -0
- pulumi_oci/datasafe/discovery_mod.py +7 -7
- pulumi_oci/datasafe/get_audit_trail.py +66 -1
- pulumi_oci/datasafe/get_discovery_job.py +1 -1
- pulumi_oci/datasafe/get_discovery_jobs_result.py +1 -1
- pulumi_oci/datasafe/get_discovery_jobs_results.py +1 -1
- pulumi_oci/datasafe/get_masking_policies_masking_column.py +1 -1
- pulumi_oci/datasafe/get_masking_policies_masking_columns.py +1 -1
- pulumi_oci/datasafe/get_masking_policy.py +1 -1
- pulumi_oci/datasafe/get_report.py +1 -1
- pulumi_oci/datasafe/get_security_assessment.py +3 -3
- pulumi_oci/datasafe/get_security_assessment_comparison.py +5 -5
- pulumi_oci/datasafe/get_security_assessment_finding.py +29 -3
- pulumi_oci/datasafe/get_security_assessment_finding_analytics.py +276 -0
- pulumi_oci/datasafe/get_security_assessment_findings.py +43 -7
- pulumi_oci/datasafe/get_security_assessment_findings_change_audit_logs.py +309 -0
- pulumi_oci/datasafe/get_security_assessment_security_feature_analytics.py +198 -0
- pulumi_oci/datasafe/get_security_assessment_security_features.py +377 -0
- pulumi_oci/datasafe/get_security_assessments.py +2 -2
- pulumi_oci/datasafe/get_security_policies.py +253 -0
- pulumi_oci/datasafe/get_security_policy.py +235 -0
- pulumi_oci/datasafe/get_security_policy_deployment.py +261 -0
- pulumi_oci/datasafe/get_security_policy_deployment_security_policy_entry_state.py +165 -0
- pulumi_oci/datasafe/get_security_policy_deployment_security_policy_entry_states.py +180 -0
- pulumi_oci/datasafe/get_security_policy_deployments.py +293 -0
- pulumi_oci/datasafe/get_security_policy_report.py +248 -0
- pulumi_oci/datasafe/get_security_policy_report_database_table_access_entries.py +158 -0
- pulumi_oci/datasafe/get_security_policy_report_database_table_access_entry.py +408 -0
- pulumi_oci/datasafe/get_security_policy_report_database_view_access_entries.py +178 -0
- pulumi_oci/datasafe/get_security_policy_report_database_view_access_entry.py +382 -0
- pulumi_oci/datasafe/get_security_policy_report_role_grant_paths.py +177 -0
- pulumi_oci/datasafe/get_security_policy_reports.py +273 -0
- pulumi_oci/datasafe/get_sensitive_data_model.py +1 -1
- pulumi_oci/datasafe/get_target_database.py +27 -4
- pulumi_oci/datasafe/get_target_database_peer_target_database.py +263 -0
- pulumi_oci/datasafe/get_target_database_peer_target_databases.py +133 -0
- pulumi_oci/datasafe/get_target_databases.py +1 -1
- pulumi_oci/datasafe/get_user_assessment.py +5 -5
- pulumi_oci/datasafe/get_user_assessment_comparison.py +2 -2
- pulumi_oci/datasafe/get_user_assessment_user_access_analytics.py +133 -0
- pulumi_oci/datasafe/get_user_assessment_user_analytics.py +2 -2
- pulumi_oci/datasafe/get_user_assessment_users.py +42 -2
- pulumi_oci/datasafe/get_user_assessments.py +2 -2
- pulumi_oci/datasafe/masking_policies_masking_column.py +7 -7
- pulumi_oci/datasafe/masking_policy.py +9 -9
- pulumi_oci/datasafe/outputs.py +16686 -9777
- pulumi_oci/datasafe/report.py +559 -0
- pulumi_oci/datasafe/security_assessment.py +12 -12
- pulumi_oci/datasafe/sensitive_data_model.py +7 -7
- pulumi_oci/datasafe/set_security_assessment_baseline.py +7 -7
- pulumi_oci/datasafe/set_user_assessment_baseline.py +7 -7
- pulumi_oci/datasafe/target_database.py +146 -25
- pulumi_oci/datasafe/target_database_peer_target_database.py +634 -0
- pulumi_oci/datasafe/user_assessment.py +20 -20
- pulumi_oci/generativeai/__init__.py +18 -0
- pulumi_oci/generativeai/_inputs.py +534 -0
- pulumi_oci/generativeai/dedicated_ai_cluster.py +808 -0
- pulumi_oci/generativeai/endpoint.py +717 -0
- pulumi_oci/generativeai/get_dedicated_ai_cluster.py +288 -0
- pulumi_oci/generativeai/get_dedicated_ai_clusters.py +183 -0
- pulumi_oci/generativeai/get_endpoint.py +275 -0
- pulumi_oci/generativeai/get_endpoints.py +183 -0
- pulumi_oci/generativeai/get_model.py +353 -0
- pulumi_oci/generativeai/get_models.py +220 -0
- pulumi_oci/generativeai/model.py +858 -0
- pulumi_oci/generativeai/outputs.py +1721 -0
- pulumi_oci/marketplace/get_publication.py +14 -1
- pulumi_oci/marketplace/outputs.py +11 -0
- pulumi_oci/marketplace/publication.py +28 -0
- pulumi_oci/monitoring/__init__.py +3 -0
- pulumi_oci/monitoring/_inputs.py +82 -4
- pulumi_oci/monitoring/alarm.py +15 -15
- pulumi_oci/monitoring/alarm_suppression.py +745 -0
- pulumi_oci/monitoring/get_alarm.py +5 -5
- pulumi_oci/monitoring/get_alarm_history_collection.py +4 -4
- pulumi_oci/monitoring/get_alarm_statuses.py +3 -1
- pulumi_oci/monitoring/get_alarm_suppression.py +276 -0
- pulumi_oci/monitoring/get_alarm_suppressions.py +192 -0
- pulumi_oci/monitoring/get_metric_data.py +12 -8
- pulumi_oci/monitoring/get_metrics.py +2 -2
- pulumi_oci/monitoring/outputs.py +355 -50
- pulumi_oci/networkfirewall/_inputs.py +25 -20
- pulumi_oci/networkfirewall/outputs.py +40 -30
- pulumi_oci/stackmonitoring/__init__.py +3 -0
- pulumi_oci/stackmonitoring/_inputs.py +143 -0
- pulumi_oci/stackmonitoring/get_process_set.py +236 -0
- pulumi_oci/stackmonitoring/get_process_sets.py +156 -0
- pulumi_oci/stackmonitoring/outputs.py +422 -0
- pulumi_oci/stackmonitoring/process_set.py +548 -0
- {pulumi_oci-1.19.0a1705693078.dist-info → pulumi_oci-1.20.0.dist-info}/METADATA +1 -1
- {pulumi_oci-1.19.0a1705693078.dist-info → pulumi_oci-1.20.0.dist-info}/RECORD +111 -70
- {pulumi_oci-1.19.0a1705693078.dist-info → pulumi_oci-1.20.0.dist-info}/WHEEL +0 -0
- {pulumi_oci-1.19.0a1705693078.dist-info → pulumi_oci-1.20.0.dist-info}/top_level.txt +0 -0
@@ -105,7 +105,7 @@ class GetAlarmResult:
|
|
105
105
|
@pulumi.getter
|
106
106
|
def body(self) -> str:
|
107
107
|
"""
|
108
|
-
The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Example: `High CPU usage alert. Follow runbook instructions for resolution.`
|
108
|
+
The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information. Example: `High CPU usage alert. Follow runbook instructions for resolution.`
|
109
109
|
"""
|
110
110
|
return pulumi.get(self, "body")
|
111
111
|
|
@@ -129,7 +129,7 @@ class GetAlarmResult:
|
|
129
129
|
@pulumi.getter
|
130
130
|
def destinations(self) -> Sequence[str]:
|
131
131
|
"""
|
132
|
-
A list of destinations for alarm notifications. Each destination is represented by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a related resource, such as a [topic](https://docs.cloud.oracle.com/iaas/api/#/en/notification/latest/NotificationTopic). Supported destination services: Notifications
|
132
|
+
A list of destinations for alarm notifications. Each destination is represented by the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a related resource, such as a [topic](https://docs.cloud.oracle.com/iaas/api/#/en/notification/latest/NotificationTopic). Supported destination services: Notifications, Streaming. Limit: One destination per supported destination service.
|
133
133
|
"""
|
134
134
|
return pulumi.get(self, "destinations")
|
135
135
|
|
@@ -169,7 +169,7 @@ class GetAlarmResult:
|
|
169
169
|
@pulumi.getter(name="isNotificationsPerMetricDimensionEnabled")
|
170
170
|
def is_notifications_per_metric_dimension_enabled(self) -> bool:
|
171
171
|
"""
|
172
|
-
|
172
|
+
Whether the alarm sends a separate message for each metric stream. See [Creating an Alarm That Splits Messages by Metric Stream](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/create-alarm-split.htm). Example: `true`
|
173
173
|
"""
|
174
174
|
return pulumi.get(self, "is_notifications_per_metric_dimension_enabled")
|
175
175
|
|
@@ -273,7 +273,7 @@ class GetAlarmResult:
|
|
273
273
|
@pulumi.getter(name="timeCreated")
|
274
274
|
def time_created(self) -> str:
|
275
275
|
"""
|
276
|
-
The date and time the alarm was created. Format defined by RFC3339. Example: `
|
276
|
+
The date and time the alarm was created. Format defined by RFC3339. Example: `2023-02-01T01:02:29.600Z`
|
277
277
|
"""
|
278
278
|
return pulumi.get(self, "time_created")
|
279
279
|
|
@@ -281,7 +281,7 @@ class GetAlarmResult:
|
|
281
281
|
@pulumi.getter(name="timeUpdated")
|
282
282
|
def time_updated(self) -> str:
|
283
283
|
"""
|
284
|
-
The date and time the alarm was last updated. Format defined by RFC3339. Example: `
|
284
|
+
The date and time the alarm was last updated. Format defined by RFC3339. Example: `2023-02-03T01:02:29.600Z`
|
285
285
|
"""
|
286
286
|
return pulumi.get(self, "time_updated")
|
287
287
|
|
@@ -141,8 +141,8 @@ def get_alarm_history_collection(alarm_historytype: Optional[str] = None,
|
|
141
141
|
|
142
142
|
:param str alarm_historytype: The type of history entries to retrieve. State history (STATE_HISTORY) or state transition history (STATE_TRANSITION_HISTORY). If not specified, entries of both types are retrieved. Example: `STATE_HISTORY`
|
143
143
|
:param str alarm_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm.
|
144
|
-
:param str timestamp_greater_than_or_equal_to: A filter to return only alarm history entries with timestamps occurring on or after the specified date and time. Format defined by RFC3339. Example: `
|
145
|
-
:param str timestamp_less_than: A filter to return only alarm history entries with timestamps occurring before the specified date and time. Format defined by RFC3339. Example: `
|
144
|
+
:param str timestamp_greater_than_or_equal_to: A filter to return only alarm history entries with timestamps occurring on or after the specified date and time. Format defined by RFC3339. Example: `2023-01-01T01:00:00.789Z`
|
145
|
+
:param str timestamp_less_than: A filter to return only alarm history entries with timestamps occurring before the specified date and time. Format defined by RFC3339. Example: `2023-01-02T01:00:00.789Z`
|
146
146
|
"""
|
147
147
|
__args__ = dict()
|
148
148
|
__args__['alarmHistorytype'] = alarm_historytype
|
@@ -196,7 +196,7 @@ def get_alarm_history_collection_output(alarm_historytype: Optional[pulumi.Input
|
|
196
196
|
|
197
197
|
:param str alarm_historytype: The type of history entries to retrieve. State history (STATE_HISTORY) or state transition history (STATE_TRANSITION_HISTORY). If not specified, entries of both types are retrieved. Example: `STATE_HISTORY`
|
198
198
|
:param str alarm_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm.
|
199
|
-
:param str timestamp_greater_than_or_equal_to: A filter to return only alarm history entries with timestamps occurring on or after the specified date and time. Format defined by RFC3339. Example: `
|
200
|
-
:param str timestamp_less_than: A filter to return only alarm history entries with timestamps occurring before the specified date and time. Format defined by RFC3339. Example: `
|
199
|
+
:param str timestamp_greater_than_or_equal_to: A filter to return only alarm history entries with timestamps occurring on or after the specified date and time. Format defined by RFC3339. Example: `2023-01-01T01:00:00.789Z`
|
200
|
+
:param str timestamp_less_than: A filter to return only alarm history entries with timestamps occurring before the specified date and time. Format defined by RFC3339. Example: `2023-01-02T01:00:00.789Z`
|
201
201
|
"""
|
202
202
|
...
|
@@ -113,7 +113,7 @@ class GetAlarmStatusesResult:
|
|
113
113
|
@pulumi.getter
|
114
114
|
def status(self) -> Optional[str]:
|
115
115
|
"""
|
116
|
-
The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use [RetrieveDimensionStates](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/AlarmDimensionStatesCollection/RetrieveDimensionStates). Example: `FIRING`
|
116
|
+
The status of this alarm. Status is collective, across all metric streams in the alarm. To list alarm status for each metric stream, use [RetrieveDimensionStates](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/AlarmDimensionStatesCollection/RetrieveDimensionStates). The alarm attribute `isNotificationsPerMetricDimensionEnabled` must be set to `true`. Example: `FIRING`
|
117
117
|
"""
|
118
118
|
return pulumi.get(self, "status")
|
119
119
|
|
@@ -151,6 +151,7 @@ def get_alarm_statuses(compartment_id: Optional[str] = None,
|
|
151
151
|
List the status of each alarm in the specified compartment.
|
152
152
|
Status is collective, across all metric streams in the alarm.
|
153
153
|
To list alarm status for each metric stream, use [RetrieveDimensionStates](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/AlarmDimensionStatesCollection/RetrieveDimensionStates).
|
154
|
+
The alarm attribute `isNotificationsPerMetricDimensionEnabled` must be set to `true`.
|
154
155
|
For more information, see
|
155
156
|
[Listing Alarm Statuses](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-status.htm).
|
156
157
|
For important limits information, see
|
@@ -225,6 +226,7 @@ def get_alarm_statuses_output(compartment_id: Optional[pulumi.Input[str]] = None
|
|
225
226
|
List the status of each alarm in the specified compartment.
|
226
227
|
Status is collective, across all metric streams in the alarm.
|
227
228
|
To list alarm status for each metric stream, use [RetrieveDimensionStates](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/AlarmDimensionStatesCollection/RetrieveDimensionStates).
|
229
|
+
The alarm attribute `isNotificationsPerMetricDimensionEnabled` must be set to `true`.
|
228
230
|
For more information, see
|
229
231
|
[Listing Alarm Statuses](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/list-alarm-status.htm).
|
230
232
|
For important limits information, see
|
@@ -0,0 +1,276 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
from . import outputs
|
12
|
+
|
13
|
+
__all__ = [
|
14
|
+
'GetAlarmSuppressionResult',
|
15
|
+
'AwaitableGetAlarmSuppressionResult',
|
16
|
+
'get_alarm_suppression',
|
17
|
+
'get_alarm_suppression_output',
|
18
|
+
]
|
19
|
+
|
20
|
+
@pulumi.output_type
|
21
|
+
class GetAlarmSuppressionResult:
|
22
|
+
"""
|
23
|
+
A collection of values returned by getAlarmSuppression.
|
24
|
+
"""
|
25
|
+
def __init__(__self__, alarm_suppression_id=None, alarm_suppression_targets=None, compartment_id=None, defined_tags=None, description=None, dimensions=None, display_name=None, freeform_tags=None, id=None, state=None, time_created=None, time_suppress_from=None, time_suppress_until=None, time_updated=None):
|
26
|
+
if alarm_suppression_id and not isinstance(alarm_suppression_id, str):
|
27
|
+
raise TypeError("Expected argument 'alarm_suppression_id' to be a str")
|
28
|
+
pulumi.set(__self__, "alarm_suppression_id", alarm_suppression_id)
|
29
|
+
if alarm_suppression_targets and not isinstance(alarm_suppression_targets, list):
|
30
|
+
raise TypeError("Expected argument 'alarm_suppression_targets' to be a list")
|
31
|
+
pulumi.set(__self__, "alarm_suppression_targets", alarm_suppression_targets)
|
32
|
+
if compartment_id and not isinstance(compartment_id, str):
|
33
|
+
raise TypeError("Expected argument 'compartment_id' to be a str")
|
34
|
+
pulumi.set(__self__, "compartment_id", compartment_id)
|
35
|
+
if defined_tags and not isinstance(defined_tags, dict):
|
36
|
+
raise TypeError("Expected argument 'defined_tags' to be a dict")
|
37
|
+
pulumi.set(__self__, "defined_tags", defined_tags)
|
38
|
+
if description and not isinstance(description, str):
|
39
|
+
raise TypeError("Expected argument 'description' to be a str")
|
40
|
+
pulumi.set(__self__, "description", description)
|
41
|
+
if dimensions and not isinstance(dimensions, dict):
|
42
|
+
raise TypeError("Expected argument 'dimensions' to be a dict")
|
43
|
+
pulumi.set(__self__, "dimensions", dimensions)
|
44
|
+
if display_name and not isinstance(display_name, str):
|
45
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
46
|
+
pulumi.set(__self__, "display_name", display_name)
|
47
|
+
if freeform_tags and not isinstance(freeform_tags, dict):
|
48
|
+
raise TypeError("Expected argument 'freeform_tags' to be a dict")
|
49
|
+
pulumi.set(__self__, "freeform_tags", freeform_tags)
|
50
|
+
if id and not isinstance(id, str):
|
51
|
+
raise TypeError("Expected argument 'id' to be a str")
|
52
|
+
pulumi.set(__self__, "id", id)
|
53
|
+
if state and not isinstance(state, str):
|
54
|
+
raise TypeError("Expected argument 'state' to be a str")
|
55
|
+
pulumi.set(__self__, "state", state)
|
56
|
+
if time_created and not isinstance(time_created, str):
|
57
|
+
raise TypeError("Expected argument 'time_created' to be a str")
|
58
|
+
pulumi.set(__self__, "time_created", time_created)
|
59
|
+
if time_suppress_from and not isinstance(time_suppress_from, str):
|
60
|
+
raise TypeError("Expected argument 'time_suppress_from' to be a str")
|
61
|
+
pulumi.set(__self__, "time_suppress_from", time_suppress_from)
|
62
|
+
if time_suppress_until and not isinstance(time_suppress_until, str):
|
63
|
+
raise TypeError("Expected argument 'time_suppress_until' to be a str")
|
64
|
+
pulumi.set(__self__, "time_suppress_until", time_suppress_until)
|
65
|
+
if time_updated and not isinstance(time_updated, str):
|
66
|
+
raise TypeError("Expected argument 'time_updated' to be a str")
|
67
|
+
pulumi.set(__self__, "time_updated", time_updated)
|
68
|
+
|
69
|
+
@property
|
70
|
+
@pulumi.getter(name="alarmSuppressionId")
|
71
|
+
def alarm_suppression_id(self) -> str:
|
72
|
+
return pulumi.get(self, "alarm_suppression_id")
|
73
|
+
|
74
|
+
@property
|
75
|
+
@pulumi.getter(name="alarmSuppressionTargets")
|
76
|
+
def alarm_suppression_targets(self) -> Sequence['outputs.GetAlarmSuppressionAlarmSuppressionTargetResult']:
|
77
|
+
"""
|
78
|
+
The target of the alarm suppression.
|
79
|
+
"""
|
80
|
+
return pulumi.get(self, "alarm_suppression_targets")
|
81
|
+
|
82
|
+
@property
|
83
|
+
@pulumi.getter(name="compartmentId")
|
84
|
+
def compartment_id(self) -> str:
|
85
|
+
"""
|
86
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm suppression.
|
87
|
+
"""
|
88
|
+
return pulumi.get(self, "compartment_id")
|
89
|
+
|
90
|
+
@property
|
91
|
+
@pulumi.getter(name="definedTags")
|
92
|
+
def defined_tags(self) -> Mapping[str, Any]:
|
93
|
+
"""
|
94
|
+
Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: `{"Operations.CostCenter": "42"}`
|
95
|
+
"""
|
96
|
+
return pulumi.get(self, "defined_tags")
|
97
|
+
|
98
|
+
@property
|
99
|
+
@pulumi.getter
|
100
|
+
def description(self) -> str:
|
101
|
+
"""
|
102
|
+
Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
|
103
|
+
"""
|
104
|
+
return pulumi.get(self, "description")
|
105
|
+
|
106
|
+
@property
|
107
|
+
@pulumi.getter
|
108
|
+
def dimensions(self) -> Mapping[str, Any]:
|
109
|
+
"""
|
110
|
+
Configured dimension filter for suppressing alarm state entries that include the set of specified dimension key-value pairs. Example: `{"resourceId": "instance.region1.phx.exampleuniqueID"}`
|
111
|
+
"""
|
112
|
+
return pulumi.get(self, "dimensions")
|
113
|
+
|
114
|
+
@property
|
115
|
+
@pulumi.getter(name="displayName")
|
116
|
+
def display_name(self) -> str:
|
117
|
+
"""
|
118
|
+
A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
|
119
|
+
"""
|
120
|
+
return pulumi.get(self, "display_name")
|
121
|
+
|
122
|
+
@property
|
123
|
+
@pulumi.getter(name="freeformTags")
|
124
|
+
def freeform_tags(self) -> Mapping[str, Any]:
|
125
|
+
"""
|
126
|
+
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"Department": "Finance"}`
|
127
|
+
"""
|
128
|
+
return pulumi.get(self, "freeform_tags")
|
129
|
+
|
130
|
+
@property
|
131
|
+
@pulumi.getter
|
132
|
+
def id(self) -> str:
|
133
|
+
"""
|
134
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression.
|
135
|
+
"""
|
136
|
+
return pulumi.get(self, "id")
|
137
|
+
|
138
|
+
@property
|
139
|
+
@pulumi.getter
|
140
|
+
def state(self) -> str:
|
141
|
+
"""
|
142
|
+
The current lifecycle state of the alarm suppression. Example: `DELETED`
|
143
|
+
"""
|
144
|
+
return pulumi.get(self, "state")
|
145
|
+
|
146
|
+
@property
|
147
|
+
@pulumi.getter(name="timeCreated")
|
148
|
+
def time_created(self) -> str:
|
149
|
+
"""
|
150
|
+
The date and time the alarm suppression was created. Format defined by RFC3339. Example: `2018-02-01T01:02:29.600Z`
|
151
|
+
"""
|
152
|
+
return pulumi.get(self, "time_created")
|
153
|
+
|
154
|
+
@property
|
155
|
+
@pulumi.getter(name="timeSuppressFrom")
|
156
|
+
def time_suppress_from(self) -> str:
|
157
|
+
"""
|
158
|
+
The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2018-02-01T01:02:29.600Z`
|
159
|
+
"""
|
160
|
+
return pulumi.get(self, "time_suppress_from")
|
161
|
+
|
162
|
+
@property
|
163
|
+
@pulumi.getter(name="timeSuppressUntil")
|
164
|
+
def time_suppress_until(self) -> str:
|
165
|
+
"""
|
166
|
+
The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2018-02-01T02:02:29.600Z`
|
167
|
+
"""
|
168
|
+
return pulumi.get(self, "time_suppress_until")
|
169
|
+
|
170
|
+
@property
|
171
|
+
@pulumi.getter(name="timeUpdated")
|
172
|
+
def time_updated(self) -> str:
|
173
|
+
"""
|
174
|
+
The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: `2018-02-03T01:02:29.600Z`
|
175
|
+
"""
|
176
|
+
return pulumi.get(self, "time_updated")
|
177
|
+
|
178
|
+
|
179
|
+
class AwaitableGetAlarmSuppressionResult(GetAlarmSuppressionResult):
|
180
|
+
# pylint: disable=using-constant-test
|
181
|
+
def __await__(self):
|
182
|
+
if False:
|
183
|
+
yield self
|
184
|
+
return GetAlarmSuppressionResult(
|
185
|
+
alarm_suppression_id=self.alarm_suppression_id,
|
186
|
+
alarm_suppression_targets=self.alarm_suppression_targets,
|
187
|
+
compartment_id=self.compartment_id,
|
188
|
+
defined_tags=self.defined_tags,
|
189
|
+
description=self.description,
|
190
|
+
dimensions=self.dimensions,
|
191
|
+
display_name=self.display_name,
|
192
|
+
freeform_tags=self.freeform_tags,
|
193
|
+
id=self.id,
|
194
|
+
state=self.state,
|
195
|
+
time_created=self.time_created,
|
196
|
+
time_suppress_from=self.time_suppress_from,
|
197
|
+
time_suppress_until=self.time_suppress_until,
|
198
|
+
time_updated=self.time_updated)
|
199
|
+
|
200
|
+
|
201
|
+
def get_alarm_suppression(alarm_suppression_id: Optional[str] = None,
|
202
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlarmSuppressionResult:
|
203
|
+
"""
|
204
|
+
This data source provides details about a specific Alarm Suppression resource in Oracle Cloud Infrastructure Monitoring service.
|
205
|
+
|
206
|
+
Gets the specified alarm suppression.
|
207
|
+
|
208
|
+
For important limits information, see
|
209
|
+
[Limits on Monitoring](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits).
|
210
|
+
|
211
|
+
This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations.
|
212
|
+
Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests,
|
213
|
+
or transactions, per second (TPS) for a given tenancy.
|
214
|
+
|
215
|
+
## Example Usage
|
216
|
+
|
217
|
+
```python
|
218
|
+
import pulumi
|
219
|
+
import pulumi_oci as oci
|
220
|
+
|
221
|
+
test_alarm_suppression = oci.Monitoring.get_alarm_suppression(alarm_suppression_id=oci_monitoring_alarm_suppression["test_alarm_suppression"]["id"])
|
222
|
+
```
|
223
|
+
|
224
|
+
|
225
|
+
:param str alarm_suppression_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression.
|
226
|
+
"""
|
227
|
+
__args__ = dict()
|
228
|
+
__args__['alarmSuppressionId'] = alarm_suppression_id
|
229
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
230
|
+
__ret__ = pulumi.runtime.invoke('oci:Monitoring/getAlarmSuppression:getAlarmSuppression', __args__, opts=opts, typ=GetAlarmSuppressionResult).value
|
231
|
+
|
232
|
+
return AwaitableGetAlarmSuppressionResult(
|
233
|
+
alarm_suppression_id=pulumi.get(__ret__, 'alarm_suppression_id'),
|
234
|
+
alarm_suppression_targets=pulumi.get(__ret__, 'alarm_suppression_targets'),
|
235
|
+
compartment_id=pulumi.get(__ret__, 'compartment_id'),
|
236
|
+
defined_tags=pulumi.get(__ret__, 'defined_tags'),
|
237
|
+
description=pulumi.get(__ret__, 'description'),
|
238
|
+
dimensions=pulumi.get(__ret__, 'dimensions'),
|
239
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
240
|
+
freeform_tags=pulumi.get(__ret__, 'freeform_tags'),
|
241
|
+
id=pulumi.get(__ret__, 'id'),
|
242
|
+
state=pulumi.get(__ret__, 'state'),
|
243
|
+
time_created=pulumi.get(__ret__, 'time_created'),
|
244
|
+
time_suppress_from=pulumi.get(__ret__, 'time_suppress_from'),
|
245
|
+
time_suppress_until=pulumi.get(__ret__, 'time_suppress_until'),
|
246
|
+
time_updated=pulumi.get(__ret__, 'time_updated'))
|
247
|
+
|
248
|
+
|
249
|
+
@_utilities.lift_output_func(get_alarm_suppression)
|
250
|
+
def get_alarm_suppression_output(alarm_suppression_id: Optional[pulumi.Input[str]] = None,
|
251
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlarmSuppressionResult]:
|
252
|
+
"""
|
253
|
+
This data source provides details about a specific Alarm Suppression resource in Oracle Cloud Infrastructure Monitoring service.
|
254
|
+
|
255
|
+
Gets the specified alarm suppression.
|
256
|
+
|
257
|
+
For important limits information, see
|
258
|
+
[Limits on Monitoring](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits).
|
259
|
+
|
260
|
+
This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations.
|
261
|
+
Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests,
|
262
|
+
or transactions, per second (TPS) for a given tenancy.
|
263
|
+
|
264
|
+
## Example Usage
|
265
|
+
|
266
|
+
```python
|
267
|
+
import pulumi
|
268
|
+
import pulumi_oci as oci
|
269
|
+
|
270
|
+
test_alarm_suppression = oci.Monitoring.get_alarm_suppression(alarm_suppression_id=oci_monitoring_alarm_suppression["test_alarm_suppression"]["id"])
|
271
|
+
```
|
272
|
+
|
273
|
+
|
274
|
+
:param str alarm_suppression_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm suppression.
|
275
|
+
"""
|
276
|
+
...
|
@@ -0,0 +1,192 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
from . import outputs
|
12
|
+
from ._inputs import *
|
13
|
+
|
14
|
+
__all__ = [
|
15
|
+
'GetAlarmSuppressionsResult',
|
16
|
+
'AwaitableGetAlarmSuppressionsResult',
|
17
|
+
'get_alarm_suppressions',
|
18
|
+
'get_alarm_suppressions_output',
|
19
|
+
]
|
20
|
+
|
21
|
+
@pulumi.output_type
|
22
|
+
class GetAlarmSuppressionsResult:
|
23
|
+
"""
|
24
|
+
A collection of values returned by getAlarmSuppressions.
|
25
|
+
"""
|
26
|
+
def __init__(__self__, alarm_id=None, alarm_suppression_collections=None, display_name=None, filters=None, id=None, state=None):
|
27
|
+
if alarm_id and not isinstance(alarm_id, str):
|
28
|
+
raise TypeError("Expected argument 'alarm_id' to be a str")
|
29
|
+
pulumi.set(__self__, "alarm_id", alarm_id)
|
30
|
+
if alarm_suppression_collections and not isinstance(alarm_suppression_collections, list):
|
31
|
+
raise TypeError("Expected argument 'alarm_suppression_collections' to be a list")
|
32
|
+
pulumi.set(__self__, "alarm_suppression_collections", alarm_suppression_collections)
|
33
|
+
if display_name and not isinstance(display_name, str):
|
34
|
+
raise TypeError("Expected argument 'display_name' to be a str")
|
35
|
+
pulumi.set(__self__, "display_name", display_name)
|
36
|
+
if filters and not isinstance(filters, list):
|
37
|
+
raise TypeError("Expected argument 'filters' to be a list")
|
38
|
+
pulumi.set(__self__, "filters", filters)
|
39
|
+
if id and not isinstance(id, str):
|
40
|
+
raise TypeError("Expected argument 'id' to be a str")
|
41
|
+
pulumi.set(__self__, "id", id)
|
42
|
+
if state and not isinstance(state, str):
|
43
|
+
raise TypeError("Expected argument 'state' to be a str")
|
44
|
+
pulumi.set(__self__, "state", state)
|
45
|
+
|
46
|
+
@property
|
47
|
+
@pulumi.getter(name="alarmId")
|
48
|
+
def alarm_id(self) -> str:
|
49
|
+
"""
|
50
|
+
The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
|
51
|
+
"""
|
52
|
+
return pulumi.get(self, "alarm_id")
|
53
|
+
|
54
|
+
@property
|
55
|
+
@pulumi.getter(name="alarmSuppressionCollections")
|
56
|
+
def alarm_suppression_collections(self) -> Sequence['outputs.GetAlarmSuppressionsAlarmSuppressionCollectionResult']:
|
57
|
+
"""
|
58
|
+
The list of alarm_suppression_collection.
|
59
|
+
"""
|
60
|
+
return pulumi.get(self, "alarm_suppression_collections")
|
61
|
+
|
62
|
+
@property
|
63
|
+
@pulumi.getter(name="displayName")
|
64
|
+
def display_name(self) -> Optional[str]:
|
65
|
+
"""
|
66
|
+
A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
|
67
|
+
"""
|
68
|
+
return pulumi.get(self, "display_name")
|
69
|
+
|
70
|
+
@property
|
71
|
+
@pulumi.getter
|
72
|
+
def filters(self) -> Optional[Sequence['outputs.GetAlarmSuppressionsFilterResult']]:
|
73
|
+
return pulumi.get(self, "filters")
|
74
|
+
|
75
|
+
@property
|
76
|
+
@pulumi.getter
|
77
|
+
def id(self) -> str:
|
78
|
+
"""
|
79
|
+
The provider-assigned unique ID for this managed resource.
|
80
|
+
"""
|
81
|
+
return pulumi.get(self, "id")
|
82
|
+
|
83
|
+
@property
|
84
|
+
@pulumi.getter
|
85
|
+
def state(self) -> Optional[str]:
|
86
|
+
"""
|
87
|
+
The current lifecycle state of the alarm suppression. Example: `DELETED`
|
88
|
+
"""
|
89
|
+
return pulumi.get(self, "state")
|
90
|
+
|
91
|
+
|
92
|
+
class AwaitableGetAlarmSuppressionsResult(GetAlarmSuppressionsResult):
|
93
|
+
# pylint: disable=using-constant-test
|
94
|
+
def __await__(self):
|
95
|
+
if False:
|
96
|
+
yield self
|
97
|
+
return GetAlarmSuppressionsResult(
|
98
|
+
alarm_id=self.alarm_id,
|
99
|
+
alarm_suppression_collections=self.alarm_suppression_collections,
|
100
|
+
display_name=self.display_name,
|
101
|
+
filters=self.filters,
|
102
|
+
id=self.id,
|
103
|
+
state=self.state)
|
104
|
+
|
105
|
+
|
106
|
+
def get_alarm_suppressions(alarm_id: Optional[str] = None,
|
107
|
+
display_name: Optional[str] = None,
|
108
|
+
filters: Optional[Sequence[pulumi.InputType['GetAlarmSuppressionsFilterArgs']]] = None,
|
109
|
+
state: Optional[str] = None,
|
110
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlarmSuppressionsResult:
|
111
|
+
"""
|
112
|
+
This data source provides the list of Alarm Suppressions in Oracle Cloud Infrastructure Monitoring service.
|
113
|
+
|
114
|
+
Lists alarm suppressions for the specified alarm.
|
115
|
+
Only dimension-level suppressions are listed. Alarm-level suppressions are not listed.
|
116
|
+
|
117
|
+
For important limits information, see
|
118
|
+
[Limits on Monitoring](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits).
|
119
|
+
|
120
|
+
This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations.
|
121
|
+
Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests,
|
122
|
+
or transactions, per second (TPS) for a given tenancy.
|
123
|
+
|
124
|
+
## Example Usage
|
125
|
+
|
126
|
+
```python
|
127
|
+
import pulumi
|
128
|
+
import pulumi_oci as oci
|
129
|
+
|
130
|
+
test_alarm_suppressions = oci.Monitoring.get_alarm_suppressions(alarm_id=oci_monitoring_alarm["test_alarm"]["id"],
|
131
|
+
display_name=var["alarm_suppression_display_name"],
|
132
|
+
state=var["alarm_suppression_state"])
|
133
|
+
```
|
134
|
+
|
135
|
+
|
136
|
+
:param str alarm_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
|
137
|
+
:param str display_name: A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
|
138
|
+
:param str state: A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
|
139
|
+
"""
|
140
|
+
__args__ = dict()
|
141
|
+
__args__['alarmId'] = alarm_id
|
142
|
+
__args__['displayName'] = display_name
|
143
|
+
__args__['filters'] = filters
|
144
|
+
__args__['state'] = state
|
145
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
146
|
+
__ret__ = pulumi.runtime.invoke('oci:Monitoring/getAlarmSuppressions:getAlarmSuppressions', __args__, opts=opts, typ=GetAlarmSuppressionsResult).value
|
147
|
+
|
148
|
+
return AwaitableGetAlarmSuppressionsResult(
|
149
|
+
alarm_id=pulumi.get(__ret__, 'alarm_id'),
|
150
|
+
alarm_suppression_collections=pulumi.get(__ret__, 'alarm_suppression_collections'),
|
151
|
+
display_name=pulumi.get(__ret__, 'display_name'),
|
152
|
+
filters=pulumi.get(__ret__, 'filters'),
|
153
|
+
id=pulumi.get(__ret__, 'id'),
|
154
|
+
state=pulumi.get(__ret__, 'state'))
|
155
|
+
|
156
|
+
|
157
|
+
@_utilities.lift_output_func(get_alarm_suppressions)
|
158
|
+
def get_alarm_suppressions_output(alarm_id: Optional[pulumi.Input[str]] = None,
|
159
|
+
display_name: Optional[pulumi.Input[Optional[str]]] = None,
|
160
|
+
filters: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetAlarmSuppressionsFilterArgs']]]]] = None,
|
161
|
+
state: Optional[pulumi.Input[Optional[str]]] = None,
|
162
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlarmSuppressionsResult]:
|
163
|
+
"""
|
164
|
+
This data source provides the list of Alarm Suppressions in Oracle Cloud Infrastructure Monitoring service.
|
165
|
+
|
166
|
+
Lists alarm suppressions for the specified alarm.
|
167
|
+
Only dimension-level suppressions are listed. Alarm-level suppressions are not listed.
|
168
|
+
|
169
|
+
For important limits information, see
|
170
|
+
[Limits on Monitoring](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#limits).
|
171
|
+
|
172
|
+
This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations.
|
173
|
+
Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests,
|
174
|
+
or transactions, per second (TPS) for a given tenancy.
|
175
|
+
|
176
|
+
## Example Usage
|
177
|
+
|
178
|
+
```python
|
179
|
+
import pulumi
|
180
|
+
import pulumi_oci as oci
|
181
|
+
|
182
|
+
test_alarm_suppressions = oci.Monitoring.get_alarm_suppressions(alarm_id=oci_monitoring_alarm["test_alarm"]["id"],
|
183
|
+
display_name=var["alarm_suppression_display_name"],
|
184
|
+
state=var["alarm_suppression_state"])
|
185
|
+
```
|
186
|
+
|
187
|
+
|
188
|
+
:param str alarm_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
|
189
|
+
:param str display_name: A filter to return only resources that match the given display name exactly. Use this filter to list a alarm suppression by name. Alternatively, when you know the alarm suppression OCID, use the GetAlarmSuppression operation.
|
190
|
+
:param str state: A filter to return only resources that match the given lifecycle state exactly. When not specified, only resources in the ACTIVE lifecycle state are listed.
|
191
|
+
"""
|
192
|
+
...
|
@@ -193,18 +193,20 @@ def get_metric_data(compartment_id: Optional[str] = None,
|
|
193
193
|
|
194
194
|
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example: `ocid1.compartment.oc1..exampleuniqueID`
|
195
195
|
:param bool compartment_id_in_subtree: When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
|
196
|
-
:param str end_time: The end of the time range to use when searching for metric data points. Format is defined by RFC3339. The response excludes metric data points for the endTime. Default value: the timestamp representing when the call was sent. Example: `
|
196
|
+
:param str end_time: The end of the time range to use when searching for metric data points. Format is defined by RFC3339. The response excludes metric data points for the endTime. Default value: the timestamp representing when the call was sent. Example: `2023-02-01T02:02:29.600Z`
|
197
197
|
:param str namespace: The source service or application to use when searching for metric data points to aggregate. Example: `oci_computeagent`
|
198
|
-
:param str query: The Monitoring Query Language (MQL) expression to use when searching for metric data points to aggregate. The query must specify a metric, statistic, and interval. Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`.
|
198
|
+
:param str query: The Monitoring Query Language (MQL) expression to use when searching for metric data points to aggregate. The query must specify a metric, statistic, and interval. Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. When specifying a dimension value, surround it with double quotes, and escape each double quote with a backslash (`\\`) character. Supported grouping functions: `grouping()`, `groupBy()`.
|
199
199
|
|
200
200
|
Construct your query to avoid exceeding limits on returned data. See [MetricData Reference](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/20180401/MetricData).
|
201
201
|
|
202
202
|
For details about Monitoring Query Language (MQL), see [Monitoring Query Language (MQL) Reference](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). For available dimensions, review the metric definition for the supported service. See [Supported Services](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices).
|
203
203
|
|
204
|
-
Example: `CpuUtilization[1m].sum()`
|
204
|
+
Example 1: `CpuUtilization[1m].sum()`
|
205
|
+
|
206
|
+
Example 2 (escaped double quotes for value string): `CpuUtilization[1m]{resourceId = \\"<var><instance_OCID></var>\\"}.max()`
|
205
207
|
:param str resolution: The time between calculated aggregation windows. Use with the query interval to vary the frequency for returning aggregated data points. For example, use a query interval of 5 minutes with a resolution of 1 minute to retrieve five-minute aggregations at a one-minute frequency. The resolution must be equal or less than the interval in the query. The default resolution is 1m (one minute). Supported values: `1m`-`60m`, `1h`-`24h`, `1d`. Example: `5m`
|
206
208
|
:param str resource_group: 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. A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). Example: `frontend-fleet`
|
207
|
-
:param str start_time: The beginning of the time range to use when searching for metric data points. Format is defined by RFC3339. The response includes metric data points for the startTime. Default value: the timestamp 3 hours before the call was sent. Example: `
|
209
|
+
:param str start_time: The beginning of the time range to use when searching for metric data points. Format is defined by RFC3339. The response includes metric data points for the startTime. Default value: the timestamp 3 hours before the call was sent. Example: `2023-02-01T01:02:29.600Z`
|
208
210
|
"""
|
209
211
|
__args__ = dict()
|
210
212
|
__args__['compartmentId'] = compartment_id
|
@@ -276,17 +278,19 @@ def get_metric_data_output(compartment_id: Optional[pulumi.Input[str]] = None,
|
|
276
278
|
|
277
279
|
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example: `ocid1.compartment.oc1..exampleuniqueID`
|
278
280
|
:param bool compartment_id_in_subtree: When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
|
279
|
-
:param str end_time: The end of the time range to use when searching for metric data points. Format is defined by RFC3339. The response excludes metric data points for the endTime. Default value: the timestamp representing when the call was sent. Example: `
|
281
|
+
:param str end_time: The end of the time range to use when searching for metric data points. Format is defined by RFC3339. The response excludes metric data points for the endTime. Default value: the timestamp representing when the call was sent. Example: `2023-02-01T02:02:29.600Z`
|
280
282
|
:param str namespace: The source service or application to use when searching for metric data points to aggregate. Example: `oci_computeagent`
|
281
|
-
:param str query: The Monitoring Query Language (MQL) expression to use when searching for metric data points to aggregate. The query must specify a metric, statistic, and interval. Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`.
|
283
|
+
:param str query: The Monitoring Query Language (MQL) expression to use when searching for metric data points to aggregate. The query must specify a metric, statistic, and interval. Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. When specifying a dimension value, surround it with double quotes, and escape each double quote with a backslash (`\\`) character. Supported grouping functions: `grouping()`, `groupBy()`.
|
282
284
|
|
283
285
|
Construct your query to avoid exceeding limits on returned data. See [MetricData Reference](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/20180401/MetricData).
|
284
286
|
|
285
287
|
For details about Monitoring Query Language (MQL), see [Monitoring Query Language (MQL) Reference](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). For available dimensions, review the metric definition for the supported service. See [Supported Services](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices).
|
286
288
|
|
287
|
-
Example: `CpuUtilization[1m].sum()`
|
289
|
+
Example 1: `CpuUtilization[1m].sum()`
|
290
|
+
|
291
|
+
Example 2 (escaped double quotes for value string): `CpuUtilization[1m]{resourceId = \\"<var><instance_OCID></var>\\"}.max()`
|
288
292
|
:param str resolution: The time between calculated aggregation windows. Use with the query interval to vary the frequency for returning aggregated data points. For example, use a query interval of 5 minutes with a resolution of 1 minute to retrieve five-minute aggregations at a one-minute frequency. The resolution must be equal or less than the interval in the query. The default resolution is 1m (one minute). Supported values: `1m`-`60m`, `1h`-`24h`, `1d`. Example: `5m`
|
289
293
|
:param str resource_group: 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. A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). Example: `frontend-fleet`
|
290
|
-
:param str start_time: The beginning of the time range to use when searching for metric data points. Format is defined by RFC3339. The response includes metric data points for the startTime. Default value: the timestamp 3 hours before the call was sent. Example: `
|
294
|
+
:param str start_time: The beginning of the time range to use when searching for metric data points. Format is defined by RFC3339. The response includes metric data points for the startTime. Default value: the timestamp 3 hours before the call was sent. Example: `2023-02-01T01:02:29.600Z`
|
291
295
|
"""
|
292
296
|
...
|
@@ -182,7 +182,7 @@ def get_metrics(compartment_id: Optional[str] = None,
|
|
182
182
|
|
183
183
|
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example: `ocid1.compartment.oc1..exampleuniqueID`
|
184
184
|
:param bool compartment_id_in_subtree: When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
|
185
|
-
:param Mapping[str, Any] dimension_filters: Qualifiers that you want to use when searching for metric definitions. Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. Example: `"resourceId": "
|
185
|
+
:param Mapping[str, Any] dimension_filters: Qualifiers that you want to use when searching for metric definitions. Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. Example: `{"resourceId": "instance.region1.phx.exampleuniqueID"}`
|
186
186
|
:param Sequence[str] group_bies: Group metrics by these fields in the response. For example, to list all metric namespaces available in a compartment, groupBy the "namespace" field. Supported fields: namespace, name, resourceGroup. If `groupBy` is used, then `dimensionFilters` is ignored.
|
187
187
|
|
188
188
|
Example - group by namespace: `[ "namespace" ]`
|
@@ -256,7 +256,7 @@ def get_metrics_output(compartment_id: Optional[pulumi.Input[str]] = None,
|
|
256
256
|
|
257
257
|
:param str compartment_id: The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the resources monitored by the metric that you are searching for. Use tenancyId to search in the root compartment. Example: `ocid1.compartment.oc1..exampleuniqueID`
|
258
258
|
:param bool compartment_id_in_subtree: When true, returns resources from all compartments and subcompartments. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). A true value requires the user to have tenancy-level permissions. If this requirement is not met, then the call is rejected. When false, returns resources from only the compartment specified in compartmentId. Default is false.
|
259
|
-
:param Mapping[str, Any] dimension_filters: Qualifiers that you want to use when searching for metric definitions. Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. Example: `"resourceId": "
|
259
|
+
:param Mapping[str, Any] dimension_filters: Qualifiers that you want to use when searching for metric definitions. Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. Example: `{"resourceId": "instance.region1.phx.exampleuniqueID"}`
|
260
260
|
:param Sequence[str] group_bies: Group metrics by these fields in the response. For example, to list all metric namespaces available in a compartment, groupBy the "namespace" field. Supported fields: namespace, name, resourceGroup. If `groupBy` is used, then `dimensionFilters` is ignored.
|
261
261
|
|
262
262
|
Example - group by namespace: `[ "namespace" ]`
|