-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathCIAppPipelinesGroupBy.ts
99 lines (92 loc) · 2.46 KB
/
CIAppPipelinesGroupBy.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/**
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { CIAppAggregateSort } from "./CIAppAggregateSort";
import { CIAppGroupByHistogram } from "./CIAppGroupByHistogram";
import { CIAppGroupByMissing } from "./CIAppGroupByMissing";
import { CIAppGroupByTotal } from "./CIAppGroupByTotal";
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
/**
* A group-by rule.
*/
export class CIAppPipelinesGroupBy {
/**
* The name of the facet to use (required).
*/
"facet": string;
/**
* Used to perform a histogram computation (only for measure facets).
* At most, 100 buckets are allowed, the number of buckets is `(max - min)/interval`.
*/
"histogram"?: CIAppGroupByHistogram;
/**
* The maximum buckets to return for this group-by.
*/
"limit"?: number;
/**
* The value to use for logs that don't have the facet used to group-by.
*/
"missing"?: CIAppGroupByMissing;
/**
* A sort rule. The `aggregation` field is required when `type` is `measure`.
*/
"sort"?: CIAppAggregateSort;
/**
* A resulting object to put the given computes in over all the matching records.
*/
"total"?: CIAppGroupByTotal;
/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
* the 'additionalProperties' keyword in the OAS document.
*/
"additionalProperties"?: { [key: string]: any };
/**
* @ignore
*/
"_unparsed"?: boolean;
/**
* @ignore
*/
static readonly attributeTypeMap: AttributeTypeMap = {
facet: {
baseName: "facet",
type: "string",
required: true,
},
histogram: {
baseName: "histogram",
type: "CIAppGroupByHistogram",
},
limit: {
baseName: "limit",
type: "number",
format: "int64",
},
missing: {
baseName: "missing",
type: "CIAppGroupByMissing",
},
sort: {
baseName: "sort",
type: "CIAppAggregateSort",
},
total: {
baseName: "total",
type: "CIAppGroupByTotal",
},
additionalProperties: {
baseName: "additionalProperties",
type: "any",
},
};
/**
* @ignore
*/
static getAttributeTypeMap(): AttributeTypeMap {
return CIAppPipelinesGroupBy.attributeTypeMap;
}
public constructor() {}
}