Skip to content

Commit 5d9f10f

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8b1782a4 of spec repo
1 parent c2dd876 commit 5d9f10f

11 files changed

+201
-69
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.5",
7-
"regenerated": "2023-07-26 17:14:51.413957",
8-
"spec_repo_commit": "69e8c6e4"
7+
"regenerated": "2023-07-27 14:58:50.671873",
8+
"spec_repo_commit": "8b1782a4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-07-26 17:14:51.429473",
13-
"spec_repo_commit": "69e8c6e4"
12+
"regenerated": "2023-07-27 14:58:50.684790",
13+
"spec_repo_commit": "8b1782a4"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 65 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,32 +1475,6 @@ components:
14751475
type: string
14761476
x-enum-varnames:
14771477
- CIPIPELINE_RESOURCE_REQUEST
1478-
CIAppEventAttributes:
1479-
description: JSON object containing all event attributes and their associated
1480-
values.
1481-
properties:
1482-
attributes:
1483-
additionalProperties: {}
1484-
description: JSON object of attributes from CI Visibility events.
1485-
example:
1486-
customAttribute: 123
1487-
duration: 2345
1488-
type: object
1489-
service:
1490-
description: 'The name of the application or service generating CI Visibility
1491-
events.
1492-
1493-
It is used to switch from CI Visibility to APM, so make sure you define
1494-
the same
1495-
1496-
value when you use both products.'
1497-
example: web-ui-tests
1498-
type: string
1499-
tags:
1500-
$ref: '#/components/schemas/TagsEventAttribute'
1501-
timestamp:
1502-
$ref: '#/components/schemas/TimestampEventAttribute'
1503-
type: object
15041478
CIAppGitInfo:
15051479
description: 'If pipelines are triggered due to actions to a Git repository,
15061480
then all payloads must contain this.
@@ -1661,14 +1635,30 @@ components:
16611635
stored by Datadog.
16621636
properties:
16631637
attributes:
1664-
$ref: '#/components/schemas/CIAppEventAttributes'
1638+
$ref: '#/components/schemas/CIAppPipelineEventAttributes'
16651639
id:
16661640
description: Unique ID of the event.
16671641
example: AAAAAWgN8Xwgr1vKDQAAAABBV2dOOFh3ZzZobm1mWXJFYTR0OA
16681642
type: string
16691643
type:
16701644
$ref: '#/components/schemas/CIAppPipelineEventTypeName'
16711645
type: object
1646+
CIAppPipelineEventAttributes:
1647+
description: JSON object containing all event attributes and their associated
1648+
values.
1649+
properties:
1650+
attributes:
1651+
additionalProperties: {}
1652+
description: JSON object of attributes from CI Visibility pipeline events.
1653+
example:
1654+
customAttribute: 123
1655+
duration: 2345
1656+
type: object
1657+
ci_level:
1658+
$ref: '#/components/schemas/CIAppPipelineLevel'
1659+
tags:
1660+
$ref: '#/components/schemas/TagsEventAttribute'
1661+
type: object
16721662
CIAppPipelineEventJob:
16731663
description: Details of a CI job.
16741664
properties:
@@ -2190,6 +2180,22 @@ components:
21902180
meta:
21912181
$ref: '#/components/schemas/CIAppResponseMetadataWithPagination'
21922182
type: object
2183+
CIAppPipelineLevel:
2184+
description: Pipeline execution level.
2185+
enum:
2186+
- pipeline
2187+
- stage
2188+
- job
2189+
- step
2190+
- custom
2191+
example: pipeline
2192+
type: string
2193+
x-enum-varnames:
2194+
- PIPELINE
2195+
- STAGE
2196+
- JOB
2197+
- STEP
2198+
- CUSTOM
21932199
CIAppPipelinesAggregateRequest:
21942200
description: The object sent with the request to retrieve aggregation buckets
21952201
of pipeline events from your organization.
@@ -2421,14 +2427,30 @@ components:
24212427
by Datadog.
24222428
properties:
24232429
attributes:
2424-
$ref: '#/components/schemas/CIAppEventAttributes'
2430+
$ref: '#/components/schemas/CIAppTestEventAttributes'
24252431
id:
24262432
description: Unique ID of the event.
24272433
example: AAAAAWgN8Xwgr1vKDQAAAABBV2dOOFh3ZzZobm1mWXJFYTR0OA
24282434
type: string
24292435
type:
24302436
$ref: '#/components/schemas/CIAppTestEventTypeName'
24312437
type: object
2438+
CIAppTestEventAttributes:
2439+
description: JSON object containing all event attributes and their associated
2440+
values.
2441+
properties:
2442+
attributes:
2443+
additionalProperties: {}
2444+
description: JSON object of attributes from CI Visibility test events.
2445+
example:
2446+
customAttribute: 123
2447+
duration: 2345
2448+
type: object
2449+
tags:
2450+
$ref: '#/components/schemas/TagsEventAttribute'
2451+
test_level:
2452+
$ref: '#/components/schemas/CIAppTestLevel'
2453+
type: object
24322454
CIAppTestEventTypeName:
24332455
description: Type of the event.
24342456
enum:
@@ -2463,6 +2485,20 @@ components:
24632485
meta:
24642486
$ref: '#/components/schemas/CIAppResponseMetadataWithPagination'
24652487
type: object
2488+
CIAppTestLevel:
2489+
description: Test run level.
2490+
enum:
2491+
- session
2492+
- module
2493+
- suite
2494+
- test
2495+
example: test
2496+
type: string
2497+
x-enum-varnames:
2498+
- SESSION
2499+
- MODULE
2500+
- SUITE
2501+
- TEST
24662502
CIAppTestsAggregateRequest:
24672503
description: The object sent with the request to retrieve aggregation buckets
24682504
of test events from your organization.
@@ -2500,7 +2536,7 @@ components:
25002536
links:
25012537
$ref: '#/components/schemas/CIAppResponseLinks'
25022538
meta:
2503-
$ref: '#/components/schemas/CIAppResponseMetadata'
2539+
$ref: '#/components/schemas/CIAppResponseMetadataWithPagination'
25042540
type: object
25052541
CIAppTestsBucketResponse:
25062542
description: Bucket values.
@@ -16579,11 +16615,6 @@ components:
1657916615
items:
1658016616
$ref: '#/components/schemas/TimeseriesResponseValues'
1658116617
type: array
16582-
TimestampEventAttribute:
16583-
description: Timestamp of your event.
16584-
example: '2019-01-02T09:42:36.320Z'
16585-
format: date-time
16586-
type: string
1658716618
Unit:
1658816619
description: Object containing the metric unit family, scale factor, name, and
1658916620
short name.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,13 +455,13 @@ export { CIAppCreatePipelineEventRequestAttributes } from "./models/CIAppCreateP
455455
export { CIAppCreatePipelineEventRequestAttributesResource } from "./models/CIAppCreatePipelineEventRequestAttributesResource";
456456
export { CIAppCreatePipelineEventRequestData } from "./models/CIAppCreatePipelineEventRequestData";
457457
export { CIAppCreatePipelineEventRequestDataType } from "./models/CIAppCreatePipelineEventRequestDataType";
458-
export { CIAppEventAttributes } from "./models/CIAppEventAttributes";
459458
export { CIAppGitInfo } from "./models/CIAppGitInfo";
460459
export { CIAppGroupByHistogram } from "./models/CIAppGroupByHistogram";
461460
export { CIAppGroupByMissing } from "./models/CIAppGroupByMissing";
462461
export { CIAppGroupByTotal } from "./models/CIAppGroupByTotal";
463462
export { CIAppHostInfo } from "./models/CIAppHostInfo";
464463
export { CIAppPipelineEvent } from "./models/CIAppPipelineEvent";
464+
export { CIAppPipelineEventAttributes } from "./models/CIAppPipelineEventAttributes";
465465
export { CIAppPipelineEventJob } from "./models/CIAppPipelineEventJob";
466466
export { CIAppPipelineEventJobLevel } from "./models/CIAppPipelineEventJobLevel";
467467
export { CIAppPipelineEventJobStatus } from "./models/CIAppPipelineEventJobStatus";
@@ -479,6 +479,7 @@ export { CIAppPipelineEventStep } from "./models/CIAppPipelineEventStep";
479479
export { CIAppPipelineEventStepLevel } from "./models/CIAppPipelineEventStepLevel";
480480
export { CIAppPipelineEventStepStatus } from "./models/CIAppPipelineEventStepStatus";
481481
export { CIAppPipelineEventTypeName } from "./models/CIAppPipelineEventTypeName";
482+
export { CIAppPipelineLevel } from "./models/CIAppPipelineLevel";
482483
export { CIAppPipelinesAggregateRequest } from "./models/CIAppPipelinesAggregateRequest";
483484
export { CIAppPipelinesAggregationBucketsResponse } from "./models/CIAppPipelinesAggregationBucketsResponse";
484485
export { CIAppPipelinesAnalyticsAggregateResponse } from "./models/CIAppPipelinesAnalyticsAggregateResponse";
@@ -495,9 +496,11 @@ export { CIAppResponseStatus } from "./models/CIAppResponseStatus";
495496
export { CIAppSort } from "./models/CIAppSort";
496497
export { CIAppSortOrder } from "./models/CIAppSortOrder";
497498
export { CIAppTestEvent } from "./models/CIAppTestEvent";
499+
export { CIAppTestEventAttributes } from "./models/CIAppTestEventAttributes";
498500
export { CIAppTestEventsRequest } from "./models/CIAppTestEventsRequest";
499501
export { CIAppTestEventsResponse } from "./models/CIAppTestEventsResponse";
500502
export { CIAppTestEventTypeName } from "./models/CIAppTestEventTypeName";
503+
export { CIAppTestLevel } from "./models/CIAppTestLevel";
501504
export { CIAppTestsAggregateRequest } from "./models/CIAppTestsAggregateRequest";
502505
export { CIAppTestsAggregationBucketsResponse } from "./models/CIAppTestsAggregationBucketsResponse";
503506
export { CIAppTestsAnalyticsAggregateResponse } from "./models/CIAppTestsAnalyticsAggregateResponse";

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6-
import { CIAppEventAttributes } from "./CIAppEventAttributes";
6+
import { CIAppPipelineEventAttributes } from "./CIAppPipelineEventAttributes";
77
import { CIAppPipelineEventTypeName } from "./CIAppPipelineEventTypeName";
88

