📂 Advanced File Manager
Multi-Root Navigation System
⚡ Quick Jump
Server (/)
Home (/home)
Var_www (/var/www)
Current (/home4/shelley/public_html/shelleycutler.com/wp-content/mu-plugins)
📍 Go
⬆ Ke Atas
🏠 Root Server
🏠 Root App
🔄 Refresh
📀 /
›
usr
›
libexec
›
oracle-cloud-agent
›
plugins
›
osms
›
oci
›
monitoring
›
📁 models
📍
Lokasi:
/usr/libexec/oracle-cloud-agent/plugins/osms/oci/monitoring/models
💾
Free:
45.8 GB
⚠️ Direktori ini
tidak writable
.
✏️ Mengedit: create_alarm_details.pyc
a O��f�{ � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s* e Zd ZdZdZdZdZdd� Zedd� �Z e j d d� �Z ed d� �Zej dd� �Zed d� �Zej dd� �Zedd� �Z e j dd� �Z edd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd� �Zej dd� �Zedd � �Zej d!d � �Zed"d#� �Zej d$d#� �Zed%d&� �Zej d'd&� �Zed(d)� �Zej d*d)� �Zed+d,� �Zej d-d,� �Zed.d/� �Zej d0d/� �Zed1d2� �Zej d3d2� �Zed4d5� �Zej d6d5� �Zed7d8� �Zej d9d8� �Zed:d;� �Zej d<d;� �Zed=d>� �Zej d?d>� �Zd@dA� ZdBdC� ZdDdE� ZdFS )G�CreateAlarmDetailsz: The configuration details for creating an alarm. �RAW�PRETTY_JSON� ONS_OPTIMIZEDc K s� dddddddddddddddddddd�| _ dd d ddd dddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _dS )a` Initializes a new CreateAlarmDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param display_name: The value to assign to the display_name property of this CreateAlarmDetails. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this CreateAlarmDetails. :type compartment_id: str :param metric_compartment_id: The value to assign to the metric_compartment_id property of this CreateAlarmDetails. :type metric_compartment_id: str :param metric_compartment_id_in_subtree: The value to assign to the metric_compartment_id_in_subtree property of this CreateAlarmDetails. :type metric_compartment_id_in_subtree: bool :param namespace: The value to assign to the namespace property of this CreateAlarmDetails. :type namespace: str :param resource_group: The value to assign to the resource_group property of this CreateAlarmDetails. :type resource_group: str :param query: The value to assign to the query property of this CreateAlarmDetails. :type query: str :param resolution: The value to assign to the resolution property of this CreateAlarmDetails. :type resolution: str :param pending_duration: The value to assign to the pending_duration property of this CreateAlarmDetails. :type pending_duration: str :param severity: The value to assign to the severity property of this CreateAlarmDetails. :type severity: str :param body: The value to assign to the body property of this CreateAlarmDetails. :type body: str :param is_notifications_per_metric_dimension_enabled: The value to assign to the is_notifications_per_metric_dimension_enabled property of this CreateAlarmDetails. :type is_notifications_per_metric_dimension_enabled: bool :param message_format: The value to assign to the message_format property of this CreateAlarmDetails. Allowed values for this property are: "RAW", "PRETTY_JSON", "ONS_OPTIMIZED" :type message_format: str :param destinations: The value to assign to the destinations property of this CreateAlarmDetails. :type destinations: list[str] :param repeat_notification_duration: The value to assign to the repeat_notification_duration property of this CreateAlarmDetails. :type repeat_notification_duration: str :param suppression: The value to assign to the suppression property of this CreateAlarmDetails. :type suppression: oci.monitoring.models.Suppression :param is_enabled: The value to assign to the is_enabled property of this CreateAlarmDetails. :type is_enabled: bool :param freeform_tags: The value to assign to the freeform_tags property of this CreateAlarmDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateAlarmDetails. :type defined_tags: dict(str, dict(str, object)) �str�boolz list[str]�Suppressionzdict(str, str)zdict(str, dict(str, object)))�display_name�compartment_id�metric_compartment_id� metric_compartment_id_in_subtree� namespace�resource_group�query� resolution�pending_duration�severity�body�-is_notifications_per_metric_dimension_enabled�message_format�destinations�repeat_notification_duration�suppression� is_enabled� freeform_tags�defined_tags�displayName� compartmentId�metricCompartmentId�metricCompartmentIdInSubtreer � resourceGroupr r �pendingDurationr r �(isNotificationsPerMetricDimensionEnabled� messageFormatr �repeatNotificationDurationr � isEnabled�freeformTags�definedTagsN)� swagger_types� attribute_map� _display_name�_compartment_id�_metric_compartment_id�!_metric_compartment_id_in_subtree� _namespace�_resource_group�_query�_resolution�_pending_duration� _severity�_body�._is_notifications_per_metric_dimension_enabled�_message_format� _destinations�_repeat_notification_duration�_suppression�_is_enabled�_freeform_tags� _defined_tags)�self�kwargs� rC ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/monitoring/models/create_alarm_details.py�__init__ sv T��zCreateAlarmDetails.__init__c C s | j S )a� **[Required]** Gets the display_name of this CreateAlarmDetails. A user-friendly name for the alarm. It does not have to be unique, and it's changeable. Avoid entering confidential information. This name is sent as the title for notifications related to this alarm. Example: `High CPU Utilization` :return: The display_name of this CreateAlarmDetails. :rtype: str �r. �rA rC rC rD r � s zCreateAlarmDetails.display_namec C s || _ dS )a� Sets the display_name of this CreateAlarmDetails. A user-friendly name for the alarm. It does not have to be unique, and it's changeable. Avoid entering confidential information. This name is sent as the title for notifications related to this alarm. Example: `High CPU Utilization` :param display_name: The display_name of this CreateAlarmDetails. :type: str NrF )rA r rC rC rD r � s c C s | j S )a@ **[Required]** Gets the compartment_id of this CreateAlarmDetails. The `OCID`__ of the compartment containing the alarm. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The compartment_id of this CreateAlarmDetails. :rtype: str �r/ rG rC rC rD r � s z!CreateAlarmDetails.compartment_idc C s || _ dS )a> Sets the compartment_id of this CreateAlarmDetails. The `OCID`__ of the compartment containing the alarm. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param compartment_id: The compartment_id of this CreateAlarmDetails. :type: str NrH )rA r rC rC rD r � s c C s | j S )at **[Required]** Gets the metric_compartment_id of this CreateAlarmDetails. The `OCID`__ of the compartment containing the metric being evaluated by the alarm. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The metric_compartment_id of this CreateAlarmDetails. :rtype: str �r0 rG rC rC rD r � s z(CreateAlarmDetails.metric_compartment_idc C s || _ dS )ay Sets the metric_compartment_id of this CreateAlarmDetails. The `OCID`__ of the compartment containing the metric being evaluated by the alarm. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param metric_compartment_id: The metric_compartment_id of this CreateAlarmDetails. :type: str NrI )rA r rC rC rD r � s c C s | j S )a� Gets the metric_compartment_id_in_subtree of this CreateAlarmDetails. When true, the alarm evaluates metrics from all compartments and subcompartments. The parameter can only be set to true when metricCompartmentId 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, the alarm evaluates metrics from only the compartment specified in metricCompartmentId. Default is false. Example: `true` :return: The metric_compartment_id_in_subtree of this CreateAlarmDetails. :rtype: bool �r1 rG rC rC rD r s z3CreateAlarmDetails.metric_compartment_id_in_subtreec C s || _ dS )a� Sets the metric_compartment_id_in_subtree of this CreateAlarmDetails. When true, the alarm evaluates metrics from all compartments and subcompartments. The parameter can only be set to true when metricCompartmentId 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, the alarm evaluates metrics from only the compartment specified in metricCompartmentId. Default is false. Example: `true` :param metric_compartment_id_in_subtree: The metric_compartment_id_in_subtree of this CreateAlarmDetails. :type: bool NrJ )rA r rC rC rD r s c C s | j S )a# **[Required]** Gets the namespace of this CreateAlarmDetails. The source service or application emitting the metric that is evaluated by the alarm. Example: `oci_computeagent` :return: The namespace of this CreateAlarmDetails. :rtype: str �r2 rG rC rC rD r / s zCreateAlarmDetails.namespacec C s || _ dS )a Sets the namespace of this CreateAlarmDetails. The source service or application emitting the metric that is evaluated by the alarm. Example: `oci_computeagent` :param namespace: The namespace of this CreateAlarmDetails. :type: str NrK )rA r rC rC rD r = s c C s | j S )a� Gets the resource_group of this CreateAlarmDetails. Resource group that you want to match. A null value returns only metric data that has no resource groups. The alarm retrieves metric data associated with the specified resource group only. 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 ($). Avoid entering confidential information. Example: `frontend-fleet` :return: The resource_group of this CreateAlarmDetails. :rtype: str �r3 rG rC rC rD r K s z!CreateAlarmDetails.resource_groupc C s || _ dS )a� Sets the resource_group of this CreateAlarmDetails. Resource group that you want to match. A null value returns only metric data that has no resource groups. The alarm retrieves metric data associated with the specified resource group only. 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 ($). Avoid entering confidential information. Example: `frontend-fleet` :param resource_group: The resource_group of this CreateAlarmDetails. :type: str NrL )rA r rC rC rD r [ s c C s | j S )ac **[Required]** Gets the query of this CreateAlarmDetails. The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). 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()`. For details about Monitoring Query Language (MQL), see `Monitoring Query Language (MQL) Reference`__. For available dimensions, review the metric definition for the supported service. See `Supported Services`__. Example of threshold alarm: ----- CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85 ----- Example of absence alarm: ----- CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() ----- __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices :return: The query of this CreateAlarmDetails. :rtype: str �r4 rG rC rC rD r k s &zCreateAlarmDetails.queryc C s || _ dS )aX Sets the query of this CreateAlarmDetails. The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). 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()`. For details about Monitoring Query Language (MQL), see `Monitoring Query Language (MQL) Reference`__. For available dimensions, review the metric definition for the supported service. See `Supported Services`__. Example of threshold alarm: ----- CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85 ----- Example of absence alarm: ----- CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() ----- __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm __ https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices :param query: The query of this CreateAlarmDetails. :type: str NrM )rA r rC rC rD r � s &c C s | j S )z� Gets the resolution of this CreateAlarmDetails. The time between calculated aggregation windows for the alarm. Supported value: `1m` :return: The resolution of this CreateAlarmDetails. :rtype: str �r5 rG rC rC rD r � s zCreateAlarmDetails.resolutionc C s || _ dS )z� Sets the resolution of this CreateAlarmDetails. The time between calculated aggregation windows for the alarm. Supported value: `1m` :param resolution: The resolution of this CreateAlarmDetails. :type: str NrN )rA r rC rC rD r � s c C s | j S )a� Gets the pending_duration of this CreateAlarmDetails. The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING". For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING". The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M. Under the default value of PT1M, the first evaluation that breaches the alarm updates the state to "FIRING". The alarm updates its status to "OK" when the breaching condition has been clear for the most recent minute. Example: `PT5M` :return: The pending_duration of this CreateAlarmDetails. :rtype: str �r6 rG rC rC rD r � s z#CreateAlarmDetails.pending_durationc C s || _ dS )a� Sets the pending_duration of this CreateAlarmDetails. The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING". For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING". The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M. Under the default value of PT1M, the first evaluation that breaches the alarm updates the state to "FIRING". The alarm updates its status to "OK" when the breaching condition has been clear for the most recent minute. Example: `PT5M` :param pending_duration: The pending_duration of this CreateAlarmDetails. :type: str NrO )rA r rC rC rD r � s c C s | j S )a **[Required]** Gets the severity of this CreateAlarmDetails. The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL` :return: The severity of this CreateAlarmDetails. :rtype: str �r7 rG rC rC rD r s zCreateAlarmDetails.severityc C s || _ dS )a Sets the severity of this CreateAlarmDetails. The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL` :param severity: The severity of this CreateAlarmDetails. :type: str NrP )rA r rC rC rD r s c C s | j S )a� Gets the body of this CreateAlarmDetails. The human-readable content of the notification delivered. 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.` :return: The body of this CreateAlarmDetails. :rtype: str �r8 rG rC rC rD r # s zCreateAlarmDetails.bodyc C s || _ dS )a� Sets the body of this CreateAlarmDetails. The human-readable content of the notification delivered. 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.` :param body: The body of this CreateAlarmDetails. :type: str NrQ )rA r rC rC rD r 3 s c C s | j S )aw Gets the is_notifications_per_metric_dimension_enabled of this CreateAlarmDetails. When set to `true`, splits notifications per metric stream. When set to `false`, groups notifications across metric streams. Example: `true` :return: The is_notifications_per_metric_dimension_enabled of this CreateAlarmDetails. :rtype: bool �r9 rG rC rC rD r C s z@CreateAlarmDetails.is_notifications_per_metric_dimension_enabledc C s || _ dS )a� Sets the is_notifications_per_metric_dimension_enabled of this CreateAlarmDetails. When set to `true`, splits notifications per metric stream. When set to `false`, groups notifications across metric streams. Example: `true` :param is_notifications_per_metric_dimension_enabled: The is_notifications_per_metric_dimension_enabled of this CreateAlarmDetails. :type: bool NrR )rA r rC rC rD r P s c C s | j S )a^ Gets the message_format of this CreateAlarmDetails. The format to use for notification messages sent from this alarm. The formats are: * `RAW` - Raw JSON blob. Default value. * `PRETTY_JSON`: JSON with new lines and indents. * `ONS_OPTIMIZED`: Simplified, user-friendly layout. Applies only to messages sent through the Notifications service to the following subscription types: Email. Allowed values for this property are: "RAW", "PRETTY_JSON", "ONS_OPTIMIZED" :return: The message_format of this CreateAlarmDetails. :rtype: str )r: rG rC rC rD r ] s z!CreateAlarmDetails.message_formatc C s* g d�}t ||�s td�|���|| _dS )a Sets the message_format of this CreateAlarmDetails. The format to use for notification messages sent from this alarm. The formats are: * `RAW` - Raw JSON blob. Default value. * `PRETTY_JSON`: JSON with new lines and indents. * `ONS_OPTIMIZED`: Simplified, user-friendly layout. Applies only to messages sent through the Notifications service to the following subscription types: Email. :param message_format: The message_format of this CreateAlarmDetails. :type: str )r r r z>Invalid value for `message_format`, must be None or one of {0}N)r � ValueError�formatr: )rA r �allowed_valuesrC rC rD r n s ��c C s | j S )a� **[Required]** Gets the destinations of this CreateAlarmDetails. A list of destinations to which the notifications for this alarm will be delivered. Each destination is represented by an `OCID`__ related to the supported destination service. For example, a destination using the Notifications service is represented by a topic OCID. Supported destination services: Notifications Service. Limit: One destination per supported destination service. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The destinations of this CreateAlarmDetails. :rtype: list[str] �r; rG rC rC rD r � s zCreateAlarmDetails.destinationsc C s || _ dS )a� Sets the destinations of this CreateAlarmDetails. A list of destinations to which the notifications for this alarm will be delivered. Each destination is represented by an `OCID`__ related to the supported destination service. For example, a destination using the Notifications service is represented by a topic OCID. Supported destination services: Notifications Service. Limit: One destination per supported destination service. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param destinations: The destinations of this CreateAlarmDetails. :type: list[str] NrV )rA r rC rC rD r � s c C s | j S )a� Gets the repeat_notification_duration of this CreateAlarmDetails. The frequency at which notifications are re-submitted, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, `PT4H` indicates four hours. Minimum: PT1M. Maximum: P30D. Default value: null (notifications are not re-submitted). Example: `PT2H` :return: The repeat_notification_duration of this CreateAlarmDetails. :rtype: str �r<