Skip to content

Commit 40c3267

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit d6d9bab3 of spec repo
1 parent e7af3ec commit 40c3267

File tree

19 files changed

+757
-4
lines changed

19 files changed

+757
-4
lines changed

Diff for: .apigentools-info

+4-4
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-02-16 09:01:07.515779",
8-
"spec_repo_commit": "4982e03d"
7+
"regenerated": "2023-02-16 13:57:18.047879",
8+
"spec_repo_commit": "d6d9bab3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-16 09:01:07.527198",
13-
"spec_repo_commit": "4982e03d"
12+
"regenerated": "2023-02-16 13:57:18.067698",
13+
"spec_repo_commit": "d6d9bab3"
1414
}
1515
}
1616
}

Diff for: .generator/schemas/v2/openapi.yaml

+66
Original file line numberDiff line numberDiff line change
@@ -7542,6 +7542,26 @@ components:
75427542
- id
75437543
- type
75447544
type: object
7545+
OnDemandConcurrencyCap:
7546+
description: On-demand concurrency cap.
7547+
properties:
7548+
attributes:
7549+
$ref: '#/components/schemas/OnDemandConcurrencyCapAttributes'
7550+
type: object
7551+
OnDemandConcurrencyCapAttributes:
7552+
description: On-demand concurrency cap attributes.
7553+
properties:
7554+
on_demand_concurrency_cap:
7555+
description: Value of the on-demand concurrency cap.
7556+
format: double
7557+
type: number
7558+
type: object
7559+
OnDemandConcurrencyCapResponse:
7560+
description: On-demand concurrency cap response.
7561+
properties:
7562+
data:
7563+
$ref: '#/components/schemas/OnDemandConcurrencyCap'
7564+
type: object
75457565
OpsgenieServiceCreateAttributes:
75467566
description: The Opsgenie service attributes for a create request.
75477567
properties:
@@ -19685,6 +19705,45 @@ paths:
1968519705
x-unstable: '**Note**: This endpoint is in public beta.
1968619706

