Skip to content

Commit

Permalink
[Rum Metrics] Fix doc issue with the API. (#1886)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Nov 4, 2024
1 parent 2c1eb53 commit f06c759
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 36 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-04 19:34:48.645471",
"spec_repo_commit": "82ea89c4"
"regenerated": "2024-11-04 20:35:51.742612",
"spec_repo_commit": "0a78d630"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-04 19:34:48.664639",
"spec_repo_commit": "82ea89c4"
"regenerated": "2024-11-04 20:35:51.761313",
"spec_repo_commit": "0a78d630"
}
}
}
37 changes: 20 additions & 17 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19302,8 +19302,10 @@ components:
include_percentiles:
$ref: '#/components/schemas/RumMetricComputeIncludePercentiles'
path:
description: The path to the value the rum-based metric will aggregate on
(only used if the aggregation type is a "distribution").
description: 'The path to the value the rum-based metric will aggregate
on.

Only present when `aggregation_type` is `distribution`.'
example: '@duration'
type: string
required:
Expand All @@ -19323,7 +19325,7 @@ components:
description: 'Toggle to include or exclude percentile aggregations for distribution
metrics.

Only present when the `aggregation_type` is `distribution`.'
Only present when `aggregation_type` is `distribution`.'
example: true
type: boolean
RumMetricCreateAttributes:
Expand Down Expand Up @@ -19394,8 +19396,7 @@ components:
properties:
query:
default: '*'
description: The search query - following the RUM search syntax. Must include
an @type facet query.
description: The search query - following the RUM search syntax.
example: '@service:web-ui: '
type: string
required:
Expand All @@ -19410,8 +19411,8 @@ components:
example: '@browser.name'
type: string
tag_name:
description: Eventual name of the tag that gets created. By default, the
path attribute is used as the tag name.
description: Eventual name of the tag that gets created. By default, `path`
is used as the tag name.
example: browser_name
type: string
required:
Expand Down Expand Up @@ -19452,8 +19453,10 @@ components:
include_percentiles:
$ref: '#/components/schemas/RumMetricComputeIncludePercentiles'
path:
description: The path to the value the rum-based metric will aggregate on
(only used if the aggregation type is a "distribution").
description: 'The path to the value the rum-based metric will aggregate
on.

