Skip to content

Commit aaa6b12

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 6f5f750c of spec repo (#911)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 989e4f3 commit aaa6b12

22 files changed

+1059
-32
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.2",
7-
"regenerated": "2022-05-17 12:13:30.981727",
8-
"spec_repo_commit": "8e5ea991"
7+
"regenerated": "2022-05-17 14:59:00.575916",
8+
"spec_repo_commit": "6f5f750c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-05-17 12:13:30.997064",
13-
"spec_repo_commit": "8e5ea991"
12+
"regenerated": "2022-05-17 14:59:00.587584",
13+
"spec_repo_commit": "6f5f750c"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9354,8 +9354,9 @@ components:
93549354
type: string
93559355
type: array
93569356
type:
9357-
default: gauge
9358-
description: The type of the metric either `count`, `gauge`, or `rate`.
9357+
default: ''
9358+
description: The type of the metric. Valid types are "",`count`, `gauge`,
9359+
and `rate`.
93599360
example: rate
93609361
type: string
93619362
required:
@@ -23137,7 +23138,7 @@ paths:
2313723138
3.2 megabytes (3200000 bytes). Compressed payloads must have a decompressed
2313823139
size of less than 62 megabytes (62914560 bytes).\n\nIf you\u2019re submitting
2313923140
metrics directly to the Datadog API without using DogStatsD, expect:\n\n-
23140-
64 bits for the timestamp\n- 32 bits for the value\n- 40 bytes for the metric
23141+
64 bits for the timestamp\n- 64 bits for the value\n- 40 bytes for the metric
2314123142
names\n- 50 bytes for the timeseries\n- The full payload is approximately
2314223143
100 bytes. However, with the DogStatsD API,\ncompression is applied, which
2314323144
reduces the payload size."

.generator/schemas/v2/openapi.yaml

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2599,6 +2599,14 @@ components:
25992599
required:
26002600
- data
26012601
type: object
2602+
IntakePayloadAccepted:
2603+
description: The payload accepted for intake.
2604+
properties:
2605+
status:
2606+
description: The status of the intake payload.
2607+
example: ok
2608+
type: string
2609+
type: object
26022610
ListApplicationKeysResponse:
26032611
description: Response for a list of application keys.
26042612
properties:
@@ -3877,6 +3885,14 @@ components:
38773885
pattern: ^[A-Za-z][A-Za-z0-9\.\-\_:\/]*$
38783886
type: string
38793887
type: array
3888+
MetricContentEncoding:
3889+
default: deflate
3890+
description: HTTP header used to compress the media-type.
3891+
enum:
3892+
- deflate
3893+
type: string
3894+
x-enum-varnames:
3895+
- DEFLATE
38803896
MetricCustomAggregation:
38813897
description: A time and space aggregation combination for use in query.
38823898
example:
@@ -4081,10 +4097,151 @@ components:
40814097
type: string
40824098
x-enum-varnames:
40834099
- METRIC_VOLUMES
4100+
MetricIntakeType:
4101+
description: The type of metric.
4102+
enum:
4103+
- 0
4104+
- 1
4105+
- 2
4106+
- 3
4107+
- 15
4108+
format: int32
4109+
type: integer
4110+
x-enum-varnames:
4111+
- UNSPECIFIED
4112+
- COUNT
4113+
- RATE
4114+
- GAUGE
4115+
- UNSPECIFIED_LEGACY
4116+
MetricMetadata:
4117+
description: Metadata for the metric.
4118+
properties:
4119+
origin:
4120+
$ref: '#/components/schemas/MetricOrigin'
4121+
type: object
40844122
MetricName:
40854123
description: The metric name for this resource.
40864124
example: test.metric.latency
40874125
type: string
4126+
MetricOrigin:
4127+
description: Metric origin information.
4128+
properties:
4129+
metric_type:
4130+
default: 0
4131+
description: The origin metric type code
4132+
format: int32
4133+
maximum: 1000
4134+
type: integer
4135+
product:
4136+
default: 0
4137+
description: The origin product code
4138+
format: int32
4139+
maximum: 1000
4140+
type: integer
4141+
service:
4142+
default: 0
4143+
description: The origin service code
4144+
format: int32
4145+
maximum: 1000
4146+
type: integer
4147+
type: object
4148+
MetricPayload:
4149+
description: The metrics' payload.
4150+
properties:
4151+
series:
4152+
description: A list of time series to submit to Datadog.
4153+
example:
4154+
- metric: system.load.1
4155+
points:
4156+
- timestamp: 1475317847
4157+
value: 0.7
4158+
items:
4159+
$ref: '#/components/schemas/MetricSeries'
4160+
type: array
4161+
required:
4162+
- series
4163+
type: object
4164+
MetricPoint:
4165+
description: A point object is of the form `{POSIX_timestamp, numeric_value}`.
4166+
example:
4167+
timestamp: 1575317847
4168+
value: 0.5
4169+
properties:
4170+
timestamp:
4171+
description: 'The timestamp should be in seconds and current.
4172+
4173+
Current is defined as not more than 10 minutes in the future or more than
4174+
1 hour in the past.'
4175+
format: int64
4176+
type: integer
4177+
value:
4178+
description: The numeric value format should be a 64bit float gauge-type
4179+
value.
4180+
format: double
4181+
type: number
4182+
type: object
4183+
MetricResource:
4184+
description: Metric resource.
4185+
properties:
4186+
name:
4187+
description: The name of the metric.
4188+
type: string
4189+
type:
4190+
description: The type of metric.
4191+
type: string
4192+
type: object
4193+
MetricSeries:
4194+
description: 'A metric to submit to Datadog.
4195+
4196+
See [Datadog metrics](https://docs.datadoghq.com/developers/metrics/#custom-metrics-properties).'
4197+
properties:
4198+
interval:
4199+
description: If the type of the metric is rate or count, define the corresponding
4200+
interval.
4201+
example: 20
4202+
format: int64
4203+
type: integer
4204+
metadata:
4205+
$ref: '#/components/schemas/MetricMetadata'
4206+
metric:
4207+
description: The name of the timeseries.
4208+
example: system.load.1
4209+
type: string
4210+
points:
4211+
description: Points relating to a metric. All points must be objects with
4212+
timestamp and a scalar value (cannot be a string). Timestamps should be
4213+
in POSIX time in seconds, and cannot be more than ten minutes in the future
4214+
or more than one hour in the past.
4215+
items:
4216+
$ref: '#/components/schemas/MetricPoint'
4217+
type: array
4218+
resources:
4219+
description: A list of resources to associate with this metric.
4220+
items:
4221+
$ref: '#/components/schemas/MetricResource'
4222+
type: array
4223+
source_type_name:
4224+
description: The source type name.
4225+
example: datadog
4226+
type: string
4227+
tags:
4228+
description: A list of tags associated with the metric.
4229+
example:
4230+
- environment:test
4231+
items:
4232+
description: Individual tags.
4233+
type: string
4234+
type: array
4235+
type:
4236+
$ref: '#/components/schemas/MetricIntakeType'
4237+
unit:
4238+
description: The unit of point value.
4239+
example: second
4240+
type: string
4241+
required:
4242+
- metric
4243+
- points
4244+
type: object
40884245
MetricTagConfiguration:
40894246
description: Object for a single metric tag configuration.
40904247
example:
@@ -11595,6 +11752,80 @@ paths:
1159511752
x-unstable: '**Note**: This endpoint is in public beta.
1159611753
1159711754
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
11755+
/api/v2/series:
11756+
post:
11757+
description: "The metrics end-point allows you to post time-series data that
11758+
can be graphed on Datadog\u2019s dashboards.\nThe maximum payload size is
11759+
500 kilobytes (512000 bytes). Compressed payloads must have a decompressed
11760+
size of less than 5 megabytes (5242880 bytes).\n\nIf you\u2019re submitting
11761+
metrics directly to the Datadog API without using DogStatsD, expect:\n\n-
11762+
64 bits for the timestamp\n- 64 bits for the value\n- 20 bytes for the metric
11763+
names\n- 50 bytes for the timeseries\n- The full payload is approximately
11764+
100 bytes."
11765+
operationId: SubmitMetrics
11766+
parameters:
11767+
- description: HTTP header used to compress the media-type.
11768+
in: header
11769+
name: Content-Encoding
11770+
required: false
11771+
schema:
11772+
$ref: '#/components/schemas/MetricContentEncoding'
11773+
requestBody:
11774+
content:
11775+
application/json:
11776+
examples:
11777+
dynamic-points:
11778+
description: "Post time-series data that can be graphed on Datadog\u2019s
11779+
dashboards."
11780+
externalValue: examples/metrics/dynamic-points.json.sh
11781+
summary: Dynamic Points
11782+
x-variables:
11783+
NOW: $(date +%s)
11784+
schema:
11785+
$ref: '#/components/schemas/MetricPayload'
11786+
required: true
11787+
responses:
11788+
'202':
11789+
content:
11790+
application/json:
11791+
schema:
11792+
$ref: '#/components/schemas/IntakePayloadAccepted'
11793+
description: Payload accepted
11794+
'400':
11795+
content:
11796+
application/json:
11797+
schema:
11798+
$ref: '#/components/schemas/APIErrorResponse'
11799+
description: Bad Request
11800+
'403':
11801+
content:
11802+
application/json:
11803+
schema:
11804+
$ref: '#/components/schemas/APIErrorResponse'
11805+
description: Authentication error
11806+
'408':
11807+
content:
11808+
application/json:
11809+
schema:
11810+
$ref: '#/components/schemas/APIErrorResponse'
11811+
description: Request timeout
11812+
'413':
11813+
content:
11814+
application/json:
11815+
schema:
11816+
$ref: '#/components/schemas/APIErrorResponse'
11817+
description: Payload too large
11818+
'429':
11819+
$ref: '#/components/responses/TooManyRequestsResponse'
11820+
security:
11821+
- apiKeyAuth: []
11822+
summary: Submit metrics
11823+
tags:
11824+
- Metrics
11825+
x-codegen-request-body-name: body
11826+
x-menu-order: 1
11827+
x-undo:
11828+
type: safe
1159811829
/api/v2/service_accounts:
1159911830
post:
1160011831
description: Create a service account for your organization.

docs/datadog_api_client.v2.model.rst

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,6 +1209,14 @@ incidents\_response
12091209
:undoc-members:
12101210
:show-inheritance:
12111211

1212+
intake\_payload\_accepted
1213+
-------------------------
1214+
1215+
.. automodule:: datadog_api_client.v2.model.intake_payload_accepted
1216+
:members:
1217+
:undoc-members:
1218+
:show-inheritance:
1219+
12121220
list\_application\_keys\_response
12131221
---------------------------------
12141222

@@ -1937,6 +1945,14 @@ metric\_bulk\_tag\_config\_tag\_name\_list
19371945
:undoc-members:
19381946
:show-inheritance:
19391947

1948+
metric\_content\_encoding
1949+
-------------------------
1950+
1951+
.. automodule:: datadog_api_client.v2.model.metric_content_encoding
1952+
:members:
1953+
:undoc-members:
1954+
:show-inheritance:
1955+
19401956
metric\_custom\_aggregation
19411957
---------------------------
19421958

@@ -2057,6 +2073,62 @@ metric\_ingested\_indexed\_volume\_type
20572073
:undoc-members:
20582074
:show-inheritance:
20592075

2076+
metric\_intake\_type
2077+
--------------------
2078+
2079+
.. automodule:: datadog_api_client.v2.model.metric_intake_type
2080+
:members:
2081+
:undoc-members:
2082+
:show-inheritance:
2083+
2084+
metric\_metadata
2085+
----------------
2086+
2087+
.. automodule:: datadog_api_client.v2.model.metric_metadata
2088+
:members:
2089+
:undoc-members:
2090+
:show-inheritance:
2091+
2092+
metric\_origin
2093+
--------------
2094+
2095+
.. automodule:: datadog_api_client.v2.model.metric_origin
2096+
:members:
2097+
:undoc-members:
2098+
:show-inheritance:
2099+
2100+
metric\_payload
2101+
---------------
2102+
2103+
.. automodule:: datadog_api_client.v2.model.metric_payload
2104+
:members:
2105+
:undoc-members:
2106+
:show-inheritance:
2107+
2108+
metric\_point
2109+
-------------
2110+
2111+
.. automodule:: datadog_api_client.v2.model.metric_point
2112+
:members:
2113+
:undoc-members:
2114+
:show-inheritance:
2115+
2116+
metric\_resource
2117+
----------------
2118+
2119+
.. automodule:: datadog_api_client.v2.model.metric_resource
2120+
:members:
2121+
:undoc-members:
2122+
:show-inheritance:
2123+
2124+
metric\_series
2125+
--------------
2126+
2127+
.. automodule:: datadog_api_client.v2.model.metric_series
2128+
:members:
2129+
:undoc-members:
2130+
:show-inheritance:
2131+
20602132
metric\_tag\_configuration
20612133
--------------------------
20622134

0 commit comments

Comments
 (0)