builtin:failure-detection.environment.rules)Configure rules which services certain failure detection parameters (<your-dynatrace-url>//ui/settings/builtin:failure-detection.environment.parameters) should apply to. For more information please refer to Failure detection settings.
These settings are not applied to Unified services.
To programmatically manage these settings, see API Reference.
| Schema ID | Schema groups | Scope |
|---|---|---|
builtin:failure-detection.environment.rules |
| environment |
| GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:failure-detection.environment.rules |
| GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:failure-detection.environment.rules |
| GET | Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:failure-detection.environment.rules |
To execute this request, you need an access token with Read settings (settings.read) scope. To learn how to obtain and use it, see Tokens and authentication.
| Property | Type | Description | Required |
|---|---|---|---|
Rule namename | text | The display name of this failure detection rule. | Required |
Rule descriptiondescription | text | A short description of this failure detection rule. | Optional |
Enabledenabled | boolean | Whether this rule is enabled. Disabled rules are not evaluated. | Required |
Failure detection parametersparameterId | setting | The ID of the failure detection parameter set to apply when this rule matches. The parameter set must already exist. | Required |
Conditionsconditions | Set<condition> | A list of conditions for this rule. All conditions must be fulfilled for the rule to match a service. | Required |
condition object| Property | Type | Description | Required |
|---|---|---|---|
Attributeattribute | enum | The attribute to be checked. The element has these enums
| Required |
Condition to check the attribute againstpredicate | predicate | The predicate that tests the value of the attribute. The actual set of fields depends on the type of the predicate. Find the list of actual objects in the description of the type field or see Failure detection API - JSON models. | Required |
predicate object| Property | Type | Description | Required |
|---|---|---|---|
Predicate typepredicateType | text | The type of predicate to apply. Available types depend on the condition attribute:
| Required |
NamestextValues | set | A list of text values to match against. The rule matches if the attribute value matches any of these values according to the predicate type. | Required |
Case sensitivecaseSensitive | boolean | If | Required |
Service typesserviceType | Set<serviceTypes> | A set of service types to match against. The rule matches if the service type is contained in this set. Only applicable for predicate type The element has these enums
| Required |
Management zonesmanagementZones | set | A set of management zone references. The rule matches if the service belongs to all specified management zones. Only applicable for predicate type | Required |
Tags (exact match)tags | set | A set of tags to match exactly. The rule matches if the entity has all specified tags (both key and value must match). Only applicable for predicate type | Required |
Tag keystagKeys | set | A set of tag keys to match. The rule matches if the entity has tags with all specified keys, regardless of tag value. Only applicable for predicate type | Required |