Skip to content

Commit c183f17

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b15bcac2 of spec repo
1 parent 267bfcd commit c183f17

32 files changed

+57
-272
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-12 14:39:34.231825",
8-
"spec_repo_commit": "52c2288b"
7+
"regenerated": "2023-06-12 16:59:17.077230",
8+
"spec_repo_commit": "b15bcac2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-12 14:39:34.243959",
13-
"spec_repo_commit": "52c2288b"
12+
"regenerated": "2023-06-12 16:59:17.093853",
13+
"spec_repo_commit": "b15bcac2"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 10 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -7168,7 +7168,6 @@ components:
71687168
- ci-pipelines alert
71697169
- ci-tests alert
71707170
- error-tracking alert
7171-
- database-monitoring alert
71727171
example: query alert
71737172
type: string
71747173
x-enum-varnames:
@@ -7188,7 +7187,6 @@ components:
71887187
- CI_PIPELINES_ALERT
71897188
- CI_TESTS_ALERT
71907189
- ERROR_TRACKING_ALERT
7191-
- DATABASE_MONITORING_ALERT
71927190
MonitorUpdateRequest:
71937191
description: Object describing a monitor update request.
71947192
properties:
@@ -7250,7 +7248,6 @@ components:
72507248
items:
72517249
description: A role UUID.
72527250
type: string
7253-
nullable: true
72547251
type: array
72557252
state:
72567253
$ref: '#/components/schemas/MonitorState'
@@ -13436,14 +13433,6 @@ components:
1343613433
description: URL attached to the metrics.
1343713434
type: string
1343813435
type: object
13439-
SyntheticsDefaultLocations:
13440-
description: List of Synthetics default locations settings.
13441-
example:
13442-
- aws:eu-west-3
13443-
items:
13444-
description: Name of the location.
13445-
type: string
13446-
type: array
1344713436
SyntheticsDeleteTestsPayload:
1344813437
description: 'A JSON list of the ID or IDs of the Synthetic tests that you want
1344913438

@@ -16769,7 +16758,6 @@ components:
1676916758
iot_device_count:
1677016759
description: The total number of IoT devices during a given hour.
1677116760
format: int64
16772-
nullable: true
1677316761
type: integer
1677416762
org_name:
1677516763
description: The organization name.
@@ -16897,7 +16885,6 @@ components:
1689716885
retention:
1689816886
description: The retention period in days or "custom" for all custom retention
1689916887
usage.
16900-
nullable: true
1690116888
type: string
1690216889
type: object
1690316890
UsageLogsByRetentionResponse:
@@ -17022,7 +17009,6 @@ components:
1702217009
host_count:
1702317010
description: Contains the number of active NPM hosts.
1702417011
format: int64
17025-
nullable: true
1702617012
type: integer
1702717013
hour:
1702817014
description: The hour for the usage.
@@ -19099,25 +19085,26 @@ components:
1909919085
description: Axis controls for the widget.
1910019086
properties:
1910119087
include_zero:
19102-
description: True includes zero.
19088+
description: Set to `true` to include zero.
1910319089
type: boolean
1910419090
label:
19105-
description: The label of the axis to display on the graph.
19091+
description: The label of the axis to display on the graph. Only usable
19092+
on Scatterplot Widgets.
1910619093
type: string
1910719094
max:
1910819095
default: auto
19109-
description: Specifies the maximum value to show on the y-axis. It takes
19110-
a number, or auto for default behavior.
19096+
description: Specifies maximum numeric value to show on the axis. Defaults
19097+
to `auto`.
1911119098
type: string
1911219099
min:
1911319100
default: auto
19114-
description: Specifies minimum value to show on the y-axis. It takes a number,
19115-
or auto for default behavior.
19101+
description: Specifies minimum numeric value to show on the axis. Defaults
19102+
to `auto`.
1911619103
type: string
1911719104
scale:
1911819105
default: linear
1911919106
description: Specifies the scale type. Possible values are `linear`, `log`,
19120-
`sqrt`, `pow##` (for example `pow2`, `pow0.5` etc.).
19107+
`sqrt`, and `pow##` (for example `pow2` or `pow0.5`).
1912119108
type: string
1912219109
type: object
1912319110
WidgetChangeType:
@@ -24705,8 +24692,6 @@ paths:
2470524692

2470624693
- error-tracking: `error-tracking alert`
2470724694

24708-
- database-monitoring: `database-monitoring alert`
24709-
2471024695