1968719707
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
19708+
/api/v2/synthetics/settings/on_demand_concurrency_cap:
19709+
get:
19710+
description: Get the on-demand concurrency cap.
19711+
operationId: GetOnDemandConcurrencyCap
19712+
responses:
19713+
'200':
19714+
content:
19715+
application/json:
19716+
schema:
19717+
$ref: '#/components/schemas/OnDemandConcurrencyCapResponse'
19718+
description: OK
19719+
'429':
19720+
$ref: '#/components/responses/TooManyRequestsResponse'
19721+
summary: Get the on-demand concurrency cap
19722+
tags:
19723+
- Synthetics
19724+
post:
19725+
description: Save new value for on-demand concurrency cap.
19726+
operationId: SetOnDemandConcurrencyCap
19727+
requestBody:
19728+
content:
19729+
application/json:
19730+
schema:
19731+
$ref: '#/components/schemas/OnDemandConcurrencyCapAttributes'
19732+
description: .
19733+
required: true
19734+
responses:
19735+
'200':
19736+
content:
19737+
application/json:
19738+
schema:
19739+
$ref: '#/components/schemas/OnDemandConcurrencyCapResponse'
19740+
description: OK
19741+
'429':
19742+
$ref: '#/components/responses/TooManyRequestsResponse'
19743+
summary: Save new value for on-demand concurrency cap
19744+
tags:
19745+
- Synthetics
19746+
x-codegen-request-body-name: body
1968819747
/api/v2/teams:
1968919748
get:
1969019749
description: Get all incident teams for the requesting user's organization.
@@ -20963,6 +21022,13 @@ tags:
2096321022
externalDocs:
2096421023
url: https://docs.datadoghq.com/tracing/service_catalog/
2096521024
name: Service Definition
21025+
- description: "Datadog Synthetics uses simulated user requests and browser rendering
21026+
to help you ensure uptime,\nidentify regional issues, and track your application
21027+
performance. Datadog Synthetics tests come in\ntwo different flavors, [API tests](https://docs.datadoghq.com/synthetics/api_tests/)\nand
21028+
[browser tests](https://docs.datadoghq.com/synthetics/browser_tests). You can
21029+
use Datadog\u2019s API to\nmanage both test types programmatically.\n\nFor more
21030+
information about Synthetics, see the [Synthetics overview](https://docs.datadoghq.com/synthetics/)."
21031+
name: Synthetics
2096621032
- description: 'The usage metering API allows you to get hourly, daily, and
2096721033

2096821034
monthly usage across multiple facets of Datadog.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-02-14T13:37:08.530Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"log": {
3+
"_recordingName": "Synthetics/Get on demand concurrency cap",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "fe0201f5ecbd327019d56ce352f07d32",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 551,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [],
28+
"url": "https://api.datadoghq.com/api/v2/synthetics/settings/on_demand_concurrency_cap"
29+
},
30+
"response": {
31+
"bodySize": 92,
32+
"content": {
33+
"mimeType": "application/json",
34+
"size": 92,
35+
"text": "{\"data\":{\"type\":\"on_demand_concurrency_cap\",\"attributes\":{\"on_demand_concurrency_cap\":20}}}\n"
36+
},
37+
"cookies": [],
38+
"headers": [
39+
{
40+
"name": "content-type",
41+
"value": "application/json"
42+
}
43+
],
44+
"headersSize": 652,
45+
"httpVersion": "HTTP/1.1",
46+
"redirectURL": "",
47+
"status": 200,
48+
"statusText": "OK"
49+
},
50+
"startedDateTime": "2023-02-14T13:37:08.537Z",
51+
"time": 459
52+
}
53+
],
54+
"pages": [],
55+
"version": "1.2"
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-02-14T13:37:09.009Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"log": {
3+
"_recordingName": "Synthetics/Save on demand concurrency cap",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "9017f0304e0fda9215497c60820516ec",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 32,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "content-type",
26+
"value": "application/json"
27+
}
28+
],
29+
"headersSize": 604,
30+
"httpVersion": "HTTP/1.1",
31+
"method": "POST",
32+
"postData": {
33+
"mimeType": "application/json",
34+
"params": [],
35+
"text": "{\"on_demand_concurrency_cap\":20}"
36+
},
37+
"queryString": [],
38+
"url": "https://api.datadoghq.com/api/v2/synthetics/settings/on_demand_concurrency_cap"
39+
},
40+
"response": {
41+
"bodySize": 92,
42+
"content": {
43+
"mimeType": "application/json",
44+
"size": 92,
45+
"text": "{\"data\":{\"type\":\"on_demand_concurrency_cap\",\"attributes\":{\"on_demand_concurrency_cap\":20}}}\n"
46+
},
47+
"cookies": [],
48+
"headers": [
49+
{
50+
"name": "content-type",
51+
"value": "application/json"
52+
}
53+
],
54+
"headersSize": 648,
55+
"httpVersion": "HTTP/1.1",
56+
"redirectURL": "",
57+
"status": 200,
58+
"statusText": "OK"
59+
},
60+
"startedDateTime": "2023-02-14T13:37:09.014Z",
61+
"time": 362
62+
}
63+
],
64+
"pages": [],
65+
"version": "1.2"
66+
}
67+
}

Diff for: examples/v2/synthetics/GetOnDemandConcurrencyCap.ts

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Get the on-demand concurrency cap returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.SyntheticsApi(configuration);
9+
10+
apiInstance
11+
.getOnDemandConcurrencyCap()
12+
.then((data: v2.OnDemandConcurrencyCapResponse) => {
13+
console.log(
14+
"API called successfully. Returned data: " + JSON.stringify(data)
15+
);
16+
})
17+
.catch((error: any) => console.error(error));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Get on demand concurrency cap
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.SyntheticsApi(configuration);
9+
10+
apiInstance
11+
.getOnDemandConcurrencyCap()
12+
.then((data: v2.OnDemandConcurrencyCapResponse) => {
13+
console.log(
14+
"API called successfully. Returned data: " + JSON.stringify(data)
15+
);
16+
})
17+
.catch((error: any) => console.error(error));