Only present when `aggregation_type` is `distribution`.'
example: '@duration'
type: string
type: object
Expand Down Expand Up @@ -19485,14 +19488,14 @@ components:
example: '@http.status_code'
type: string
tag_name:
description: Eventual name of the tag that gets created. By default, the
path attribute is used as the tag name.
description: Eventual name of the tag that gets created. By default, `path`
is used as the tag name.
example: status_code
type: string
type: object
RumMetricResponseUniqueness:
description: The rule to count updatable events. Is only set if "event_type"
is "sessions" or "views".
description: The rule to count updatable events. Is only set if `event_type`
is `session` or `view`.
properties:
when:
$ref: '#/components/schemas/RumMetricUniquenessWhen'
Expand All @@ -19507,17 +19510,17 @@ components:
x-enum-varnames:
- RUM_METRICS
RumMetricUniqueness:
description: The rule to count updatable events. Is only set if "event_type"
is "sessions" or "views".
description: The rule to count updatable events. Is only set if `event_type`
is `sessions` or `views`.
properties:
when:
$ref: '#/components/schemas/RumMetricUniquenessWhen'
required:
- when
type: object
RumMetricUniquenessWhen:
description: When to count updatable events. "match" when the event is first
seen, or "end" when the event is complete.
description: When to count updatable events. `match` when the event is first
seen, or `end` when the event is complete.
enum:
- match
- end
Expand Down
5 changes: 3 additions & 2 deletions packages/datadog-api-client-v2/models/RumMetricCompute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ export class RumMetricCompute {
"aggregationType": RumMetricComputeAggregationType;
/**
* Toggle to include or exclude percentile aggregations for distribution metrics.
* Only present when the `aggregation_type` is `distribution`.
* Only present when `aggregation_type` is `distribution`.
*/
"includePercentiles"?: boolean;
/**
* The path to the value the rum-based metric will aggregate on (only used if the aggregation type is a "distribution").
* The path to the value the rum-based metric will aggregate on.
* Only present when `aggregation_type` is `distribution`.
*/
"path"?: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class RumMetricCreateAttributes {
*/
"groupBy"?: Array<RumMetricGroupBy>;
/**
* The rule to count updatable events. Is only set if "event_type" is "sessions" or "views".
* The rule to count updatable events. Is only set if `event_type` is `sessions` or `views`.
*/
"uniqueness"?: RumMetricUniqueness;

Expand Down
2 changes: 1 addition & 1 deletion packages/datadog-api-client-v2/models/RumMetricFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
*/
export class RumMetricFilter {
/**
* The search query - following the RUM search syntax. Must include an @type facet query.
* The search query - following the RUM search syntax.
*/
"query": string;

Expand Down
2 changes: 1 addition & 1 deletion packages/datadog-api-client-v2/models/RumMetricGroupBy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class RumMetricGroupBy {
*/
"path": string;
/**
* Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
* Eventual name of the tag that gets created. By default, `path` is used as the tag name.
*/
"tagName"?: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class RumMetricResponseAttributes {
*/
"groupBy"?: Array<RumMetricResponseGroupBy>;
/**
* The rule to count updatable events. Is only set if "event_type" is "sessions" or "views".
* The rule to count updatable events. Is only set if `event_type` is `session` or `view`.
*/
"uniqueness"?: RumMetricResponseUniqueness;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ export class RumMetricResponseCompute {
"aggregationType"?: RumMetricComputeAggregationType;
/**
* Toggle to include or exclude percentile aggregations for distribution metrics.
* Only present when the `aggregation_type` is `distribution`.
* Only present when `aggregation_type` is `distribution`.
*/
"includePercentiles"?: boolean;
/**
* The path to the value the rum-based metric will aggregate on (only used if the aggregation type is a "distribution").
* The path to the value the rum-based metric will aggregate on.
* Only present when `aggregation_type` is `distribution`.
*/
"path"?: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class RumMetricResponseGroupBy {
*/
"path"?: string;
/**
* Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
* Eventual name of the tag that gets created. By default, `path` is used as the tag name.
*/
"tagName"?: string;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { RumMetricUniquenessWhen } from "./RumMetricUniquenessWhen";
import { AttributeTypeMap } from "../../datadog-api-client-common/util";

/**
* The rule to count updatable events. Is only set if "event_type" is "sessions" or "views".
* The rule to count updatable events. Is only set if `event_type` is `session` or `view`.
*/
export class RumMetricResponseUniqueness {
/**
* When to count updatable events. "match" when the event is first seen, or "end" when the event is complete.
* When to count updatable events. `match` when the event is first seen, or `end` when the event is complete.
*/
"when"?: RumMetricUniquenessWhen;

Expand Down
4 changes: 2 additions & 2 deletions packages/datadog-api-client-v2/models/RumMetricUniqueness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { RumMetricUniquenessWhen } from "./RumMetricUniquenessWhen";
import { AttributeTypeMap } from "../../datadog-api-client-common/util";

/**
* The rule to count updatable events. Is only set if "event_type" is "sessions" or "views".
* The rule to count updatable events. Is only set if `event_type` is `sessions` or `views`.
*/
export class RumMetricUniqueness {
/**
* When to count updatable events. "match" when the event is first seen, or "end" when the event is complete.
* When to count updatable events. `match` when the event is first seen, or `end` when the event is complete.
*/
"when": RumMetricUniquenessWhen;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { UnparsedObject } from "../../datadog-api-client-common/util";

/**
* When to count updatable events. "match" when the event is first seen, or "end" when the event is complete.
* When to count updatable events. `match` when the event is first seen, or `end` when the event is complete.
*/

export type RumMetricUniquenessWhen =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
export class RumMetricUpdateCompute {
/**
* Toggle to include or exclude percentile aggregations for distribution metrics.
* Only present when the `aggregation_type` is `distribution`.
* Only present when `aggregation_type` is `distribution`.
*/
"includePercentiles"?: boolean;

Expand Down

0 comments on commit f06c759

Please sign in to comment.