Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add median aggregation functions to RUM and logs #612

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2",
"regenerated": "2022-04-04 17:26:12.289226",
"spec_repo_commit": "7e16a5c4"
"regenerated": "2022-04-05 10:17:40.468760",
"spec_repo_commit": "9a0922b9"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-04-04 17:26:12.306856",
"spec_repo_commit": "7e16a5c4"
"regenerated": "2022-04-05 10:17:40.484562",
"spec_repo_commit": "9a0922b9"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2743,6 +2743,7 @@ components:
- min
- max
- avg
- median
example: pc90
type: string
x-enum-varnames:
Expand All @@ -2757,6 +2758,7 @@ components:
- MIN
- MAX
- AVG
- MEDIAN
LogsArchive:
description: The logs archive.
properties:
Expand Down Expand Up @@ -4606,6 +4608,7 @@ components:
- min
- max
- avg
- median
example: pc90
type: string
x-enum-varnames:
Expand All @@ -4620,6 +4623,7 @@ components:
- MIN
- MAX
- AVG
- MEDIAN
RUMAnalyticsAggregateResponse:
description: The response object for the RUM events aggregate API endpoint.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type LogsAggregationFunction =
| typeof SUM
| typeof MIN
| typeof MAX
| typeof AVG;
| typeof AVG
| typeof MEDIAN;
export const COUNT = "count";
export const CARDINALITY = "cardinality";
export const PERCENTILE_75 = "pc75";
Expand All @@ -31,3 +32,4 @@ export const SUM = "sum";
export const MIN = "min";
export const MAX = "max";
export const AVG = "avg";
export const MEDIAN = "median";
2 changes: 2 additions & 0 deletions packages/datadog-api-client-v2/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ const enumsMap: { [key: string]: any[] } = {
"min",
"max",
"avg",
"median",
],
LogsArchiveDestinationAzureType: ["azure"],
LogsArchiveDestinationGCSType: ["gcs"],
Expand Down Expand Up @@ -465,6 +466,7 @@ const enumsMap: { [key: string]: any[] } = {
"min",
"max",
"avg",
"median",
],
RUMComputeType: ["timeseries", "total"],
RUMEventType: ["rum"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export type RUMAggregationFunction =
| typeof SUM
| typeof MIN
| typeof MAX
| typeof AVG;
| typeof AVG
| typeof MEDIAN;
export const COUNT = "count";
export const CARDINALITY = "cardinality";
export const PERCENTILE_75 = "pc75";
Expand All @@ -31,3 +32,4 @@ export const SUM = "sum";
export const MIN = "min";
export const MAX = "max";
export const AVG = "avg";
export const MEDIAN = "median";