Skip to content

Commit abf0285

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add enum value descriptions for service check monitors (#1277)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent dfed382 commit abf0285

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2022-12-22 14:35:07.000744",
8-
"spec_repo_commit": "f398adcf"
7+
"regenerated": "2022-12-23 14:08:41.709526",
8+
"spec_repo_commit": "c3b2f174"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-12-22 14:35:07.011589",
13-
"spec_repo_commit": "f398adcf"
12+
"regenerated": "2022-12-23 14:08:41.721393",
13+
"spec_repo_commit": "c3b2f174"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10465,7 +10465,8 @@ components:
1046510465
- host_name
1046610466
type: object
1046710467
ServiceCheckStatus:
10468-
description: The status of a service check.
10468+
description: The status of a service check. Set to `0` for OK, `1` for warning,
10469+
`2` for critical, and `3` for unknown.
1046910470
enum:
1047010471
- 0
1047110472
- 1

src/datadog_api_client/v1/model/service_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(
6262
:param message: Message containing check status.
6363
:type message: str, optional
6464
65-
:param status: The status of a service check.
65+
:param status: The status of a service check. Set to ``0`` for OK, ``1`` for warning, ``2`` for critical, and ``3`` for unknown.
6666
:type status: ServiceCheckStatus
6767
6868
:param tags: Tags related to a check.

src/datadog_api_client/v1/model/service_check_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class ServiceCheckStatus(ModelSimple):
1616
"""
17-
The status of a service check.
17+
The status of a service check. Set to `0` for OK, `1` for warning, `2` for critical, and `3` for unknown.
1818
1919
:param value: Must be one of [0, 1, 2, 3].
2020
:type value: int

0 commit comments

Comments
 (0)