File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/stack_monitoring/models/create_monitoring_template_details.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # 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. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20210330 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class CreateMonitoringTemplateDetails(object): """ The information about new monitoring template. The monitoring template name should be unique in a compartment. """ #: A constant which can be used with the message_format property of a CreateMonitoringTemplateDetails. #: This constant has a value of "RAW" MESSAGE_FORMAT_RAW = "RAW" #: A constant which can be used with the message_format property of a CreateMonitoringTemplateDetails. #: This constant has a value of "PRETTY_JSON" MESSAGE_FORMAT_PRETTY_JSON = "PRETTY_JSON" #: A constant which can be used with the message_format property of a CreateMonitoringTemplateDetails. #: This constant has a value of "ONS_OPTIMIZED" MESSAGE_FORMAT_ONS_OPTIMIZED = "ONS_OPTIMIZED" def __init__(self, **kwargs): """ Initializes a new CreateMonitoringTemplateDetails 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 CreateMonitoringTemplateDetails. :type display_name: str :param compartment_id: The value to assign to the compartment_id property of this CreateMonitoringTemplateDetails. :type compartment_id: str :param description: The value to assign to the description property of this CreateMonitoringTemplateDetails. :type description: str :param destinations: The value to assign to the destinations property of this CreateMonitoringTemplateDetails. :type destinations: list[str] :param is_alarms_enabled: The value to assign to the is_alarms_enabled property of this CreateMonitoringTemplateDetails. :type is_alarms_enabled: bool :param is_split_notification_enabled: The value to assign to the is_split_notification_enabled property of this CreateMonitoringTemplateDetails. :type is_split_notification_enabled: bool :param members: The value to assign to the members property of this CreateMonitoringTemplateDetails. :type members: list[oci.stack_monitoring.models.MemberReference] :param repeat_notification_duration: The value to assign to the repeat_notification_duration property of this CreateMonitoringTemplateDetails. :type repeat_notification_duration: str :param message_format: The value to assign to the message_format property of this CreateMonitoringTemplateDetails. Allowed values for this property are: "RAW", "PRETTY_JSON", "ONS_OPTIMIZED" :type message_format: str :param freeform_tags: The value to assign to the freeform_tags property of this CreateMonitoringTemplateDetails. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this CreateMonitoringTemplateDetails. :type defined_tags: dict(str, dict(str, object)) """ self.swagger_types = { 'display_name': 'str', 'compartment_id': 'str', 'description': 'str', 'destinations': 'list[str]', 'is_alarms_enabled': 'bool', 'is_split_notification_enabled': 'bool', 'members': 'list[MemberReference]', 'repeat_notification_duration': 'str', 'message_format': 'str', 'freeform_tags': 'dict(str, str)', 'defined_tags': 'dict(str, dict(str, object))' } self.attribute_map = { 'display_name': 'displayName', 'compartment_id': 'compartmentId', 'description': 'description', 'destinations': 'destinations', 'is_alarms_enabled': 'isAlarmsEnabled', 'is_split_notification_enabled': 'isSplitNotificationEnabled', 'members': 'members', 'repeat_notification_duration': 'repeatNotificationDuration', 'message_format': 'messageFormat', 'freeform_tags': 'freeformTags', 'defined_tags': 'definedTags' } self._display_name = None self._compartment_id = None self._description = None self._destinations = None self._is_alarms_enabled = None self._is_split_notification_enabled = None self._members = None self._repeat_notification_duration = None self._message_format = None self._freeform_tags = None self._defined_tags = None @property def display_name(self): """ **[Required]** Gets the display_name of this CreateMonitoringTemplateDetails. A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information. :return: The display_name of this CreateMonitoringTemplateDetails. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this CreateMonitoringTemplateDetails. A user-friendly name for the monitoring template. It is unique and mutable in nature. Avoid entering confidential information. :param display_name: The display_name of this CreateMonitoringTemplateDetails. :type: str """ self._display_name = display_name @property def compartment_id(self): """ **[Required]** Gets the compartment_id of this CreateMonitoringTemplateDetails. The OCID of the compartment containing the monitoringTemplate. :return: The compartment_id of this CreateMonitoringTemplateDetails. :rtype: str """ return self._compartment_id @compartment_id.setter def compartment_id(self, compartment_id): """ Sets the compartment_id of this CreateMonitoringTemplateDetails. The OCID of the compartment containing the monitoringTemplate. :param compartment_id: The compartment_id of this CreateMonitoringTemplateDetails. :type: str """ self._compartment_id = compartment_id @property def description(self): """ Gets the description of this CreateMonitoringTemplateDetails. A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information. :return: The description of this CreateMonitoringTemplateDetails. :rtype: str """ return self._description @description.setter def description(self, description): """ Sets the description of this CreateMonitoringTemplateDetails. A user-friendly description for the monitoring template. It does not have to be unique, and it's changeable. Avoid entering confidential information. :param description: The description of this CreateMonitoringTemplateDetails. :type: str """ self._description = description @property def destinations(self): """ **[Required]** Gets the destinations of this CreateMonitoringTemplateDetails. A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic. :return: The destinations of this CreateMonitoringTemplateDetails. :rtype: list[str] """ return self._destinations @destinations.setter def destinations(self, destinations): """ Sets the destinations of this CreateMonitoringTemplateDetails. A list of destinations for alarm notifications. Each destination is represented by the OCID of a related resource, such as a topic. :param destinations: The destinations of this CreateMonitoringTemplateDetails. :type: list[str] """ self._destinations = destinations @property def is_alarms_enabled(self): """ Gets the is_alarms_enabled of this CreateMonitoringTemplateDetails. Whether the alarm is enabled or disabled, it will be Enabled by default. :return: The is_alarms_enabled of this CreateMonitoringTemplateDetails. :rtype: bool """ return self._is_alarms_enabled @is_alarms_enabled.setter def is_alarms_enabled(self, is_alarms_enabled): """ Sets the is_alarms_enabled of this CreateMonitoringTemplateDetails. Whether the alarm is enabled or disabled, it will be Enabled by default. :param is_alarms_enabled: The is_alarms_enabled of this CreateMonitoringTemplateDetails. :type: bool """ self._is_alarms_enabled = is_alarms_enabled @property def is_split_notification_enabled(self): """ Gets the is_split_notification_enabled of this CreateMonitoringTemplateDetails. Whether the alarm notification is enabled or disabled, it will be Enabled by default. :return: The is_split_notification_enabled of this CreateMonitoringTemplateDetails. :rtype: bool """ return self._is_split_notification_enabled @is_split_notification_enabled.setter def is_split_notification_enabled(self, is_split_notification_enabled): """ Sets the is_split_notification_enabled of this CreateMonitoringTemplateDetails. Whether the alarm notification is enabled or disabled, it will be Enabled by default. :param is_split_notification_enabled: The is_split_notification_enabled of this CreateMonitoringTemplateDetails. :type: bool """ self._is_split_notification_enabled = is_split_notification_enabled @property def members(self): """ **[Required]** Gets the members of this CreateMonitoringTemplateDetails. List of members of this monitoring template :return: The members of this CreateMonitoringTemplateDetails. :rtype: list[oci.stack_monitoring.models.MemberReference] """ return self._members @members.setter def members(self, members): """ Sets the members of this CreateMonitoringTemplateDetails. List of members of this monitoring template :param members: The members of this CreateMonitoringTemplateDetails. :type: list[oci.stack_monitoring.models.MemberReference] """ self._members = members @property def repeat_notification_duration(self): """ Gets the repeat_notification_duration of this CreateMonitoringTemplateDetails. The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D. :return: The repeat_notification_duration of this CreateMonitoringTemplateDetails. :rtype: str """ return self._repeat_notification_duration @repeat_notification_duration.setter def repeat_notification_duration(self, repeat_notification_duration): """ Sets the repeat_notification_duration of this CreateMonitoringTemplateDetails. The frequency for re-submitting alarm notifications, if the alarm keeps firing without interruption. Format defined by ISO 8601. For example, PT4H indicates four hours. Minimum- PT1M. Maximum - P30D. :param repeat_notification_duration: The repeat_notification_duration of this CreateMonitoringTemplateDetails. :type: str """ self._repeat_notification_duration = repeat_notification_duration @property def message_format(self): """ Gets the message_format of this CreateMonitoringTemplateDetails. The format to use for alarm notifications. Allowed values for this property are: "RAW", "PRETTY_JSON", "ONS_OPTIMIZED" :return: The message_format of this CreateMonitoringTemplateDetails. :rtype: str """ return self._message_format @message_format.setter def message_format(self, message_format): """ Sets the message_format of this CreateMonitoringTemplateDetails. The format to use for alarm notifications. :param message_format: The message_format of this CreateMonitoringTemplateDetails. :type: str """ allowed_values = ["RAW", "PRETTY_JSON", "ONS_OPTIMIZED"] if not value_allowed_none_or_none_sentinel(message_format, allowed_values): raise ValueError( f"Invalid value for `message_format`, must be None or one of {allowed_values}" ) self._message_format = message_format @property def freeform_tags(self): """ Gets the freeform_tags of this CreateMonitoringTemplateDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :return: The freeform_tags of this CreateMonitoringTemplateDetails. :rtype: dict(str, str) """ return self._freeform_tags @freeform_tags.setter def freeform_tags(self, freeform_tags): """ Sets the freeform_tags of this CreateMonitoringTemplateDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}` :param freeform_tags: The freeform_tags of this CreateMonitoringTemplateDetails. :type: dict(str, str) """ self._freeform_tags = freeform_tags @property def defined_tags(self): """ Gets the defined_tags of this CreateMonitoringTemplateDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :return: The defined_tags of this CreateMonitoringTemplateDetails. :rtype: dict(str, dict(str, object)) """ return self._defined_tags @defined_tags.setter def defined_tags(self, defined_tags): """ Sets the defined_tags of this CreateMonitoringTemplateDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}` :param defined_tags: The defined_tags of this CreateMonitoringTemplateDetails. :type: dict(str, dict(str, object)) """ self._defined_tags = defined_tags def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings