Recurrence

class oci.monitoring.models.Recurrence(**kwargs)

Bases: oci.monitoring.models.suppression_condition.SuppressionCondition

Alarm suppression recurring schedule. Only one recurrence condition is supported within the list of preconditions for a suppression (suppressionConditions).

Attributes

CONDITION_TYPE_RECURRENCE str(object=’’) -> str
condition_type [Required] Gets the condition_type of this SuppressionCondition.
suppression_duration [Required] Gets the suppression_duration of this Recurrence.
suppression_recurrence [Required] Gets the suppression_recurrence of this Recurrence.

Methods

__init__(**kwargs) Initializes a new Recurrence object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
CONDITION_TYPE_RECURRENCE = 'RECURRENCE'
__init__(**kwargs)

Initializes a new Recurrence object with values from keyword arguments. The default value of the condition_type attribute of this class is RECURRENCE and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • condition_type (str) – The value to assign to the condition_type property of this Recurrence. Allowed values for this property are: “RECURRENCE”
  • suppression_recurrence (str) – The value to assign to the suppression_recurrence property of this Recurrence.
  • suppression_duration (str) – The value to assign to the suppression_duration property of this Recurrence.
condition_type

[Required] Gets the condition_type of this SuppressionCondition. Type of suppression condition.

Allowed values for this property are: “RECURRENCE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The condition_type of this SuppressionCondition.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

suppression_duration

[Required] Gets the suppression_duration of this Recurrence. Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: PT1M (1 minute). Maximum: PT24H (24 hours).

Returns:The suppression_duration of this Recurrence.
Return type:str
suppression_recurrence

[Required] Gets the suppression_recurrence of this Recurrence. Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts: * FREQ: Frequency of the recurring suppression: WEEKLY or DAILY only. * BYDAY: Comma separated days. Use with weekly suppressions only. Supported values: MO, TU, WE, TH, FR, SA ,`SU`. * BYHOUR, BYMINUTE, BYSECOND: Start time in UTC, after timeSuppressFrom value. Default is 00:00:00 UTC after timeSuppressFrom.

Returns:The suppression_recurrence of this Recurrence.
Return type:str