Class: DatadogAPIClient::V2::IssueWatchCondition
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::IssueWatchCondition
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/issue_watch_condition.rb
Overview
Condition that triggers the watch action. The fields that are set depend on kind:
OCCURRENCES uses threshold, CARDINALITY uses threshold and projection,
ELAPSED_TIME uses duration, and ANY and ALL use operands.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#duration ⇒ Object
Time that must elapse from when the watch started, as a Go duration string, such as
24h, or168hfor a week. -
#kind ⇒ Object
readonly
Kind of watch condition.
-
#operands ⇒ Object
Nested conditions combined by
ANYorALL. -
#projection ⇒ Object
Attributes whose distinct values
CARDINALITYcounts, in search syntax:@for attributes, such as@usr.idor@account.id, and no prefix for tags and reserved fields, such asorg_idorservice. -
#threshold ⇒ Object
Number of new occurrences, or of distinct values for
CARDINALITY, that meets the condition, counted from when the watch started.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
46 47 48 |
# File 'lib/datadog_api_client/v2/models/issue_watch_condition.rb', line 46 def additional_properties @additional_properties end |
#duration ⇒ Object
Time that must elapse from when the watch started, as a Go duration string, such as 24h, or 168h for a
week.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/issue_watch_condition.rb', line 28 def duration @duration end |
#kind ⇒ Object
Kind of watch condition.
31 32 33 |
# File 'lib/datadog_api_client/v2/models/issue_watch_condition.rb', line 31 def kind @kind end |
#operands ⇒ Object
Nested conditions combined by ANY or ALL.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/issue_watch_condition.rb', line 34 def operands @operands end |
#projection ⇒ Object
Attributes whose distinct values CARDINALITY counts, in search syntax: @ for attributes, such as
@usr.id or @account.id, and no prefix for tags and reserved fields, such as org_id or service.
Only use attributes that the issue's errors carry: a condition on an attribute they don't carry is never
met.
40 41 42 |
# File 'lib/datadog_api_client/v2/models/issue_watch_condition.rb', line 40 def projection @projection end |
#threshold ⇒ Object
Number of new occurrences, or of distinct values for CARDINALITY, that meets the condition, counted from
when the watch started.
44 45 46 |
# File 'lib/datadog_api_client/v2/models/issue_watch_condition.rb', line 44 def threshold @threshold end |