Skip to content

Commit 661d786

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[Rum Metrics] Fix doc issue with the API. (#2242)
* Regenerate client from commit 0a78d630 of spec repo * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent e7c66d6 commit 661d786

13 files changed

+41
-36
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": "2024-11-04 19:34:53.527753",
8-
"spec_repo_commit": "82ea89c4"
7+
"regenerated": "2024-11-04 20:35:53.442516",
8+
"spec_repo_commit": "0a78d630"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-04 19:34:53.546331",
13-
"spec_repo_commit": "82ea89c4"
12+
"regenerated": "2024-11-04 20:35:53.460358",
13+
"spec_repo_commit": "0a78d630"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19302,8 +19302,10 @@ components:
1930219302
include_percentiles:
1930319303
$ref: '#/components/schemas/RumMetricComputeIncludePercentiles'
1930419304
path:
19305-
description: The path to the value the rum-based metric will aggregate on
19306-
(only used if the aggregation type is a "distribution").
19305+
description: 'The path to the value the rum-based metric will aggregate
19306+
on.
19307+
19308+
Only present when `aggregation_type` is `distribution`.'
1930719309
example: '@duration'
1930819310
type: string
1930919311
required:
@@ -19323,7 +19325,7 @@ components:
1932319325
description: 'Toggle to include or exclude percentile aggregations for distribution
1932419326
metrics.
1932519327

19326-
Only present when the `aggregation_type` is `distribution`.'
19328+
Only present when `aggregation_type` is `distribution`.'
1932719329
example: true
1932819330
type: boolean
1932919331
RumMetricCreateAttributes:
@@ -19394,8 +19396,7 @@ components:
1939419396
properties:
1939519397
query:
1939619398
default: '*'
19397-
description: The search query - following the RUM search syntax. Must include
19398-
an @type facet query.
19399+
description: The search query - following the RUM search syntax.
1939919400
example: '@service:web-ui: '
1940019401
type: string
1940119402
required:
@@ -19410,8 +19411,8 @@ components:
1941019411
example: '@browser.name'
1941119412
type: string
1941219413
tag_name:
19413-
description: Eventual name of the tag that gets created. By default, the
19414-
path attribute is used as the tag name.
19414+
description: Eventual name of the tag that gets created. By default, `path`
19415+
is used as the tag name.
1941519416
example: browser_name
1941619417
type: string
1941719418
required:
@@ -19452,8 +19453,10 @@ components:
1945219453
include_percentiles:
1945319454
$ref: '#/components/schemas/RumMetricComputeIncludePercentiles'
1945419455
path:
19455-
description: The path to the value the rum-based metric will aggregate on
19456-
(only used if the aggregation type is a "distribution").
19456+
description: 'The path to the value the rum-based metric will aggregate
19457+
on.
19458+
19459+
Only present when `aggregation_type` is `distribution`.'
1945719460
example: '@duration'
1945819461
type: string
1945919462
type: object
@@ -19485,14 +19488,14 @@ components:
1948519488
example: '@http.status_code'
1948619489
type: string
1948719490
tag_name:
19488-
description: Eventual name of the tag that gets created. By default, the
19489-
path attribute is used as the tag name.
19491+
description: Eventual name of the tag that gets created. By default, `path`
19492+
is used as the tag name.
1949019493
example: status_code
1949119494
type: string
1949219495
type: object
1949319496
RumMetricResponseUniqueness:
19494-
description: The rule to count updatable events. Is only set if "event_type"
19495-
is "sessions" or "views".
19497+
description: The rule to count updatable events. Is only set if `event_type`
19498+
is `session` or `view`.
1949619499
properties:
1949719500
when:
1949819501
$ref: '#/components/schemas/RumMetricUniquenessWhen'
@@ -19507,17 +19510,17 @@ components:
1950719510
x-enum-varnames:
1950819511
- RUM_METRICS
1950919512
RumMetricUniqueness:
19510-
description: The rule to count updatable events. Is only set if "event_type"
19511-
is "sessions" or "views".
19513+
description: The rule to count updatable events. Is only set if `event_type`
19514+
is `sessions` or `views`.
1951219515
properties:
1951319516
when:
1951419517
$ref: '#/components/schemas/RumMetricUniquenessWhen'
1951519518
required:
1951619519
- when
1951719520
type: object
1951819521
RumMetricUniquenessWhen:
19519-
description: When to count updatable events. "match" when the event is first
19520-
seen, or "end" when the event is complete.
19522+
description: When to count updatable events. `match` when the event is first
19523+
seen, or `end` when the event is complete.
1952119524
enum:
1952219525
- match
1952319526
- end

src/datadog_api_client/v2/model/rum_metric_compute.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ def __init__(
4848
:type aggregation_type: RumMetricComputeAggregationType
4949
5050
:param include_percentiles: Toggle to include or exclude percentile aggregations for distribution metrics.
51-
Only present when the ``aggregation_type`` is ``distribution``.
51+
Only present when ``aggregation_type`` is ``distribution``.
5252
:type include_percentiles: bool, optional
5353
54-
:param path: The path to the value the rum-based metric will aggregate on (only used if the aggregation type is a "distribution").
54+
:param path: The path to the value the rum-based metric will aggregate on.
55+
Only present when ``aggregation_type`` is ``distribution``.
5556
:type path: str, optional
5657
"""
5758
if include_percentiles is not unset:

src/datadog_api_client/v2/model/rum_metric_create_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(
7070
:param group_by: The rules for the group by.
7171
:type group_by: [RumMetricGroupBy], optional
7272
73-
:param uniqueness: The rule to count updatable events. Is only set if "event_type" is "sessions" or "views".
73+
:param uniqueness: The rule to count updatable events. Is only set if ``event_type`` is ``sessions`` or ``views``.
7474
:type uniqueness: RumMetricUniqueness, optional
7575
"""
7676
if filter is not unset:

src/datadog_api_client/v2/model/rum_metric_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self_, **kwargs):
2525
"""
2626
The rum-based metric filter. Events matching this filter will be aggregated in this metric.
2727
28-
:param query: The search query - following the RUM search syntax. Must include an @type facet query.
28+
:param query: The search query - following the RUM search syntax.
2929
:type query: str
3030
"""
3131
super().__init__(kwargs)

src/datadog_api_client/v2/model/rum_metric_group_by.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self_, path: str, tag_name: Union[str, UnsetType] = unset, **kwargs
3333
:param path: The path to the value the rum-based metric will be aggregated over.
3434
:type path: str
3535
36-
:param tag_name: Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
36+
:param tag_name: Eventual name of the tag that gets created. By default, ``path`` is used as the tag name.
3737
:type tag_name: str, optional
3838
"""
3939
if tag_name is not unset:

src/datadog_api_client/v2/model/rum_metric_response_attributes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(
7070
:param group_by: The rules for the group by.
7171
:type group_by: [RumMetricResponseGroupBy], optional
7272
73-
:param uniqueness: The rule to count updatable events. Is only set if "event_type" is "sessions" or "views".
73+
:param uniqueness: The rule to count updatable events. Is only set if ``event_type`` is ``session`` or ``view``.
7474
:type uniqueness: RumMetricResponseUniqueness, optional
7575
"""
7676
if compute is not unset:

src/datadog_api_client/v2/model/rum_metric_response_compute.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ def __init__(
4848
:type aggregation_type: RumMetricComputeAggregationType, optional
4949
5050
:param include_percentiles: Toggle to include or exclude percentile aggregations for distribution metrics.
51-
Only present when the ``aggregation_type`` is ``distribution``.
51+
Only present when ``aggregation_type`` is ``distribution``.
5252
:type include_percentiles: bool, optional
5353
54-
:param path: The path to the value the rum-based metric will aggregate on (only used if the aggregation type is a "distribution").
54+
:param path: The path to the value the rum-based metric will aggregate on.
55+
Only present when ``aggregation_type`` is ``distribution``.
5556
:type path: str, optional
5657
"""
5758
if aggregation_type is not unset:

src/datadog_api_client/v2/model/rum_metric_response_group_by.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self_, path: Union[str, UnsetType] = unset, tag_name: Union[str, Un
3333
:param path: The path to the value the rum-based metric will be aggregated over.
3434
:type path: str, optional
3535
36-
:param tag_name: Eventual name of the tag that gets created. By default, the path attribute is used as the tag name.
36+
:param tag_name: Eventual name of the tag that gets created. By default, ``path`` is used as the tag name.
3737
:type tag_name: str, optional
3838
"""
3939
if path is not unset:

src/datadog_api_client/v2/model/rum_metric_response_uniqueness.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def openapi_types(_):
3232

3333
def __init__(self_, when: Union[RumMetricUniquenessWhen, UnsetType] = unset, **kwargs):
3434
"""
35-
The rule to count updatable events. Is only set if "event_type" is "sessions" or "views".
35+
The rule to count updatable events. Is only set if ``event_type`` is ``session`` or ``view``.
3636
37-
:param when: When to count updatable events. "match" when the event is first seen, or "end" when the event is complete.
37+
:param when: When to count updatable events. ``match`` when the event is first seen, or ``end`` when the event is complete.
3838
:type when: RumMetricUniquenessWhen, optional
3939
"""
4040
if when is not unset:

0 commit comments

Comments
 (0)