99
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -15,7 +15,7 @@ export class CIAppPipelineEvent {
1515
/**
1616
* JSON object containing all event attributes and their associated values.
1717
*/
18-
"attributes"?: CIAppEventAttributes;
18+
"attributes"?: CIAppPipelineEventAttributes;
1919
/**
2020
* Unique ID of the event.
2121
*/
@@ -36,7 +36,7 @@ export class CIAppPipelineEvent {
3636
static readonly attributeTypeMap: AttributeTypeMap = {
3737
attributes: {
3838
baseName: "attributes",
39-
type: "CIAppEventAttributes",
39+
type: "CIAppPipelineEventAttributes",
4040
},
4141
id: {
4242
baseName: "id",

packages/datadog-api-client-v2/models/CIAppEventAttributes.ts renamed to packages/datadog-api-client-v2/models/CIAppPipelineEventAttributes.ts

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,26 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6+
import { CIAppPipelineLevel } from "./CIAppPipelineLevel";
67

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

910
/**
1011
* JSON object containing all event attributes and their associated values.
1112
*/
12-
export class CIAppEventAttributes {
13+
export class CIAppPipelineEventAttributes {
1314
/**
14-
* JSON object of attributes from CI Visibility events.
15+
* JSON object of attributes from CI Visibility pipeline events.
1516
*/
1617
"attributes"?: { [key: string]: any };
1718
/**
18-
* The name of the application or service generating CI Visibility events.
19-
* It is used to switch from CI Visibility to APM, so make sure you define the same
20-
* value when you use both products.
19+
* Pipeline execution level.
2120
*/
22-
"service"?: string;
21+
"ciLevel"?: CIAppPipelineLevel;
2322
/**
2423
* Array of tags associated with your event.
2524
*/
2625
"tags"?: Array<string>;
27-
/**
28-
* Timestamp of your event.
29-
*/
30-
"timestamp"?: Date;
3126

3227
/**
3328
* @ignore
@@ -42,26 +37,21 @@ export class CIAppEventAttributes {
4237
baseName: "attributes",
4338
type: "{ [key: string]: any; }",
4439
},
45-
service: {
46-
baseName: "service",
47-
type: "string",
40+
ciLevel: {
41+
baseName: "ci_level",
42+
type: "CIAppPipelineLevel",
4843
},
4944
tags: {
5045
baseName: "tags",
5146
type: "Array<string>",
5247
},
53-
timestamp: {
54-
baseName: "timestamp",
55-
type: "Date",
56-
format: "date-time",
57-
},
5848
};
5949

6050
/**
6151
* @ignore
6252
*/
6353
static getAttributeTypeMap(): AttributeTypeMap {
64-
return CIAppEventAttributes.attributeTypeMap;
54+
return CIAppPipelineEventAttributes.attributeTypeMap;
6555
}
6656

6757
public constructor() {}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
* Pipeline execution level.
11+
*/
12+
13+
export type CIAppPipelineLevel =
14+
| typeof PIPELINE
15+
| typeof STAGE
16+
| typeof JOB
17+
| typeof STEP
18+
| typeof CUSTOM
19+
| UnparsedObject;
20+
export const PIPELINE = "pipeline";
21+
export const STAGE = "stage";
22+
export const JOB = "job";
23+
export const STEP = "step";
24+
export const CUSTOM = "custom";

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6-
import { CIAppEventAttributes } from "./CIAppEventAttributes";
6+
import { CIAppTestEventAttributes } from "./CIAppTestEventAttributes";
77
import { CIAppTestEventTypeName } from "./CIAppTestEventTypeName";
88

99
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
@@ -15,7 +15,7 @@ export class CIAppTestEvent {
1515
/**
1616
* JSON object containing all event attributes and their associated values.
1717
*/
18-
"attributes"?: CIAppEventAttributes;
18+
"attributes"?: CIAppTestEventAttributes;
1919
/**
2020
* Unique ID of the event.
2121
*/
@@ -36,7 +36,7 @@ export class CIAppTestEvent {
3636
static readonly attributeTypeMap: AttributeTypeMap = {
3737
attributes: {
3838
baseName: "attributes",
39-
type: "CIAppEventAttributes",
39+
type: "CIAppTestEventAttributes",
4040
},
4141
id: {
4242
baseName: "id",

0 commit comments

Comments
 (0)