@datadog/datadog-api-client 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/packages/datadog-api-client-common/configuration.js +3 -0
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +34 -7
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +34 -7
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.d.ts +15 -5
- package/dist/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.js +9 -1
- package/dist/packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +493 -0
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +2 -0
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +2 -0
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +76 -8
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +170 -20
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +26 -1
- package/dist/packages/datadog-api-client-v2/index.js +51 -8
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/Event.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.d.ts +110 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js +103 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventPriority.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/EventPriority.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/EventPriority.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponse.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponse.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponseAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponseAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/EventResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventStatusType.d.ts +14 -0
- package/dist/packages/datadog-api-client-v2/models/EventStatusType.js +17 -0
- package/dist/packages/datadog-api-client-v2/models/EventStatusType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/EventType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/EventType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListRequest.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListRequest.js +40 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponse.d.ts +39 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponse.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponseLinks.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponseLinks.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/EventsListResponseLinks.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryFilter.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryFilter.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryFilter.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryOptions.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryOptions.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/EventsQueryOptions.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsRequestPage.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/EventsRequestPage.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/EventsRequestPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadata.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadata.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/EventsResponseMetadataPage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsSort.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/EventsSort.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/EventsSort.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/EventsWarning.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/EventsWarning.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/EventsWarning.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsage.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsage.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsage.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageAttributes.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageAttributes.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMeasurement.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMetadata.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMetadata.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageMetadata.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsagePagination.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsagePagination.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsagePagination.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageResponse.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/HourlyUsageResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricResource.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/MonitorType.d.ts +68 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js +73 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +53 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -8,27 +8,37 @@ import { TreeMapGroupBy } from "./TreeMapGroupBy";
|
|
|
8
8
|
import { TreeMapSizeBy } from "./TreeMapSizeBy";
|
|
9
9
|
import { TreeMapWidgetDefinitionType } from "./TreeMapWidgetDefinitionType";
|
|
10
10
|
import { TreeMapWidgetRequest } from "./TreeMapWidgetRequest";
|
|
11
|
+
import { WidgetCustomLink } from "./WidgetCustomLink";
|
|
12
|
+
import { WidgetTime } from "./WidgetTime";
|
|
11
13
|
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
|
|
12
14
|
/**
|
|
13
|
-
* The treemap visualization
|
|
15
|
+
* The treemap visualization enables you to display hierarchical and nested data. It is well suited for queries that describe part-whole relationships, such as resource usage by availability zone, data center, or team.
|
|
14
16
|
*/
|
|
15
17
|
export declare class TreeMapWidgetDefinition {
|
|
16
18
|
/**
|
|
17
|
-
* The attribute used to determine color in the widget.
|
|
19
|
+
* (deprecated) The attribute formerly used to determine color in the widget.
|
|
18
20
|
*/
|
|
19
21
|
"colorBy"?: TreeMapColorBy;
|
|
20
22
|
/**
|
|
21
|
-
*
|
|
23
|
+
* List of custom links.
|
|
24
|
+
*/
|
|
25
|
+
"customLinks"?: Array<WidgetCustomLink>;
|
|
26
|
+
/**
|
|
27
|
+
* (deprecated) The attribute formerly used to group elements in the widget.
|
|
22
28
|
*/
|
|
23
29
|
"groupBy"?: TreeMapGroupBy;
|
|
24
30
|
/**
|
|
25
|
-
* List of
|
|
31
|
+
* List of treemap widget requests.
|
|
26
32
|
*/
|
|
27
33
|
"requests": [TreeMapWidgetRequest];
|
|
28
34
|
/**
|
|
29
|
-
* The attribute used to determine size in the widget.
|
|
35
|
+
* (deprecated) The attribute formerly used to determine size in the widget.
|
|
30
36
|
*/
|
|
31
37
|
"sizeBy"?: TreeMapSizeBy;
|
|
38
|
+
/**
|
|
39
|
+
* Time setting for the widget.
|
|
40
|
+
*/
|
|
41
|
+
"time"?: WidgetTime;
|
|
32
42
|
/**
|
|
33
43
|
* Title of your widget.
|
|
34
44
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TreeMapWidgetDefinition = void 0;
|
|
4
4
|
/**
|
|
5
|
-
* The treemap visualization
|
|
5
|
+
* The treemap visualization enables you to display hierarchical and nested data. It is well suited for queries that describe part-whole relationships, such as resource usage by availability zone, data center, or team.
|
|
6
6
|
*/
|
|
7
7
|
var TreeMapWidgetDefinition = /** @class */ (function () {
|
|
8
8
|
function TreeMapWidgetDefinition() {
|
|
@@ -21,6 +21,10 @@ var TreeMapWidgetDefinition = /** @class */ (function () {
|
|
|
21
21
|
baseName: "color_by",
|
|
22
22
|
type: "TreeMapColorBy",
|
|
23
23
|
},
|
|
24
|
+
customLinks: {
|
|
25
|
+
baseName: "custom_links",
|
|
26
|
+
type: "Array<WidgetCustomLink>",
|
|
27
|
+
},
|
|
24
28
|
groupBy: {
|
|
25
29
|
baseName: "group_by",
|
|
26
30
|
type: "TreeMapGroupBy",
|
|
@@ -34,6 +38,10 @@ var TreeMapWidgetDefinition = /** @class */ (function () {
|
|
|
34
38
|
baseName: "size_by",
|
|
35
39
|
type: "TreeMapSizeBy",
|
|
36
40
|
},
|
|
41
|
+
time: {
|
|
42
|
+
baseName: "time",
|
|
43
|
+
type: "WidgetTime",
|
|
44
|
+
},
|
|
37
45
|
title: {
|
|
38
46
|
baseName: "title",
|
|
39
47
|
type: "string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeMapWidgetDefinition.js","sourceRoot":"","sources":["../../../../packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"TreeMapWidgetDefinition.js","sourceRoot":"","sources":["../../../../packages/datadog-api-client-v1/models/TreeMapWidgetDefinition.ts"],"names":[],"mappings":";;;AAeA;;GAEG;AACH;IAsFE;IAAsB,CAAC;IAPvB;;OAEG;IACI,2CAAmB,GAA1B;QACE,OAAO,uBAAuB,CAAC,gBAAgB,CAAC;IAClD,CAAC;IA7CD;;OAEG;IACa,wCAAgB,GAAqB;QACnD,OAAO,EAAE;YACP,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,gBAAgB;SACvB;QACD,WAAW,EAAE;YACX,QAAQ,EAAE,cAAc;YACxB,IAAI,EAAE,yBAAyB;SAChC;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,gBAAgB;SACvB;QACD,QAAQ,EAAE;YACR,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,wBAAwB;YAC9B,QAAQ,EAAE,IAAI;SACf;QACD,MAAM,EAAE;YACN,QAAQ,EAAE,SAAS;YACnB,IAAI,EAAE,eAAe;SACtB;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,YAAY;SACnB;QACD,KAAK,EAAE;YACL,QAAQ,EAAE,OAAO;YACjB,IAAI,EAAE,QAAQ;SACf;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,MAAM;YAChB,IAAI,EAAE,6BAA6B;YACnC,QAAQ,EAAE,IAAI;SACf;KACF,CAAC;IAUJ,8BAAC;CAAA,AAvFD,IAuFC;AAvFY,0DAAuB"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { BaseAPIRequestFactory } from "../../datadog-api-client-common/baseapi";
|
|
2
|
+
import { Configuration } from "../../datadog-api-client-common/configuration";
|
|
3
|
+
import { RequestContext, ResponseContext } from "../../datadog-api-client-common/http/http";
|
|
4
|
+
import { EventResponse } from "../models/EventResponse";
|
|
5
|
+
import { EventsListRequest } from "../models/EventsListRequest";
|
|
6
|
+
import { EventsListResponse } from "../models/EventsListResponse";
|
|
7
|
+
import { EventsSort } from "../models/EventsSort";
|
|
8
|
+
export declare class EventsApiRequestFactory extends BaseAPIRequestFactory {
|
|
9
|
+
listEvents(filterQuery?: string, filterFrom?: string, filterTo?: string, sort?: EventsSort, pageCursor?: string, pageLimit?: number, _options?: Configuration): Promise<RequestContext>;
|
|
10
|
+
searchEvents(body?: EventsListRequest, _options?: Configuration): Promise<RequestContext>;
|
|
11
|
+
}
|
|
12
|
+
export declare class EventsApiResponseProcessor {
|
|
13
|
+
/**
|
|
14
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
15
|
+
* to the expected objects
|
|
16
|
+
*
|
|
17
|
+
* @params response Response returned by the server for a request to listEvents
|
|
18
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
19
|
+
*/
|
|
20
|
+
listEvents(response: ResponseContext): Promise<EventsListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
23
|
+
* to the expected objects
|
|
24
|
+
*
|
|
25
|
+
* @params response Response returned by the server for a request to searchEvents
|
|
26
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
27
|
+
*/
|
|
28
|
+
searchEvents(response: ResponseContext): Promise<EventsListResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface EventsApiListEventsRequest {
|
|
31
|
+
/**
|
|
32
|
+
* Search query following events syntax.
|
|
33
|
+
* @type string
|
|
34
|
+
*/
|
|
35
|
+
filterQuery?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Minimum timestamp for requested events.
|
|
38
|
+
* @type string
|
|
39
|
+
*/
|
|
40
|
+
filterFrom?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Maximum timestamp for requested events.
|
|
43
|
+
* @type string
|
|
44
|
+
*/
|
|
45
|
+
filterTo?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Order of events in results.
|
|
48
|
+
* @type EventsSort
|
|
49
|
+
*/
|
|
50
|
+
sort?: EventsSort;
|
|
51
|
+
/**
|
|
52
|
+
* List following results with a cursor provided in the previous query.
|
|
53
|
+
* @type string
|
|
54
|
+
*/
|
|
55
|
+
pageCursor?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Maximum number of events in the response.
|
|
58
|
+
* @type number
|
|
59
|
+
*/
|
|
60
|
+
pageLimit?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface EventsApiSearchEventsRequest {
|
|
63
|
+
/**
|
|
64
|
+
* @type EventsListRequest
|
|
65
|
+
*/
|
|
66
|
+
body?: EventsListRequest;
|
|
67
|
+
}
|
|
68
|
+
export declare class EventsApi {
|
|
69
|
+
private requestFactory;
|
|
70
|
+
private responseProcessor;
|
|
71
|
+
private configuration;
|
|
72
|
+
constructor(configuration: Configuration, requestFactory?: EventsApiRequestFactory, responseProcessor?: EventsApiResponseProcessor);
|
|
73
|
+
/**
|
|
74
|
+
* List endpoint returns events that match an events search query.
|
|
75
|
+
* [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
|
|
76
|
+
*
|
|
77
|
+
* Use this endpoint to see your latest events.
|
|
78
|
+
* @param param The request object
|
|
79
|
+
*/
|
|
80
|
+
listEvents(param?: EventsApiListEventsRequest, options?: Configuration): Promise<EventsListResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* Provide a paginated version of listEvents returning a generator with all the items.
|
|
83
|
+
*/
|
|
84
|
+
listEventsWithPagination(param?: EventsApiListEventsRequest, options?: Configuration): AsyncGenerator<EventResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* List endpoint returns events that match an events search query.
|
|
87
|
+
* [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination).
|
|
88
|
+
*
|
|
89
|
+
* Use this endpoint to build complex events filtering and search.
|
|
90
|
+
* @param param The request object
|
|
91
|
+
*/
|
|
92
|
+
searchEvents(param?: EventsApiSearchEventsRequest, options?: Configuration): Promise<EventsListResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Provide a paginated version of searchEvents returning a generator with all the items.
|
|
95
|
+
*/
|
|
96
|
+
searchEventsWithPagination(param?: EventsApiSearchEventsRequest, options?: Configuration): AsyncGenerator<EventResponse>;
|
|
97
|
+
}
|