Skip to content

Commit 19b5807

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 46bb7712 of spec repo
1 parent d710444 commit 19b5807

File tree

4 files changed

+52
-6
lines changed

4 files changed

+52
-6
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": "2023-05-11 14:31:13.499049",
8-
"spec_repo_commit": "b6d2ec34"
7+
"regenerated": "2023-05-11 19:21:04.143613",
8+
"spec_repo_commit": "46bb7712"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-05-11 14:31:13.516351",
13-
"spec_repo_commit": "b6d2ec34"
12+
"regenerated": "2023-05-11 19:21:04.155495",
13+
"spec_repo_commit": "46bb7712"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7044,6 +7044,7 @@ components:
70447044
- ci-pipelines alert
70457045
- ci-tests alert
70467046
- error-tracking alert
7047+
- database-monitoring alert
70477048
example: query alert
70487049
type: string
70497050
x-enum-varnames:
@@ -7063,6 +7064,7 @@ components:
70637064
- CI_PIPELINES_ALERT
70647065
- CI_TESTS_ALERT
70657066
- ERROR_TRACKING_ALERT
7067+
- DATABASE_MONITORING_ALERT
70667068
MonitorUpdateRequest:
70677069
description: Object describing a monitor update request.
70687070
properties:
@@ -24520,6 +24522,8 @@ paths:
2452024522

2452124523
- error-tracking: `error-tracking alert`
2452224524

24525+
- database-monitoring: `database-monitoring alert`
24526+
2452324527

2452424528
**Note**: Synthetic monitors are created through the Synthetics API. See the
2452524529
[Synthetics API] (https://docs.datadoghq.com/api/latest/synthetics/) documentation
@@ -24845,7 +24849,32 @@ paths:
2484524849

2484624850
- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
2484724851

24848-
- `#` an integer or decimal number used to set the threshold.'
24852+
- `#` an integer or decimal number used to set the threshold.
24853+
24854+
24855+
**Database Monitoring Alert Query**
24856+
24857+
24858+
Example: `database-monitoring(query).rollup(rollup_method[, measure]).last(time_window)
24859+
operator #`
24860+
24861+
24862+
- `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
24863+
24864+
- `rollup_method` The stats roll-up method - supports `count`, `avg`, and
24865+
`cardinality`.
24866+
24867+
- `measure` For `avg` and cardinality `rollup_method` - specify the measure
24868+
or the facet name you want to use.
24869+
24870+
- `time_window` #m (between 1 and 2880), #h (between 1 and 48).
24871+
24872+
- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
24873+
24874+
- `#` an integer or decimal number used to set the threshold.
24875+
24876+
24877+
**NOTE** Database Monitoring monitors are in alpha on US1.'
2484924878
operationId: CreateMonitor
2485024879
requestBody:
2485124880
content:

src/datadog_api_client/v1/api/monitors_api.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ def create_monitor(
403403
* event-v2: ``event-v2 alert``
404404
* audit: ``audit alert``
405405
* error-tracking: ``error-tracking alert``
406+
* database-monitoring: ``database-monitoring alert``
406407
407408
**Note** : Synthetic monitors are created through the Synthetics API. See the [Synthetics API] (https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information.
408409
@@ -563,6 +564,19 @@ def create_monitor(
563564
* ``operator`` ``<`` , ``<=`` , ``>`` , ``>=`` , ``==`` , or ``!=``.
564565
* ``#`` an integer or decimal number used to set the threshold.
565566
567+
**Database Monitoring Alert Query**
568+
569+
Example: ``database-monitoring(query).rollup(rollup_method[, measure]).last(time_window) operator #``
570+
571+
* ``query`` The search query - following the `Log search syntax <https://docs.datadoghq.com/logs/search_syntax/>`_.
572+
* ``rollup_method`` The stats roll-up method - supports ``count`` , ``avg`` , and ``cardinality``.
573+
* ``measure`` For ``avg`` and cardinality ``rollup_method`` - specify the measure or the facet name you want to use.
574+
* ``time_window`` #m (between 1 and 2880), #h (between 1 and 48).
575+
* ``operator`` ``<`` , ``<=`` , ``>`` , ``>=`` , ``==`` , or ``!=``.
576+
* ``#`` an integer or decimal number used to set the threshold.
577+
578+
**NOTE** Database Monitoring monitors are in alpha on US1.
579+
566580
:param body: Create a monitor request body.
567581
:type body: Monitor
568582
:rtype: Monitor

src/datadog_api_client/v1/model/monitor_type.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MonitorType(ModelSimple):
1616
"""
1717
The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs.
1818
19-
:param value: Must be one of ["composite", "event alert", "log alert", "metric alert", "process alert", "query alert", "rum alert", "service check", "synthetics alert", "trace-analytics alert", "slo alert", "event-v2 alert", "audit alert", "ci-pipelines alert", "ci-tests alert", "error-tracking alert"].
19+
:param value: Must be one of ["composite", "event alert", "log alert", "metric alert", "process alert", "query alert", "rum alert", "service check", "synthetics alert", "trace-analytics alert", "slo alert", "event-v2 alert", "audit alert", "ci-pipelines alert", "ci-tests alert", "error-tracking alert", "database-monitoring alert"].
2020
:type value: str
2121
"""
2222

@@ -37,6 +37,7 @@ class MonitorType(ModelSimple):
3737
"ci-pipelines alert",
3838
"ci-tests alert",
3939
"error-tracking alert",
40+
"database-monitoring alert",
4041
}
4142
COMPOSITE: ClassVar["MonitorType"]
4243
EVENT_ALERT: ClassVar["MonitorType"]
@@ -54,6 +55,7 @@ class MonitorType(ModelSimple):
5455
CI_PIPELINES_ALERT: ClassVar["MonitorType"]
5556
CI_TESTS_ALERT: ClassVar["MonitorType"]
5657
ERROR_TRACKING_ALERT: ClassVar["MonitorType"]
58+
DATABASE_MONITORING_ALERT: ClassVar["MonitorType"]
5759

5860
@cached_property
5961
def openapi_types(_):
@@ -78,3 +80,4 @@ def openapi_types(_):
7880
MonitorType.CI_PIPELINES_ALERT = MonitorType("ci-pipelines alert")
7981
MonitorType.CI_TESTS_ALERT = MonitorType("ci-tests alert")
8082
MonitorType.ERROR_TRACKING_ALERT = MonitorType("error-tracking alert")
83+
MonitorType.DATABASE_MONITORING_ALERT = MonitorType("database-monitoring alert")

0 commit comments

Comments
 (0)