Skip to content

Commit 437f1de

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit f3dd285f of spec repo
1 parent 14454e8 commit 437f1de

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-06-08 18:39:08.164533",
8-
"spec_repo_commit": "0df91379"
7+
"regenerated": "2023-06-08 19:45:34.367347",
8+
"spec_repo_commit": "f3dd285f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-08 18:39:08.181065",
13-
"spec_repo_commit": "0df91379"
12+
"regenerated": "2023-06-08 19:45:34.380401",
13+
"spec_repo_commit": "f3dd285f"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7168,6 +7168,7 @@ components:
71687168
- ci-pipelines alert
71697169
- ci-tests alert
71707170
- error-tracking alert
7171+
- database-monitoring alert
71717172
example: query alert
71727173
type: string
71737174
x-enum-varnames:
@@ -7187,6 +7188,7 @@ components:
71877188
- CI_PIPELINES_ALERT
71887189
- CI_TESTS_ALERT
71897190
- ERROR_TRACKING_ALERT
7191+
- DATABASE_MONITORING_ALERT
71907192
MonitorUpdateRequest:
71917193
description: Object describing a monitor update request.
71927194
properties:
@@ -24698,6 +24700,8 @@ paths:
2469824700

2469924701
- error-tracking: `error-tracking alert`
2470024702

24703+
- database-monitoring: `database-monitoring alert`
24704+
2470124705

2470224706
**Note**: Synthetic monitors are created through the Synthetics API. See the
2470324707
[Synthetics API] (https://docs.datadoghq.com/api/latest/synthetics/) documentation
@@ -25023,7 +25027,32 @@ paths:
2502325027

2502425028
- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
2502525029

25026-
- `#` an integer or decimal number used to set the threshold.'
25030+
- `#` an integer or decimal number used to set the threshold.
25031+
25032+
25033+
**Database Monitoring Alert Query**
25034+
25035+
25036+
Example: `database-monitoring(query).rollup(rollup_method[, measure]).last(time_window)
25037+
operator #`
25038+
25039+
25040+
- `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
25041+
25042+
- `rollup_method` The stats roll-up method - supports `count`, `avg`, and
25043+
`cardinality`.
25044+
25045+
- `measure` For `avg` and cardinality `rollup_method` - specify the measure
25046+
or the facet name you want to use.
25047+
25048+
- `time_window` #m (between 1 and 2880), #h (between 1 and 48).
25049+
25050+
- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
25051+
25052+
- `#` an integer or decimal number used to set the threshold.
25053+
25054+
25055+
**NOTE** Database Monitoring monitors are in alpha on US1.'
2502725056
operationId: CreateMonitor
2502825057
requestBody:
2502925058
content:

src/datadog_api_client/v1/api/monitors_api.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ def create_monitor(
408408
* event-v2: ``event-v2 alert``
409409
* audit: ``audit alert``
410410
* error-tracking: ``error-tracking alert``
411+
* database-monitoring: ``database-monitoring alert``
411412
412413
**Note** : Synthetic monitors are created through the Synthetics API. See the [Synthetics API] (https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information.
413414
@@ -568,6 +569,19 @@ def create_monitor(
568569
* ``operator`` ``<`` , ``<=`` , ``>`` , ``>=`` , ``==`` , or ``!=``.
569570
* ``#`` an integer or decimal number used to set the threshold.
570571
572+
**Database Monitoring Alert Query**
573+
574+
Example: ``database-monitoring(query).rollup(rollup_method[, measure]).last(time_window) operator #``
575+
576+
* ``query`` The search query - following the `Log search syntax <https://docs.datadoghq.com/logs/search_syntax/>`_.
577+
* ``rollup_method`` The stats roll-up method - supports ``count`` , ``avg`` , and ``cardinality``.
578+
* ``measure`` For ``avg`` and cardinality ``rollup_method`` - specify the measure or the facet name you want to use.
579+
* ``time_window`` #m (between 1 and 2880), #h (between 1 and 48).
580+
* ``operator`` ``<`` , ``<=`` , ``>`` , ``>=`` , ``==`` , or ``!=``.
581+
* ``#`` an integer or decimal number used to set the threshold.
582+
583+
**NOTE** Database Monitoring monitors are in alpha on US1.
584+
571585
:param body: Create a monitor request body.
572586
:type body: Monitor
573587
: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)