Settings API - OS services monitoring schema table
OS services monitoring (builtin:os-services-monitoring)
Set up alerts for OS services in undesirable states both for Windows and Linux systemd. Note: If monitoring is turned on for full availability metric, custom metric consumption takes place. Refer to documentation for more details.
Please provide feedback to us about this feature on Dynatrace Community.
In order to set up the alert for a certain group of OS services, you must first define a new policy. Specify which service's states you would like to be alerted about and then add detection rules in order to tell Dynatrace which exact OS services you are interested in. You may specify multiple detection rules.
Note that policies are specified for each of supported operating systems individually and that some of the parameters and properties vary between them.
Schema ID | Schema groups | Scope |
---|---|---|
builtin:os-services-monitoring |
| HOST - HostHOST_GROUP - Host Groupenvironment |
GET | Managed | https://{your-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:os-services-monitoring |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/schemas/builtin:os-services-monitoring | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/schemas/builtin:os-services-monitoring |
Authentication
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.
Parameters
Property | Label | Type | Description | Required |
---|---|---|---|---|
enabled | Enabled | boolean | - | required |
system | System | enum | - | required |
name | Rule name | text | - | required |
monitoring | Monitor | boolean | Toggle the switch in order to enable or disable availability metric monitoring for this policy. Availability metrics produce custom metrics. Refer to documentation for consumption examples. Each monitored service consumes one custom metric. | required |
alerting | Alert | boolean | Toggle the switch in order to enable or disable alerting for this policy | required |
notInstalledAlerting | Alert if service is not installed | boolean | By default, Dynatrace does not alert if the service is not installed. Toggle the switch to enable or disable this feature | required |
statusConditionWindows | Service status condition for alerting | text | This string has to match a required format. See OS services monitoring.
Available logic operations:
Use one of the following values as a parameter for this condition:
| required |
statusConditionLinux | Service status condition for alerting | text | This string has to match a required format. See OS services monitoring.
Available logic operations:
Use one of the following values as a parameter for this condition:
| required |
alertActivationDuration | Alerting delay | integer | The number of 10-second measurement cycles before alerting is triggered Set this value to control the speed of alerting. One is the lowest setting equal to one 10-second sample. If you set this value to 30, alerting is triggered after 5 minutes. | required |
detectionConditionsWindows | Detection rules | list | - | required |
detectionConditionsLinux | Detection rules | list | - | required |
metadata | Properties | set | Set of additional key-value properties to be attached to the triggered event. | required |
Request body objects
The MetadataItem
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
metadataKey | Key | text | Type 'dt.' for key hints. | required |
metadataValue | Value | text | Type '{' for placeholder hints. | required |
The HostMetadataCondition
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
metadataKey | Key | text | - | required |
metadataCondition | Condition | text | This string has to match a required format. See OS services monitoring.
Available logic operations:
| required |
The linuxDetectionCondition
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
ruleType | Rule scope | enum | - | optional |
property | Service property | enum | - | required |
condition | Condition | text | This string has to match a required format. See OS services monitoring.
Available logic operations:
| required |
startupCondition | Condition | text | This string has to match a required format. See OS services monitoring.
Available logic operations:
Use one of the following values as a parameter for this condition:
| required |
hostMetadataCondition | Custom metadata | HostMetadataCondition | - | required |
The windowsDetectionCondition
object
Property | Label | Type | Description | Required |
---|---|---|---|---|
ruleType | Rule scope | enum | - | optional |
property | Service property | enum | - | required |
condition | Condition | text | This string has to match a required format. See OS services monitoring.
Available logic operations:
| required |
startupCondition | Condition | text | This string has to match a required format. See OS services monitoring.
Available logic operations:
Use one of the following values as a parameter for this condition:
| required |
hostMetadataCondition | Custom metadata | HostMetadataCondition | - | required |