2471124696
**Note**: Synthetic monitors are created through the Synthetics API. See the
2471224697
[Synthetics API] (https://docs.datadoghq.com/api/latest/synthetics/) documentation
@@ -25032,32 +25017,7 @@ paths:
2503225017

2503325018
- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
2503425019

25035-
- `#` an integer or decimal number used to set the threshold.
25036-
25037-
25038-
**Database Monitoring Alert Query**
25039-
25040-
25041-
Example: `database-monitoring(query).rollup(rollup_method[, measure]).last(time_window)
25042-
operator #`
25043-
25044-
25045-
- `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
25046-
25047-
- `rollup_method` The stats roll-up method - supports `count`, `avg`, and
25048-
`cardinality`.
25049-
25050-
- `measure` For `avg` and cardinality `rollup_method` - specify the measure
25051-
or the facet name you want to use.
25052-
25053-
- `time_window` #m (between 1 and 2880), #h (between 1 and 48).
25054-
25055-
- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
25056-
25057-
- `#` an integer or decimal number used to set the threshold.
25058-
25059-
25060-
**NOTE** Database Monitoring monitors are in alpha on US1.'
25020+
- `#` an integer or decimal number used to set the threshold.'
2506125021
operationId: CreateMonitor
2506225022
requestBody:
2506325023
content:
@@ -25599,7 +25559,7 @@ paths:
2559925559
appKeyAuth: []
2560025560
- AuthZ:
2560125561
- monitors_read
25602-
summary: Get active downtimes for a monitor
25562+
summary: Get all downtimes for a monitor
2560325563
tags:
2560425564
- Downtimes
2560525565
x-codegen-request-body-name: body
@@ -27648,27 +27608,6 @@ paths:
2764827608
tags:
2764927609
- Synthetics
2765027610
x-codegen-request-body-name: body
27651-
/api/v1/synthetics/settings/default_locations:
27652-
get:
27653-
description: Get the default locations settings.
27654-
operationId: GetSyntheticsDefaultLocations
27655-
responses:
27656-
'200':
27657-
content:
27658-
application/json:
27659-
schema:
27660-
$ref: '#/components/schemas/SyntheticsDefaultLocations'
27661-
description: OK
27662-
'429':
27663-
$ref: '#/components/responses/TooManyRequestsResponse'
27664-
security:
27665-
- apiKeyAuth: []
27666-
appKeyAuth: []
27667-
- AuthZ:
27668-
- synthetics_default_settings_read
27669-
summary: Get the default locations
27670-
tags:
27671-
- Synthetics
2767227611
/api/v1/synthetics/tests:
2767327612
get:
2767427613
description: Get the list of all Synthetic tests.

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ components:
359359
format: int64
360360
type: integer
361361
PageSize:
362-
description: Size for a given page. The maximum allowed value is 100.
362+
description: Size for a given page. The maximum allowed value is 5000.
363363
in: query
364364
name: page[size]
365365
required: false
@@ -22221,8 +22221,6 @@ paths:
2222122221
schema:
2222222222
$ref: '#/components/schemas/APIErrorResponse'
2222322223
description: Authentication Error
22224-
'404':
22225-
$ref: '#/components/responses/NotFoundResponse'
2222622224
'429':
2222722225
$ref: '#/components/responses/TooManyRequestsResponse'
2222822226
summary: Delete Scanning Group
@@ -22267,8 +22265,6 @@ paths:
2226722265
schema:
2226822266
$ref: '#/components/schemas/APIErrorResponse'
2226922267
description: Authentication Error
22270-
'404':
22271-
$ref: '#/components/responses/NotFoundResponse'
2227222268
'429':
2227322269
$ref: '#/components/responses/TooManyRequestsResponse'
2227422270
summary: Update Scanning Group
@@ -22351,8 +22347,6 @@ paths:
2235122347
schema:
2235222348
$ref: '#/components/schemas/APIErrorResponse'
2235322349
description: Authentication Error
22354-
'404':
22355-
$ref: '#/components/responses/NotFoundResponse'
2235622350
'429':
2235722351
$ref: '#/components/responses/TooManyRequestsResponse'
2235822352
summary: Delete Scanning Rule
@@ -22396,8 +22390,6 @@ paths:
2239622390
schema:
2239722391
$ref: '#/components/schemas/APIErrorResponse'
2239822392
description: Authentication Error
22399-
'404':
22400-
$ref: '#/components/responses/NotFoundResponse'
2240122393
'429':
2240222394
$ref: '#/components/responses/TooManyRequestsResponse'
2240322395
summary: Update Scanning Rule

examples/v1/downtimes/ListMonitorDowntimes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Get active downtimes for a monitor returns "OK" response
2+
Get all downtimes for a monitor returns "OK" response
33
"""
44

55
from datadog_api_client import ApiClient, Configuration

examples/v1/synthetics/GetSyntheticsDefaultLocations.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/v1/synthetics/GetSyntheticsDefaultLocations_746853380.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/datadog_api_client/v1/api/downtimes_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def list_monitor_downtimes(
299299
self,
300300
monitor_id: int,
301301
) -> List[Downtime]:
302-
"""Get active downtimes for a monitor.
302+
"""Get all downtimes for a monitor.
303303
304304
Get all active downtimes for the specified monitor.
305305

src/datadog_api_client/v1/api/monitors_api.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ 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``
412411
413412
**Note** : Synthetic monitors are created through the Synthetics API. See the [Synthetics API] (https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information.
414413
@@ -569,19 +568,6 @@ def create_monitor(
569568
* ``operator`` ``<`` , ``<=`` , ``>`` , ``>=`` , ``==`` , or ``!=``.
570569
* ``#`` an integer or decimal number used to set the threshold.
571570
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-
585571
:param body: Create a monitor request body.
586572
:type body: Monitor
587573
:rtype: Monitor

src/datadog_api_client/v1/api/synthetics_api.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -508,24 +508,6 @@ def __init__(self, api_client=None):
508508
api_client=api_client,
509509
)
510510

511-
self._get_synthetics_default_locations_endpoint = _Endpoint(
512-
settings={
513-
"response_type": ([str],),
514-
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
515-
"endpoint_path": "/api/v1/synthetics/settings/default_locations",
516-
"operation_id": "get_synthetics_default_locations",
517-
"http_method": "GET",
518-
"version": "v1",
519-
"servers": None,
520-
},
521-
params_map={},
522-
headers_map={
523-
"accept": ["application/json"],
524-
"content_type": [],
525-
},
526-
api_client=api_client,
527-
)
528-
529511
self._get_test_endpoint = _Endpoint(
530512
settings={
531513
"response_type": (SyntheticsTestDetails,),
@@ -1112,18 +1094,6 @@ def get_synthetics_ci_batch(
11121094

11131095
return self._get_synthetics_ci_batch_endpoint.call_with_http_info(**kwargs)
11141096

1115-
def get_synthetics_default_locations(
1116-
self,
1117-
) -> List[str]:
1118-
"""Get the default locations.
1119-
1120-
Get the default locations settings.
1121-
1122-
:rtype: [str]
1123-
"""
1124-
kwargs: Dict[str, Any] = {}
1125-
return self._get_synthetics_default_locations_endpoint.call_with_http_info(**kwargs)
1126-
11271097
def get_test(
11281098
self,
11291099
public_id: str,

src/datadog_api_client/v1/model/monitor_type.py

Lines changed: 1 addition & 4 deletions
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", "database-monitoring 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"].
2020
:type value: str
2121
"""
2222

@@ -37,7 +37,6 @@ class MonitorType(ModelSimple):
3737
"ci-pipelines alert",
3838
"ci-tests alert",
3939
"error-tracking alert",
40-
"database-monitoring alert",
4140
}
4241
COMPOSITE: ClassVar["MonitorType"]
4342
EVENT_ALERT: ClassVar["MonitorType"]
@@ -55,7 +54,6 @@ class MonitorType(ModelSimple):
5554
CI_PIPELINES_ALERT: ClassVar["MonitorType"]
5655
CI_TESTS_ALERT: ClassVar["MonitorType"]
5756
ERROR_TRACKING_ALERT: ClassVar["MonitorType"]
58-
DATABASE_MONITORING_ALERT: ClassVar["MonitorType"]
5957

6058
@cached_property
6159
def openapi_types(_):
@@ -80,4 +78,3 @@ def openapi_types(_):
8078
MonitorType.CI_PIPELINES_ALERT = MonitorType("ci-pipelines alert")
8179
MonitorType.CI_TESTS_ALERT = MonitorType("ci-tests alert")
8280
MonitorType.ERROR_TRACKING_ALERT = MonitorType("error-tracking alert")
83-
MonitorType.DATABASE_MONITORING_ALERT = MonitorType("database-monitoring alert")

0 commit comments

Comments
 (0)