Skip to content

Commit 87d45c9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 973bd612 of spec repo
1 parent efe8219 commit 87d45c9

File tree

16 files changed

+608
-128
lines changed

16 files changed

+608
-128
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.6",
7-
"regenerated": "2023-11-16 17:18:48.100322",
8-
"spec_repo_commit": "0e97d7dd"
7+
"regenerated": "2023-11-16 18:34:27.532496",
8+
"spec_repo_commit": "973bd612"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-11-16 17:18:48.114245",
13-
"spec_repo_commit": "0e97d7dd"
12+
"regenerated": "2023-11-16 18:34:27.550231",
13+
"spec_repo_commit": "973bd612"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,47 @@ components:
721721
type: string
722722
x-enum-varnames:
723723
- API_KEYS
724+
ActiveBillingDimensionsAttributes:
725+
description: List of active billing dimensions.
726+
properties:
727+
month:
728+
description: 'Datetime in ISO-8601 format, UTC, precise to hour: `[YYYY-MM-DDThh]`.'
729+
format: date-time
730+
type: string
731+
values:
732+
description: 'List of active billing dimensions. Example: `[infra_host,
733+
apm_host, serverless_infra]`.'
734+
items:
735+
description: A given billing dimension in a list.
736+
example: infra_host
737+
type: string
738+
type: array
739+
type: object
740+
ActiveBillingDimensionsBody:
741+
description: Active billing dimensions data.
742+
properties:
743+
attributes:
744+
$ref: '#/components/schemas/ActiveBillingDimensionsAttributes'
745+
id:
746+
description: Unique ID of the response.
747+
type: string
748+
type:
749+
$ref: '#/components/schemas/ActiveBillingDimensionsType'
750+
type: object
751+
ActiveBillingDimensionsResponse:
752+
description: Active billing dimensions response.
753+
properties:
754+
data:
755+
$ref: '#/components/schemas/ActiveBillingDimensionsBody'
756+
type: object
757+
ActiveBillingDimensionsType:
758+
default: billing_dimensions
759+
description: Type of active billing dimensions data.
760+
enum:
761+
- billing_dimensions
762+
type: string
763+
x-enum-varnames:
764+
- BILLING_DIMENSIONS
724765
ApmRetentionFilterType:
725766
default: apm_retention_filter
726767
description: The type of the resource.
@@ -20823,6 +20864,47 @@ paths:
2082320864
resultsPath: data
2082420865
x-unstable: '**Note**: This endpoint is in public beta.
2082520866

20867+
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
20868+
/api/v2/cost_by_tag/active_billing_dimensions:
20869+
get:
20870+
description: Get active billing dimensions for cost attribution. Cost data for
20871+
a given month becomes available no later than the 17th of the following month.
20872+
operationId: GetActiveBillingDimensions
20873+
responses:
20874+
'200':
20875+
content:
20876+
application/json;datetime-format=rfc3339:
20877+
schema:
20878+
$ref: '#/components/schemas/ActiveBillingDimensionsResponse'
20879+
description: OK
20880+
'400':
20881+
content:
20882+
application/json;datetime-format=rfc3339:
20883+
schema:
20884+
$ref: '#/components/schemas/APIErrorResponse'
20885+
description: Bad Request
20886+
'403':
20887+
content:
20888+
application/json;datetime-format=rfc3339:
20889+
schema:
20890+
$ref: '#/components/schemas/APIErrorResponse'
20891+
description: Forbidden - User is not authorized
20892+
'429':
20893+
content:
20894+
application/json;datetime-format=rfc3339:
20895+
schema:
20896+
$ref: '#/components/schemas/APIErrorResponse'
20897+
description: Too many requests
20898+
security:
20899+
- apiKeyAuth: []
20900+
appKeyAuth: []
20901+
- AuthZ:
20902+
- usage_read
20903+
summary: Get active billing dimensions for cost attribution
20904+
tags:
20905+
- Usage Metering
20906+
x-unstable: '**Note**: This endpoint is in public beta.
20907+
2082620908
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
2082720909
/api/v2/current_user/application_keys:
2082820910
get:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-11-16T16:03:39.691Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"log": {
3+
"_recordingName": "Usage Metering/Get active billing dimensions for cost attribution returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "35fc05697a05a5271bbf430b1b46fa5a",
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;datetime-format=rfc3339"
22+
}
23+
],
24+
"headersSize": 568,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [],
28+
"url": "https://api.datadoghq.com/api/v2/cost_by_tag/active_billing_dimensions"
29+
},
30+
"response": {
31+
"bodySize": 1626,
32+
"content": {
33+
"mimeType": "application/json",
34+
"size": 1626,
35+
"text": "{\"data\":{\"type\":\"billing_dimensions\",\"id\":\"f145e21e840c6db03f75c179877629eb08531aa6f314f97658261680e49ab1f1\",\"attributes\":{\"values\":[\"apm_fargate\",\"apm_host\",\"apm_host_enterprise\",\"apm_host_no_usm\",\"apm_host_pro\",\"apm_profiler_host\",\"apm_trace_search\",\"application_security_fargate\",\"application_security_host\",\"application_vulnerability_management_oss_host\",\"audit_trail\",\"ci_pipeline\",\"ci_pipeline_indexed_spans\",\"ci_test_indexed_spans\",\"ci_testing\",\"cloud_cost_management\",\"csm_container_enterprise\",\"csm_host_enterprise\",\"csm_host_pro\",\"cspm_container\",\"cspm_host\",\"custom_event\",\"cws_container\",\"cws_host\",\"data_stream_monitoring\",\"dbm_host\",\"dbm_normalized_queries\",\"fargate_container\",\"fargate_container_apm_and_profiler\",\"fargate_container_profiler\",\"incident_management\",\"infra_and_apm_host\",\"infra_container\",\"infra_container_excl_agent\",\"infra_host\",\"ingested_spans\",\"ingested_timeseries\",\"iot\",\"lambda_function\",\"logs_forwarding\",\"logs_indexed_15day\",\"logs_indexed_180day\",\"logs_indexed_30day\",\"logs_indexed_360day\",\"logs_indexed_3day\",\"logs_indexed_45day\",\"logs_indexed_60day\",\"logs_indexed_7day\",\"logs_indexed_90day\",\"logs_indexed_custom_retention\",\"logs_ingested\",\"network_device\",\"npm_host\",\"observability_pipeline\",\"online_archive\",\"premier_support\",\"prof_container\",\"prof_host\",\"rum\",\"rum_lite\",\"rum_replay\",\"sensitive_data_scanner\",\"serverless_apm\",\"serverless_infra\",\"serverless_invocation\",\"siem\",\"standard_timeseries\",\"synthetics_api_tests\",\"synthetics_app_testing\",\"synthetics_browser_checks\",\"timeseries\",\"usm_standalone\",\"usm_within_infra_host\",\"workflow_execution\"],\"month\":\"2023-10-01T00:00:00Z\"}}}\n"
36+
},
37+
"cookies": [],
38+
"headers": [
39+
{
40+
"name": "content-type",
41+
"value": "application/json"
42+
}
43+
],
44+
"headersSize": 659,
45+
"httpVersion": "HTTP/1.1",
46+
"redirectURL": "",
47+
"status": 200,
48+
"statusText": "OK"
49+
},
50+
"startedDateTime": "2023-11-16T16:03:40.282Z",
51+
"time": 384
52+
}
53+
],
54+
"pages": [],
55+
"version": "1.2"
56+
}
57+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Get active billing dimensions for cost attribution returns "OK" response
3+
*/
4+
5+
import { client, v2 } from "@datadog/datadog-api-client";
6+
7+
const configuration = client.createConfiguration();
8+
configuration.unstableOperations["v2.getActiveBillingDimensions"] = true;
9+
const apiInstance = new v2.UsageMeteringApi(configuration);
10+
11+
apiInstance
12+
.getActiveBillingDimensions()
13+
.then((data: v2.ActiveBillingDimensionsResponse) => {
14+
console.log(
15+
"API called successfully. Returned data: " + JSON.stringify(data)
16+
);
17+
})
18+
.catch((error: any) => console.error(error));

0 commit comments

Comments
 (0)