Condition

class oci.stack_monitoring.models.Condition(**kwargs)

Bases: object

The Monitoring Template Alarm Condition.

Attributes:

SEVERITY_CRITICAL

A constant which can be used with the severity property of a Condition.

SEVERITY_WARNING

A constant which can be used with the severity property of a Condition.

body

Gets the body of this Condition.

query

[Required] Gets the query of this Condition.

severity

[Required] Gets the severity of this Condition.

should_append_note

Gets the should_append_note of this Condition.

should_append_url

Gets the should_append_url of this Condition.

trigger_delay

Gets the trigger_delay of this Condition.

Methods:

__init__(**kwargs)

Initializes a new Condition object with values from keyword arguments.

SEVERITY_CRITICAL = 'CRITICAL'

A constant which can be used with the severity property of a Condition. This constant has a value of “CRITICAL”

SEVERITY_WARNING = 'WARNING'

A constant which can be used with the severity property of a Condition. This constant has a value of “WARNING”

__init__(**kwargs)

Initializes a new Condition object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • severity (str) – The value to assign to the severity property of this Condition. Allowed values for this property are: “CRITICAL”, “WARNING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • query (str) – The value to assign to the query property of this Condition.

  • body (str) – The value to assign to the body property of this Condition.

  • should_append_note (bool) – The value to assign to the should_append_note property of this Condition.

  • should_append_url (bool) – The value to assign to the should_append_url property of this Condition.

  • trigger_delay (str) – The value to assign to the trigger_delay property of this Condition.

property body

Gets the body of this Condition. 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.

Returns

The body of this Condition.

Return type

str

property query

[Required] Gets the query of this Condition. The Monitoring Query Language (MQL) expression to evaluate for the alarm.

Returns

The query of this Condition.

Return type

str

property severity

[Required] Gets the severity of this Condition. Severity - Critical/Warning

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

Returns

The severity of this Condition.

Return type

str

property should_append_note

Gets the should_append_note of this Condition. Whether the note need to add into bottom of the body for mapping the alarms information with template or not.

Returns

The should_append_note of this Condition.

Return type

bool

property should_append_url

Gets the should_append_url of this Condition. Whether the URL need to add into bottom of the body for mapping the alarms information with template or not.

Returns

The should_append_url of this Condition.

Return type

bool

property trigger_delay

Gets the trigger_delay of this Condition. The period of time that the condition defined in the alarm must persist before the alarm state changes from “OK” to “FIRING”.

Returns

The trigger_delay of this Condition.

Return type

str