Skip to content

Commit 5bba307

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 3868f953 of spec repo
1 parent b6a6b9e commit 5bba307

8 files changed

+136
-16
lines changed

.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.5",
7-
"regenerated": "2023-07-14 13:32:03.054187",
8-
"spec_repo_commit": "2bd58701"
7+
"regenerated": "2023-07-14 14:04:17.404156",
8+
"spec_repo_commit": "3868f953"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-14 13:32:03.073621",
13-
"spec_repo_commit": "2bd58701"
12+
"regenerated": "2023-07-14 14:04:17.421016",
13+
"spec_repo_commit": "3868f953"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -15010,6 +15010,17 @@ components:
1501015010
$ref: '#/components/schemas/SpansType'
1501115011
type: object
1501215012
SpansAggregateBucket:
15013+
description: Spans aggregate.
15014+
properties:
15015+
attributes:
15016+
$ref: '#/components/schemas/SpansAggregateBucketAttributes'
15017+
id:
15018+
description: ID of the spans aggregate.
15019+
type: string
15020+
type:
15021+
$ref: '#/components/schemas/SpansAggregateBucketType'
15022+
type: object
15023+
SpansAggregateBucketAttributes:
1501315024
description: A bucket values.
1501415025
properties:
1501515026
by:
@@ -15020,13 +15031,24 @@ components:
1502015031
'@state': success
1502115032
'@version': abc
1502215033
type: object
15034+
compute:
15035+
description: The compute data.
15036+
type: object
1502315037
computes:
1502415038
additionalProperties:
1502515039
$ref: '#/components/schemas/SpansAggregateBucketValue'
1502615040
description: A map of the metric name -> value for regular compute or list
1502715041
of values for a timeseries.
1502815042
type: object
1502915043
type: object
15044+
SpansAggregateBucketType:
15045+
description: The spans aggregate bucket type.
15046+
enum:
15047+
- bucket
15048+
example: bucket
15049+
type: string
15050+
x-enum-varnames:
15051+
- BUCKET
1503015052
SpansAggregateBucketValue:
1503115053
description: A bucket value, can be either a timeseries or a single value.
1503215054
oneOf:
@@ -15214,6 +15236,10 @@ components:
1521415236
customAttribute: 123
1521515237
duration: 2345
1521615238
type: object
15239+
custom:
15240+
additionalProperties: {}
15241+
description: JSON object of custom spans data.
15242+
type: object
1521715243
end_timestamp:
1521815244
description: End timestamp of your span.
1521915245
example: '2023-01-02T09:42:36.420Z'

packages/datadog-api-client-v2/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,8 @@ export { SlackIntegrationMetadata } from "./models/SlackIntegrationMetadata";
13331333
export { SlackIntegrationMetadataChannelItem } from "./models/SlackIntegrationMetadataChannelItem";
13341334
export { Span } from "./models/Span";
13351335
export { SpansAggregateBucket } from "./models/SpansAggregateBucket";
1336+
export { SpansAggregateBucketAttributes } from "./models/SpansAggregateBucketAttributes";
1337+
export { SpansAggregateBucketType } from "./models/SpansAggregateBucketType";
13361338
export { SpansAggregateBucketValue } from "./models/SpansAggregateBucketValue";
13371339
export { SpansAggregateBucketValueTimeseriesPoint } from "./models/SpansAggregateBucketValueTimeseriesPoint";
13381340
export { SpansAggregateData } from "./models/SpansAggregateData";

packages/datadog-api-client-v2/models/ObjectSerializer.ts

