Skip to content

Commit c2d9c1d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 84372280 of spec repo (#985)
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 e181ca2 commit c2d9c1d

15 files changed

+228
-10
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-24 10:04:34.328775",
8-
"spec_repo_commit": "068bc4e7"
7+
"regenerated": "2022-05-24 12:49:58.571847",
8+
"spec_repo_commit": "84372280"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-05-24 10:04:34.340976",
13-
"spec_repo_commit": "068bc4e7"
12+
"regenerated": "2022-05-24 12:49:58.584877",
13+
"spec_repo_commit": "84372280"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10453,6 +10453,7 @@ components:
1045310453
- packetsReceived
1045410454
- networkHop
1045510455
- receivedMessage
10456+
- grpcHealthcheckStatus
1045610457
- connection
1045710458
example: statusCode
1045810459
type: string
@@ -10472,6 +10473,7 @@ components:
1047210473
- PACKETS_RECEIVED
1047310474
- NETWORK_HOP
1047410475
- RECEIVED_MESSAGE
10476+
- GRPC_HEALTHCHECK_STATUS
1047510477
- CONNECTION
1047610478
SyntheticsBasicAuth:
1047710479
description: Object to handle basic authentication when performing the test.
@@ -11976,7 +11978,7 @@ components:
1197611978
SyntheticsTestDetailsSubType:
1197711979
description: 'The subtype of the Synthetic API test, `http`, `ssl`, `tcp`,
1197811980

11979-
`dns`, `icmp`, `udp`, `websocket` or `multi`.'
11981+
`dns`, `icmp`, `udp`, `websocket`, `grpc` or `multi`.'
1198011982
enum:
1198111983
- http
1198211984
- ssl
@@ -11986,6 +11988,7 @@ components:
1198611988
- icmp
1198711989
- udp
1198811990
- websocket
11991+
- grpc
1198911992
example: http
1199011993
type: string
1199111994
x-enum-varnames:
@@ -11997,6 +12000,7 @@ components:
1199712000
- ICMP
1199812001
- UDP
1199912002
- WEBSOCKET
12003+
- GRPC
1200012004
SyntheticsTestDetailsType:
1200112005
description: Type of the Synthetic test, either `api` or `browser`.
1200212006
enum:
@@ -12023,6 +12027,12 @@ components:
1202312027
type: string
1202412028
description: Headers to include when performing the test.
1202512029
type: object
12030+
SyntheticsTestMetadata:
12031+
additionalProperties:
12032+
description: A single Metadatum.
12033+
type: string
12034+
description: Metadata to include when performing the gRPC test.
12035+
type: object
1202612036
SyntheticsTestMonitorStatus:
1202712037
description: 'The status of your Synthetic monitor.
1202812038

@@ -12200,6 +12210,8 @@ components:
1220012210
message:
1220112211
description: Message to send for UDP or WebSocket tests.
1220212212
type: string
12213+
metadata:
12214+
$ref: '#/components/schemas/SyntheticsTestMetadata'
1220312215
method:
1220412216
$ref: '#/components/schemas/HTTPMethod'
1220512217
noSavingResponseBody:
@@ -12228,6 +12240,9 @@ components:
1222812240

1222912241
the same IP address and TCP port number.'
1223012242
type: string
12243+
service:
12244+
description: gRPC service on which you want to perform the healthcheck.
12245+
type: string
1223112246
shouldTrackHops:
1223212247
description: Turns on a traceroute probe to discover all gateways along
1223312248
the path to the host destination.

docs/datadog_api_client.v1.model.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4185,6 +4185,14 @@ synthetics\_test\_headers
41854185
:undoc-members:
41864186
:show-inheritance:
41874187

4188+
synthetics\_test\_metadata
4189+
--------------------------
4190+
4191+
.. automodule:: datadog_api_client.v1.model.synthetics_test_metadata
4192+
:members:
4193+
:undoc-members:
4194+
:show-inheritance:
4195+
41884196
synthetics\_test\_monitor\_status
41894197
---------------------------------
41904198

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
"""
2+
Create an API GRPC test returns "OK - Returns the created test details." response
3+
"""
4+
5+
from datadog_api_client import ApiClient, Configuration
6+
from datadog_api_client.v1.api.synthetics_api import SyntheticsApi
7+
from datadog_api_client.v1.model.http_method import HTTPMethod
8+
from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest
9+
from datadog_api_client.v1.model.synthetics_api_test_config import SyntheticsAPITestConfig
10+
from datadog_api_client.v1.model.synthetics_api_test_type import SyntheticsAPITestType
11+
from datadog_api_client.v1.model.synthetics_assertion_operator import SyntheticsAssertionOperator
12+
from datadog_api_client.v1.model.synthetics_assertion_target import SyntheticsAssertionTarget
13+
from datadog_api_client.v1.model.synthetics_assertion_type import SyntheticsAssertionType
14+
from datadog_api_client.v1.model.synthetics_test_details_sub_type import SyntheticsTestDetailsSubType
15+
from datadog_api_client.v1.model.synthetics_test_metadata import SyntheticsTestMetadata
16+
from datadog_api_client.v1.model.synthetics_test_options import SyntheticsTestOptions
17+
from datadog_api_client.v1.model.synthetics_test_options_monitor_options import SyntheticsTestOptionsMonitorOptions
18+
from datadog_api_client.v1.model.synthetics_test_request import SyntheticsTestRequest
19+
20+
body = SyntheticsAPITest(
21+
config=SyntheticsAPITestConfig(
22+
assertions=[
23+
SyntheticsAssertionTarget(
24+
operator=SyntheticsAssertionOperator("is"),
25+
target=1,
26+
type=SyntheticsAssertionType("grpcHealthcheckStatus"),
27+
),
28+
],
29+
request=SyntheticsTestRequest(
30+
host="localhost",
31+
port=50051,
32+
service="Hello",
33+
method=HTTPMethod("GET"),
34+
message="",
35+
metadata=SyntheticsTestMetadata(),
36+
),
37+
),
38+
locations=[
39+
"aws:us-east-2",
40+
],
41+
message="BDD test payload: synthetics_api_grpc_test_payload.json",
42+
name="Example-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response",
43+
options=SyntheticsTestOptions(
44+
min_failure_duration=0,
45+
min_location_failed=1,
46+
monitor_options=SyntheticsTestOptionsMonitorOptions(
47+
renotify_interval=0,
48+
),
49+
monitor_name="Example-Create_an_API_GRPC_test_returns_OK_Returns_the_created_test_details_response",
50+
tick_every=60,
51+
),
52+
subtype=SyntheticsTestDetailsSubType("grpc"),
53+
tags=[
54+
"testing:api",
55+
],
56+
type=SyntheticsAPITestType("api"),
57+
)
58+
59+
configuration = Configuration()
60+
with ApiClient(configuration) as api_client:
61+
api_instance = SyntheticsApi(api_client)
62+
response = api_instance.create_synthetics_api_test(body=body)
63+
64+
print(response)

src/datadog_api_client/v1/model/synthetics_api_test.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/synthetics_assertion_type.py

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/synthetics_test_details.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/synthetics_test_details_sub_type.py

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/synthetics_test_metadata.py

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/synthetics_test_request.py

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)