Diff for: examples/v2/synthetics/SetOnDemandConcurrencyCap.ts

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* Save new value for on-demand concurrency cap returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.SyntheticsApi(configuration);
9+
10+
const params: v2.SyntheticsApiSetOnDemandConcurrencyCapRequest = {
11+
body: {},
12+
};
13+
14+
apiInstance
15+
.setOnDemandConcurrencyCap(params)
16+
.then((data: v2.OnDemandConcurrencyCapResponse) => {
17+
console.log(
18+
"API called successfully. Returned data: " + JSON.stringify(data)
19+
);
20+
})
21+
.catch((error: any) => console.error(error));
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* Save on demand concurrency cap
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
const apiInstance = new v2.SyntheticsApi(configuration);
9+
10+
const params: v2.SyntheticsApiSetOnDemandConcurrencyCapRequest = {
11+
body: {
12+
onDemandConcurrencyCap: 20,
13+
},
14+
};
15+
16+
apiInstance
17+
.setOnDemandConcurrencyCap(params)
18+
.then((data: v2.OnDemandConcurrencyCapResponse) => {
19+
console.log(
20+
"API called successfully. Returned data: " + JSON.stringify(data)
21+
);
22+
})
23+
.catch((error: any) => console.error(error));

Diff for: features/support/scenarios_model_mapping.ts

+10
Original file line numberDiff line numberDiff line change
@@ -4032,6 +4032,16 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
40324032
},
40334033
"operationResponseType": "ServiceDefinitionGetResponse",
40344034
},
4035+
"v2.GetOnDemandConcurrencyCap": {
4036+
"operationResponseType": "OnDemandConcurrencyCapResponse",
4037+
},
4038+
"v2.SetOnDemandConcurrencyCap": {
4039+
"body": {
4040+
"type": "OnDemandConcurrencyCapAttributes",
4041+
"format": "",
4042+
},
4043+
"operationResponseType": "OnDemandConcurrencyCapResponse",
4044+
},
40354045
"v2.ListIncidentTeams": {
40364046
"include": {
40374047
"type": "IncidentRelatedObject",

Diff for: features/v2/synthetics.feature

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
@endpoint(synthetics) @endpoint(synthetics-v2)
2+
Feature: Synthetics
3+
Datadog Synthetics uses simulated user requests and browser rendering to
4+
help you ensure uptime, identify regional issues, and track your
5+
application performance. Datadog Synthetics tests come in two different
6+
flavors, [API tests](https://docs.datadoghq.com/synthetics/api_tests/) and
7+
[browser tests](https://docs.datadoghq.com/synthetics/browser_tests). You
8+
can use Datadog’s API to manage both test types programmatically. For
9+
more information about Synthetics, see the [Synthetics
10+
overview](https://docs.datadoghq.com/synthetics/).
11+
12+
Background:
13+
Given a valid "apiKeyAuth" key in the system
14+
And a valid "appKeyAuth" key in the system
15+
And an instance of "Synthetics" API
16+
17+
@team:DataDog/synthetics-app
18+
Scenario: Get on demand concurrency cap
19+
Given new "GetOnDemandConcurrencyCap" request
20+
When the request is sent
21+
Then the response status is 200 OK
22+
23+
@generated @skip @team:DataDog/synthetics-app
24+
Scenario: Get the on-demand concurrency cap returns "OK" response
25+
Given new "GetOnDemandConcurrencyCap" request
26+
When the request is sent
27+
Then the response status is 200 OK
28+
29+
@generated @skip @team:DataDog/synthetics-app
30+
Scenario: Save new value for on-demand concurrency cap returns "OK" response
31+
Given new "SetOnDemandConcurrencyCap" request
32+
And body with value {}
33+
When the request is sent
34+
Then the response status is 200 OK
35+
36+
@team:DataDog/synthetics-app
37+
Scenario: Save on demand concurrency cap
38+
Given new "SetOnDemandConcurrencyCap" request
39+
And body with value {"on_demand_concurrency_cap": 20}
40+
When the request is sent
41+
Then the response status is 200 OK

Diff for: features/v2/undo.json

+12
Original file line numberDiff line numberDiff line change
@@ -1280,6 +1280,18 @@
12801280
"type": "idempotent"
12811281
}
12821282
},
1283+
"GetOnDemandConcurrencyCap": {
1284+
"tag": "Synthetics",
1285+
"undo": {
1286+
"type": "safe"
1287+
}
1288+
},
1289+
"SetOnDemandConcurrencyCap": {
1290+
"tag": "Synthetics",
1291+
"undo": {
1292+
"type": "safe"
1293+
}
1294+
},
12831295
"ListIncidentTeams": {
12841296
"tag": "Incident Teams",
12851297
"undo": {

0 commit comments

Comments
 (0)