Skip to content

Commit a9609d4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add Network Path fields to usage summary API (#3568)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent b88dc59 commit a9609d4

File tree

13 files changed

+312
-0
lines changed

13 files changed

+312
-0
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22294,6 +22294,11 @@ components:
2229422294
wireless devices over all hours in the current date for all organizations.
2229522295
format: int64
2229622296
type: integer
22297+
network_path_sum:
22298+
description: Shows the sum of all Network Path scheduled tests over all
22299+
hours in the current date for all organizations.
22300+
format: int64
22301+
type: integer
2229722302
npm_host_top99p:
2229822303
description: Shows the 99th percentile of all distinct Cloud Network Monitoring
2229922304
hosts (formerly known as Network hosts) over all hours in the current
@@ -23462,6 +23467,11 @@ components:
2346223467
wireless devices over all hours in the current date for the given org.
2346323468
format: int64
2346423469
type: integer
23470+
network_path_sum:
23471+
description: Shows the sum of all Network Path scheduled tests over all
23472+
hours in the current date for the given org.
23473+
format: int64
23474+
type: integer
2346523475
npm_host_top99p:
2346623476
description: Shows the 99th percentile of all distinct Cloud Network Monitoring
2346723477
hosts (formerly known as Network hosts) over all hours in the current
@@ -24650,6 +24660,11 @@ components:
2465024660
wireless devices over all hours in the current month for all organizations.
2465124661
format: int64
2465224662
type: integer
24663+
network_path_agg_sum:
24664+
description: Shows the sum of all Network Path scheduled tests over all
24665+
hours in the current month for all organizations.
24666+
format: int64
24667+
type: integer
2465324668
npm_host_top99p_sum:
2465424669
description: Shows the 99th percentile of all distinct Cloud Network Monitoring
2465524670
hosts (formerly known as Network hosts) over all hours in the current

.generator/schemas/v2/openapi.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54739,6 +54739,69 @@ components:
5473954739
type: string
5474054740
x-enum-varnames:
5474154741
- RULESET
54742+
RumCrossProductSampling:
54743+
description: 'Configuration for additional APM trace data retention for sessions
54744+
that match this retention filter.
54745+
54746+
When a session matches the filter and is retained (based on `sample_rate`),
54747+
you can configure
54748+
54749+
the percentage of retained sessions with ingested traces whose traces are
54750+
indexed.'
54751+
properties:
54752+
trace_enabled:
54753+
description: Indicates whether trace cross-product sampling is enabled.
54754+
If `false`, no traces are indexed regardless of `trace_sample_rate`.
54755+
example: true
54756+
type: boolean
54757+
trace_sample_rate:
54758+
description: 'The percentage (0-100) of retained sessions with ingested
54759+
traces whose traces are indexed.
54760+
54761+
For example, 25.0 means 25% of retained sessions with ingested traces
54762+
have their traces indexed.'
54763+
example: 25.0
54764+
format: double
54765+
maximum: 100
54766+
minimum: 0
54767+
type: number
54768+
type: object
54769+
RumCrossProductSamplingCreate:
54770+
description: Configuration for cross-product sampling when creating a retention
54771+
filter.
54772+
properties:
54773+
trace_enabled:
54774+
description: Indicates whether trace cross-product sampling is enabled.
54775+
example: true
54776+
type: boolean
54777+
trace_sample_rate:
54778+
description: The percentage (0-100) of retained sessions with ingested traces
54779+
whose traces are indexed.
54780+
example: 25.0
54781+
format: double
54782+
maximum: 100
54783+
minimum: 0
54784+
type: number
54785+
required:
54786+
- trace_sample_rate
54787+
type: object
54788+
RumCrossProductSamplingUpdate:
54789+
description: Configuration for cross-product sampling when updating a retention
54790+
filter. All fields are optional for partial updates.
54791+
properties:
54792+
trace_enabled:
54793+
description: Indicates whether trace cross-product sampling is enabled.
54794+
example: true
54795+
type: boolean
54796+
trace_sample_rate:
54797+
description: The percentage (0-100) of retained sessions with ingested traces
54798+
whose traces are indexed.
54799+
example: 25.0
54800+
format: double
54801+
maximum: 100
54802+
minimum: 0
54803+
type: number
54804+
type: object
5474254805
RumMetricCompute:
5474354806
description: The compute rule to compute the rum-based metric.
5474454807
properties:
@@ -55026,6 +55089,8 @@ components:
5502655089
RumRetentionFilterAttributes:
5502755090
description: The object describing attributes of a RUM retention filter.
5502855091
properties:
55092+
cross_product_sampling:
55093+
$ref: '#/components/schemas/RumCrossProductSampling'
5502955094
enabled:
5503055095
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5503155096
event_type:
@@ -55040,6 +55105,8 @@ components:
5504055105
RumRetentionFilterCreateAttributes:
5504155106
description: The object describing attributes of a RUM retention filter to create.
5504255107
properties:
55108+
cross_product_sampling:
55109+
$ref: '#/components/schemas/RumCrossProductSamplingCreate'
5504355110
enabled:
5504455111
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5504555112
event_type:
@@ -55141,6 +55208,8 @@ components:
5514155208
RumRetentionFilterUpdateAttributes:
5514255209
description: The object describing attributes of a RUM retention filter to update.
5514355210
properties:
55211+
cross_product_sampling:
55212+
$ref: '#/components/schemas/RumCrossProductSamplingUpdate'
5514455213
enabled:
5514555214
$ref: '#/components/schemas/RumRetentionFilterEnabled'
5514655215
event_type:

services/rum_retention_filters/src/v2/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export {
99
} from "./RumRetentionFiltersApi";
1010

1111
export { APIErrorResponse } from "./models/APIErrorResponse";
12+
export { RumCrossProductSampling } from "./models/RumCrossProductSampling";
13+
export { RumCrossProductSamplingCreate } from "./models/RumCrossProductSamplingCreate";
14+
export { RumCrossProductSamplingUpdate } from "./models/RumCrossProductSamplingUpdate";
1215
export { RumRetentionFilterAttributes } from "./models/RumRetentionFilterAttributes";
1316
export { RumRetentionFilterCreateAttributes } from "./models/RumRetentionFilterCreateAttributes";
1417
export { RumRetentionFilterCreateData } from "./models/RumRetentionFilterCreateData";
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
/**
4+
* Configuration for additional APM trace data retention for sessions that match this retention filter.
5+
* When a session matches the filter and is retained (based on `sample_rate`), you can configure
6+
* the percentage of retained sessions with ingested traces whose traces are indexed.
7+
*/
8+
export class RumCrossProductSampling {
9+
/**
10+
* Indicates whether trace cross-product sampling is enabled. If `false`, no traces are indexed regardless of `trace_sample_rate`.
11+
*/
12+
"traceEnabled"?: boolean;
13+
/**
14+
* The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
15+
* For example, 25.0 means 25% of retained sessions with ingested traces have their traces indexed.
16+
*/
17+
"traceSampleRate"?: number;
18+
/**
19+
* A container for additional, undeclared properties.
20+
* This is a holder for any undeclared properties as specified with
21+
* the 'additionalProperties' keyword in the OAS document.
22+
*/
23+
"additionalProperties"?: { [key: string]: any };
24+
/**
25+
* @ignore
26+
*/
27+
"_unparsed"?: boolean;
28+
29+
/**
30+
* @ignore
31+
*/
32+
static readonly attributeTypeMap: AttributeTypeMap = {
33+
traceEnabled: {
34+
baseName: "trace_enabled",
35+
type: "boolean",
36+
},
37+
traceSampleRate: {
38+
baseName: "trace_sample_rate",
39+
type: "number",
40+
format: "double",
41+
},
42+
additionalProperties: {
43+
baseName: "additionalProperties",
44+
type: "{ [key: string]: any; }",
45+
},
46+
};
47+
48+
/**
49+
* @ignore
50+
*/
51+
static getAttributeTypeMap(): AttributeTypeMap {
52+
return RumCrossProductSampling.attributeTypeMap;
53+
}
54+
55+
public constructor() {}
56+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
/**
4+
* Configuration for cross-product sampling when creating a retention filter.
5+
*/
6+
export class RumCrossProductSamplingCreate {
7+
/**
8+
* Indicates whether trace cross-product sampling is enabled.
9+
*/
10+
"traceEnabled"?: boolean;
11+
/**
12+
* The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
13+
*/
14+
"traceSampleRate": number;
15+
/**
16+
* A container for additional, undeclared properties.
17+
* This is a holder for any undeclared properties as specified with
18+
* the 'additionalProperties' keyword in the OAS document.
19+
*/
20+
"additionalProperties"?: { [key: string]: any };
21+
/**
22+
* @ignore
23+
*/
24+
"_unparsed"?: boolean;
25+
26+
/**
27+
* @ignore
28+
*/
29+
static readonly attributeTypeMap: AttributeTypeMap = {
30+
traceEnabled: {
31+
baseName: "trace_enabled",
32+
type: "boolean",
33+
},
34+
traceSampleRate: {
35+
baseName: "trace_sample_rate",
36+
type: "number",
37+
required: true,
38+
format: "double",
39+
},
40+
additionalProperties: {
41+
baseName: "additionalProperties",
42+
type: "{ [key: string]: any; }",
43+
},
44+
};
45+
46+
/**
47+
* @ignore
48+
*/
49+
static getAttributeTypeMap(): AttributeTypeMap {
50+
return RumCrossProductSamplingCreate.attributeTypeMap;
51+
}
52+
53+
public constructor() {}
54+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import { AttributeTypeMap } from "@datadog/datadog-api-client";
2+
3+
/**
4+
* Configuration for cross-product sampling when updating a retention filter. All fields are optional for partial updates.
5+
*/
6+
export class RumCrossProductSamplingUpdate {
7+
/**
8+
* Indicates whether trace cross-product sampling is enabled.
9+
*/
10+
"traceEnabled"?: boolean;
11+
/**
12+
* The percentage (0-100) of retained sessions with ingested traces whose traces are indexed.
13+
*/
14+
"traceSampleRate"?: number;
15+
/**
16+
* A container for additional, undeclared properties.
17+
* This is a holder for any undeclared properties as specified with
18+
* the 'additionalProperties' keyword in the OAS document.
19+
*/
20+
"additionalProperties"?: { [key: string]: any };
21+
/**
22+
* @ignore
23+
*/
24+
"_unparsed"?: boolean;
25+
26+
/**
27+
* @ignore
28+
*/
29+
static readonly attributeTypeMap: AttributeTypeMap = {
30+
traceEnabled: {
31+
baseName: "trace_enabled",
32+
type: "boolean",
33+
},
34+
traceSampleRate: {
35+
baseName: "trace_sample_rate",
36+
type: "number",
37+
format: "double",
38+
},
39+
additionalProperties: {
40+
baseName: "additionalProperties",
41+
type: "{ [key: string]: any; }",
42+
},
43+
};
44+
45+
/**
46+
* @ignore
47+
*/
48+
static getAttributeTypeMap(): AttributeTypeMap {
49+
return RumCrossProductSamplingUpdate.attributeTypeMap;
50+
}
51+
52+
public constructor() {}
53+
}

services/rum_retention_filters/src/v2/models/RumRetentionFilterAttributes.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3+
import { RumCrossProductSampling } from "./RumCrossProductSampling";
34
import { RumRetentionFilterEventType } from "./RumRetentionFilterEventType";
45

56
/**
67
* The object describing attributes of a RUM retention filter.
78
*/
89
export class RumRetentionFilterAttributes {
10+
/**
11+
* Configuration for additional APM trace data retention for sessions that match this retention filter.
12+
* When a session matches the filter and is retained (based on `sample_rate`), you can configure
13+
* the percentage of retained sessions with ingested traces whose traces are indexed.
14+
*/
15+
"crossProductSampling"?: RumCrossProductSampling;
916
/**
1017
* Whether the retention filter is enabled.
1118
*/
@@ -41,6 +48,10 @@ export class RumRetentionFilterAttributes {
4148
* @ignore
4249
*/
4350
static readonly attributeTypeMap: AttributeTypeMap = {
51+
crossProductSampling: {
52+
baseName: "cross_product_sampling",
53+
type: "RumCrossProductSampling",
54+
},
4455
enabled: {
4556
baseName: "enabled",
4657
type: "boolean",

services/rum_retention_filters/src/v2/models/RumRetentionFilterCreateAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3+
import { RumCrossProductSamplingCreate } from "./RumCrossProductSamplingCreate";
34
import { RumRetentionFilterEventType } from "./RumRetentionFilterEventType";
45

56
/**
67
* The object describing attributes of a RUM retention filter to create.
78
*/
89
export class RumRetentionFilterCreateAttributes {
10+
/**
11+
* Configuration for cross-product sampling when creating a retention filter.
12+
*/
13+
"crossProductSampling"?: RumCrossProductSamplingCreate;
914
/**
1015
* Whether the retention filter is enabled.
1116
*/
@@ -41,6 +46,10 @@ export class RumRetentionFilterCreateAttributes {
4146
* @ignore
4247
*/
4348
static readonly attributeTypeMap: AttributeTypeMap = {
49+
crossProductSampling: {
50+
baseName: "cross_product_sampling",
51+
type: "RumCrossProductSamplingCreate",
52+
},
4453
enabled: {
4554
baseName: "enabled",
4655
type: "boolean",

services/rum_retention_filters/src/v2/models/RumRetentionFilterUpdateAttributes.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import { AttributeTypeMap } from "@datadog/datadog-api-client";
22

3+
import { RumCrossProductSamplingUpdate } from "./RumCrossProductSamplingUpdate";
34
import { RumRetentionFilterEventType } from "./RumRetentionFilterEventType";
45

56
/**
67
* The object describing attributes of a RUM retention filter to update.
78
*/
89
export class RumRetentionFilterUpdateAttributes {
10+
/**
11+
* Configuration for cross-product sampling when updating a retention filter. All fields are optional for partial updates.
12+
*/
13+
"crossProductSampling"?: RumCrossProductSamplingUpdate;
914
/**
1015
* Whether the retention filter is enabled.
1116
*/
@@ -41,6 +46,10 @@ export class RumRetentionFilterUpdateAttributes {
4146
* @ignore
4247
*/
4348
static readonly attributeTypeMap: AttributeTypeMap = {
49+
crossProductSampling: {
50+
baseName: "cross_product_sampling",
51+
type: "RumCrossProductSamplingUpdate",
52+
},
4453
enabled: {
4554
baseName: "enabled",
4655
type: "boolean",

0 commit comments

Comments
 (0)