datadog service-check
Submit a list of Service Checks
Description
Submit a list of Service Checks
Synopsis
datadog service-check
[--site <site>]
--check <check>
--host <host>
[--message <message>]
--status <status>
--tags <tags>
--timestamp <timestamp>
Arguments
site
- (string)
Site where this command will be executed
Example: --site "site-1"
Default: input.site
Attributes: optional
check
- (string)
The check
Example: --check "check-1"
Default: _None_
Attributes: required
host
- (string)
The host name correlated with the check
Example: --host "host-1"
Default: _None_
Attributes: required
message
- (string)
Message containing check status
Example: --message "message-1"
Default: _None_
Attributes: optional
status
- (string)
The status of a service check
Example: --status "status-1"
Default: _None_
Attributes: required
Validation:
allowed values: ok, warning, critical, unknown
tags
- (string)
Tags related to a check
Example: --tags "tags-1"
Default: _None_
Attributes: required, multiple allowed
timestamp
- (time)
Time of check
Example: --timestamp "2019-10-12T07:20:50.52Z"
Default: now
Attributes: required
Examples
Input:
!datadog service-check --timestamp "2 day ago" --tags "testag" --tags "tag2test" --status "warning" --check "app.ok" --host "BHCP-131"
Access Control
To use this command, you need access to the following:
Field | Value |
---|---|
Action | "create" |
Service Type | "datadog" |
Service Instance | |
Namespace | |
Object Type | "service-check" |
Object ID |
Please see Access Control for details.