Skip to content

Commit d473ef2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 93dbed8 of spec repo (#110)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent f44560c commit d473ef2

File tree

5 files changed

+44
-18
lines changed

5 files changed

+44
-18
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.4.1.dev6",
7-
"regenerated": "2021-04-28 10:13:04.327129",
8-
"spec_repo_commit": "75ca6ae"
7+
"regenerated": "2021-04-28 12:51:26.260167",
8+
"spec_repo_commit": "93dbed8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-04-28 10:13:09.611597",
13-
"spec_repo_commit": "75ca6ae"
12+
"regenerated": "2021-04-28 12:51:31.910529",
13+
"spec_repo_commit": "93dbed8"
1414
}
1515
}
1616
}

packages/datadog-api-client-v1/apis/EventsApi.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,18 @@ export class EventsApiRequestFactory extends BaseAPIRequestFactory {
116116
}
117117

118118
/**
119-
* The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results.
119+
* The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results. You can also use the page parameter to specify which set of `1000` results to return.
120120
* Query the event stream
121121
* @param start POSIX timestamp.
122122
* @param end POSIX timestamp.
123123
* @param priority Priority of your events, either &#x60;low&#x60; or &#x60;normal&#x60;.
124124
* @param sources A comma separated string of sources.
125125
* @param tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope.
126-
* @param unaggregated Set unaggregated to &#x60;true&#x60; to return all events within the specified [&#x60;start&#x60;,&#x60;end&#x60;] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won&#39;t be available in the output.
126+
* @param unaggregated Set unaggregated to &#x60;true&#x60; to return all events within the specified [&#x60;start&#x60;,&#x60;end&#x60;] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won&#39;t be available in the output. Aggregated events with &#x60;is_aggregate&#x3D;true&#x60; in the response will still be returned unless exclude_aggregate is set to &#x60;true.&#x60;
127+
* @param excludeAggregate Set &#x60;exclude_aggregate&#x60; to &#x60;true&#x60; to only return unaggregated events where &#x60;is_aggregate&#x3D;false&#x60; in the response. If the &#x60;exclude_aggregate&#x60; parameter is set to &#x60;true&#x60;, then the unaggregated parameter is ignored and will be &#x60;true&#x60; by default.
128+
* @param page By default 1000 results are returned per request. Set page to the number of the page to return with &#x60;0&#x60; being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to &#x60;true.&#x60;
127129
*/
128-
public async listEvents(start: number, end: number, priority?: EventPriority, sources?: string, tags?: string, unaggregated?: boolean, options?: Configuration): Promise<RequestContext> {
130+
public async listEvents(start: number, end: number, priority?: EventPriority, sources?: string, tags?: string, unaggregated?: boolean, excludeAggregate?: boolean, page?: number, options?: Configuration): Promise<RequestContext> {
129131
let config = options || this.configuration;
130132

131133
// verify required parameter 'start' is not null or undefined
@@ -144,6 +146,8 @@ export class EventsApiRequestFactory extends BaseAPIRequestFactory {
144146

145147

146148

149+
150+
147151
// Path Params
148152
const localVarPath = '/api/v1/events';
149153

@@ -171,6 +175,12 @@ export class EventsApiRequestFactory extends BaseAPIRequestFactory {
171175
if (unaggregated !== undefined) {
172176
requestContext.setQueryParam("unaggregated", ObjectSerializer.serialize(unaggregated, "boolean", ""));
173177
}
178+
if (excludeAggregate !== undefined) {
179+
requestContext.setQueryParam("exclude_aggregate", ObjectSerializer.serialize(excludeAggregate, "boolean", ""));
180+
}
181+
if (page !== undefined) {
182+
requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", "int32"));
183+
}
174184

175185
// Header Params
176186

packages/datadog-api-client-v1/types/ObjectParamAPI.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,11 +1370,23 @@ export interface EventsApiListEventsRequest {
13701370
*/
13711371
tags?: string
13721372
/**
1373-
* Set unaggregated to &#x60;true&#x60; to return all events within the specified [&#x60;start&#x60;,&#x60;end&#x60;] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won&#39;t be available in the output.
1373+
* Set unaggregated to &#x60;true&#x60; to return all events within the specified [&#x60;start&#x60;,&#x60;end&#x60;] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won&#39;t be available in the output. Aggregated events with &#x60;is_aggregate&#x3D;true&#x60; in the response will still be returned unless exclude_aggregate is set to &#x60;true.&#x60;
13741374
* @type boolean
13751375
* @memberof EventsApilistEvents
13761376
*/
13771377
unaggregated?: boolean
1378+
/**
1379+
* Set &#x60;exclude_aggregate&#x60; to &#x60;true&#x60; to only return unaggregated events where &#x60;is_aggregate&#x3D;false&#x60; in the response. If the &#x60;exclude_aggregate&#x60; parameter is set to &#x60;true&#x60;, then the unaggregated parameter is ignored and will be &#x60;true&#x60; by default.
1380+
* @type boolean
1381+
* @memberof EventsApilistEvents
1382+
*/
1383+
excludeAggregate?: boolean
1384+
/**
1385+
* By default 1000 results are returned per request. Set page to the number of the page to return with &#x60;0&#x60; being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to &#x60;true.&#x60;
1386+
* @type number
1387+
* @memberof EventsApilistEvents
1388+
*/
1389+
page?: number
13781390
}
13791391

13801392
export class ObjectEventsApi {
@@ -1403,12 +1415,12 @@ export class ObjectEventsApi {
14031415
}
14041416

14051417
/**
1406-
* The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results.
1418+
* The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results. You can also use the page parameter to specify which set of `1000` results to return.
14071419
* Query the event stream
14081420
* @param param the request object
14091421
*/
14101422
public listEvents(param: EventsApiListEventsRequest, options?: Configuration): Promise<EventListResponse> {
1411-
return this.api.listEvents(param.start, param.end, param.priority, param.sources, param.tags, param.unaggregated, options).toPromise();
1423+
return this.api.listEvents(param.start, param.end, param.priority, param.sources, param.tags, param.unaggregated, param.excludeAggregate, param.page, options).toPromise();
14121424
}
14131425

14141426
}

packages/datadog-api-client-v1/types/ObservableAPI.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,17 +1649,19 @@ export class ObservableEventsApi {
16491649
}
16501650

16511651
/**
1652-
* The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results.
1652+
* The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results. You can also use the page parameter to specify which set of `1000` results to return.
16531653
* Query the event stream
16541654
* @param start POSIX timestamp.
16551655
* @param end POSIX timestamp.
16561656
* @param priority Priority of your events, either &#x60;low&#x60; or &#x60;normal&#x60;.
16571657
* @param sources A comma separated string of sources.
16581658
* @param tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope.
1659-
* @param unaggregated Set unaggregated to &#x60;true&#x60; to return all events within the specified [&#x60;start&#x60;,&#x60;end&#x60;] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won&#39;t be available in the output.
1659+
* @param unaggregated Set unaggregated to &#x60;true&#x60; to return all events within the specified [&#x60;start&#x60;,&#x60;end&#x60;] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won&#39;t be available in the output. Aggregated events with &#x60;is_aggregate&#x3D;true&#x60; in the response will still be returned unless exclude_aggregate is set to &#x60;true.&#x60;
1660+
* @param excludeAggregate Set &#x60;exclude_aggregate&#x60; to &#x60;true&#x60; to only return unaggregated events where &#x60;is_aggregate&#x3D;false&#x60; in the response. If the &#x60;exclude_aggregate&#x60; parameter is set to &#x60;true&#x60;, then the unaggregated parameter is ignored and will be &#x60;true&#x60; by default.
1661+
* @param page By default 1000 results are returned per request. Set page to the number of the page to return with &#x60;0&#x60; being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to &#x60;true.&#x60;
16601662
*/
1661-
public listEvents(start: number, end: number, priority?: EventPriority, sources?: string, tags?: string, unaggregated?: boolean, options?: Configuration): Observable<EventListResponse> {
1662-
const requestContextPromise = this.requestFactory.listEvents(start, end, priority, sources, tags, unaggregated, options);
1663+
public listEvents(start: number, end: number, priority?: EventPriority, sources?: string, tags?: string, unaggregated?: boolean, excludeAggregate?: boolean, page?: number, options?: Configuration): Observable<EventListResponse> {
1664+
const requestContextPromise = this.requestFactory.listEvents(start, end, priority, sources, tags, unaggregated, excludeAggregate, page, options);
16631665

16641666
// build promise chain
16651667
let middlewarePreObservable = from_<RequestContext>(requestContextPromise);

packages/datadog-api-client-v1/types/PromiseAPI.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,17 +1078,19 @@ export class PromiseEventsApi {
10781078
}
10791079

10801080
/**
1081-
* The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results.
1081+
* The event stream can be queried and filtered by time, priority, sources and tags. **Notes**: - If the event you’re querying contains markdown formatting of any kind, you may see characters such as `%`,`\\`,`n` in your output. - This endpoint returns a maximum of `1000` most recent results. To return additional results, identify the last timestamp of the last result and set that as the `end` query time to paginate the results. You can also use the page parameter to specify which set of `1000` results to return.
10821082
* Query the event stream
10831083
* @param start POSIX timestamp.
10841084
* @param end POSIX timestamp.
10851085
* @param priority Priority of your events, either &#x60;low&#x60; or &#x60;normal&#x60;.
10861086
* @param sources A comma separated string of sources.
10871087
* @param tags A comma separated list indicating what tags, if any, should be used to filter the list of monitors by scope.
1088-
* @param unaggregated Set unaggregated to &#x60;true&#x60; to return all events within the specified [&#x60;start&#x60;,&#x60;end&#x60;] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won&#39;t be available in the output.
1088+
* @param unaggregated Set unaggregated to &#x60;true&#x60; to return all events within the specified [&#x60;start&#x60;,&#x60;end&#x60;] timeframe. Otherwise if an event is aggregated to a parent event with a timestamp outside of the timeframe, it won&#39;t be available in the output. Aggregated events with &#x60;is_aggregate&#x3D;true&#x60; in the response will still be returned unless exclude_aggregate is set to &#x60;true.&#x60;
1089+
* @param excludeAggregate Set &#x60;exclude_aggregate&#x60; to &#x60;true&#x60; to only return unaggregated events where &#x60;is_aggregate&#x3D;false&#x60; in the response. If the &#x60;exclude_aggregate&#x60; parameter is set to &#x60;true&#x60;, then the unaggregated parameter is ignored and will be &#x60;true&#x60; by default.
1090+
* @param page By default 1000 results are returned per request. Set page to the number of the page to return with &#x60;0&#x60; being the first page. The page parameter can only be used when either unaggregated or exclude_aggregate is set to &#x60;true.&#x60;
10891091
*/
1090-
public listEvents(start: number, end: number, priority?: EventPriority, sources?: string, tags?: string, unaggregated?: boolean, options?: Configuration): Promise<EventListResponse> {
1091-
const result = this.api.listEvents(start, end, priority, sources, tags, unaggregated, options);
1092+
public listEvents(start: number, end: number, priority?: EventPriority, sources?: string, tags?: string, unaggregated?: boolean, excludeAggregate?: boolean, page?: number, options?: Configuration): Promise<EventListResponse> {
1093+
const result = this.api.listEvents(start, end, priority, sources, tags, unaggregated, excludeAggregate, page, options);
10921094
return result.toPromise();
10931095
}
10941096

0 commit comments

Comments
 (0)