+3
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,7 @@ import { SlackIntegrationMetadata } from "./SlackIntegrationMetadata";
720720
import { SlackIntegrationMetadataChannelItem } from "./SlackIntegrationMetadataChannelItem";
721721
import { Span } from "./Span";
722722
import { SpansAggregateBucket } from "./SpansAggregateBucket";
723+
import { SpansAggregateBucketAttributes } from "./SpansAggregateBucketAttributes";
723724
import { SpansAggregateBucketValueTimeseriesPoint } from "./SpansAggregateBucketValueTimeseriesPoint";
724725
import { SpansAggregateData } from "./SpansAggregateData";
725726
import { SpansAggregateRequest } from "./SpansAggregateRequest";
@@ -1258,6 +1259,7 @@ const enumsMap: { [key: string]: any[] } = {
12581259
ServiceDefinitionV2OpsgenieRegion: ["US", "EU"],
12591260
ServiceDefinitionV2SlackType: ["slack"],
12601261
ServiceDefinitionV2Version: ["v2"],
1262+
SpansAggregateBucketType: ["bucket"],
12611263
SpansAggregateRequestType: ["aggregate_request"],
12621264
SpansAggregateResponseStatus: ["done", "timeout"],
12631265
SpansAggregateSortType: ["alphabetical", "measure"],
@@ -2117,6 +2119,7 @@ const typeMap: { [index: string]: any } = {
21172119
SlackIntegrationMetadataChannelItem: SlackIntegrationMetadataChannelItem,
21182120
Span: Span,
21192121
SpansAggregateBucket: SpansAggregateBucket,
2122+
SpansAggregateBucketAttributes: SpansAggregateBucketAttributes,
21202123
SpansAggregateBucketValueTimeseriesPoint:
21212124
SpansAggregateBucketValueTimeseriesPoint,
21222125
SpansAggregateData: SpansAggregateData,

packages/datadog-api-client-v2/models/SpansAggregateBucket.ts

+21-12
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,27 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6-
import { SpansAggregateBucketValue } from "./SpansAggregateBucketValue";
6+
import { SpansAggregateBucketAttributes } from "./SpansAggregateBucketAttributes";
7+
import { SpansAggregateBucketType } from "./SpansAggregateBucketType";
78

89
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
910

1011
/**
11-
* A bucket values.
12+
* Spans aggregate.
1213
*/
1314
export class SpansAggregateBucket {
1415
/**
15-
* The key, value pairs for each group by.
16+
* A bucket values.
1617
*/
17-
"by"?: { [key: string]: any };
18+
"attributes"?: SpansAggregateBucketAttributes;
1819
/**
19-
* A map of the metric name -> value for regular compute or list of values for a timeseries.
20+
* ID of the spans aggregate.
2021
*/
21-
"computes"?: { [key: string]: SpansAggregateBucketValue };
22+
"id"?: string;
23+
/**
24+
* The spans aggregate bucket type.
25+
*/
26+
"type"?: SpansAggregateBucketType;
2227

2328
/**
2429
* @ignore
@@ -29,13 +34,17 @@ export class SpansAggregateBucket {
2934
* @ignore
3035
*/
3136
static readonly attributeTypeMap: AttributeTypeMap = {
32-
by: {
33-
baseName: "by",
34-
type: "{ [key: string]: any; }",
37+
attributes: {
38+
baseName: "attributes",
39+
type: "SpansAggregateBucketAttributes",
40+
},
41+
id: {
42+
baseName: "id",
43+
type: "string",
3544
},
36-
computes: {
37-
baseName: "computes",
38-
type: "{ [key: string]: SpansAggregateBucketValue; }",
45+
type: {
46+
baseName: "type",
47+
type: "SpansAggregateBucketType",
3948
},
4049
};
4150

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
import { SpansAggregateBucketValue } from "./SpansAggregateBucketValue";
7+
8+
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
9+
10+
/**
11+
* A bucket values.
12+
*/
13+
export class SpansAggregateBucketAttributes {
14+
/**
15+
* The key, value pairs for each group by.
16+
*/
17+
"by"?: { [key: string]: any };
18+
/**
19+
* The compute data.
20+
*/
21+
"compute"?: any;
22+
/**
23+
* A map of the metric name -> value for regular compute or list of values for a timeseries.
24+
*/
25+
"computes"?: { [key: string]: SpansAggregateBucketValue };
26+
27+
/**
28+
* @ignore
29+
*/
30+
"_unparsed"?: boolean;
31+
32+
/**
33+
* @ignore
34+
*/
35+
static readonly attributeTypeMap: AttributeTypeMap = {
36+
by: {
37+
baseName: "by",
38+
type: "{ [key: string]: any; }",
39+
},
40+
compute: {
41+
baseName: "compute",
42+
type: "any",
43+
},
44+
computes: {
45+
baseName: "computes",
46+
type: "{ [key: string]: SpansAggregateBucketValue; }",
47+
},
48+
};
49+
50+
/**
51+
* @ignore
52+
*/
53+
static getAttributeTypeMap(): AttributeTypeMap {
54+
return SpansAggregateBucketAttributes.attributeTypeMap;
55+
}
56+
57+
public constructor() {}
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
3+
* This product includes software developed at Datadog (https://www.datadoghq.com/).
4+
* Copyright 2020-Present Datadog, Inc.
5+
*/
6+
7+
import { UnparsedObject } from "../../datadog-api-client-common/util";
8+
9+
/**
10+
* The spans aggregate bucket type.
11+
*/
12+
13+
export type SpansAggregateBucketType = typeof BUCKET | UnparsedObject;
14+
export const BUCKET = "bucket";

packages/datadog-api-client-v2/models/SpansAttributes.ts

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ export class SpansAttributes {
1414
* JSON object of attributes from your span.
1515
*/
1616
"attributes"?: { [key: string]: any };
17+
/**
18+
* JSON object of custom spans data.
19+
*/
20+
"custom"?: { [key: string]: any };
1721
/**
1822
* End timestamp of your span.
1923
*/
@@ -90,6 +94,10 @@ export class SpansAttributes {
9094
baseName: "attributes",
9195
type: "{ [key: string]: any; }",
9296
},
97+
custom: {
98+
baseName: "custom",
99+
type: "{ [key: string]: any; }",
100+
},
93101
endTimestamp: {
94102
baseName: "end_timestamp",
95103
type: "Date",

0 commit comments

Comments
 (0)