@algolia/monitoring 1.0.0-alpha.9 → 1.0.0-beta.2
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/dist/builds/browser.d.ts +25 -3
- package/dist/builds/browser.d.ts.map +1 -1
- package/dist/builds/node.d.ts +25 -3
- package/dist/builds/node.d.ts.map +1 -1
- package/dist/model/clientMethodProps.d.ts +39 -39
- package/dist/model/clientMethodProps.d.ts.map +1 -1
- package/dist/model/getServers403Response.d.ts +4 -0
- package/dist/model/getServers403Response.d.ts.map +1 -0
- package/dist/model/incidentsInner.d.ts +1 -1
- package/dist/model/index.d.ts +1 -1
- package/dist/model/index.d.ts.map +1 -1
- package/dist/model/probesMetric.d.ts +1 -1
- package/dist/model/region.d.ts +1 -1
- package/dist/model/server.d.ts +2 -2
- package/dist/model/timeInner.d.ts +1 -1
- package/dist/monitoring.cjs +100 -135
- package/dist/monitoring.esm.browser.js +130 -157
- package/dist/monitoring.esm.node.js +101 -136
- package/dist/monitoring.umd.js +2 -2
- package/dist/src/monitoringClient.d.ts +41 -58
- package/dist/src/monitoringClient.d.ts.map +1 -1
- package/model/clientMethodProps.ts +41 -41
- package/model/{getInventory403Response.ts → getServers403Response.ts} +1 -1
- package/model/incidentsInner.ts +1 -1
- package/model/index.ts +1 -1
- package/model/probesMetric.ts +1 -1
- package/model/region.ts +1 -1
- package/model/server.ts +2 -2
- package/model/timeInner.ts +1 -1
- package/package.json +7 -7
- package/dist/model/getInventory403Response.d.ts +0 -4
- package/dist/model/getInventory403Response.d.ts.map +0 -1
package/dist/builds/browser.d.ts
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import type { ClientOptions } from '@algolia/client-common';
|
|
2
|
-
|
|
3
|
-
export { apiClientVersion, MonitoringClient } from '../src/monitoringClient';
|
|
2
|
+
export { apiClientVersion } from '../src/monitoringClient';
|
|
4
3
|
export * from '../model';
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The client type.
|
|
6
|
+
*/
|
|
7
|
+
export type MonitoringClient = ReturnType<typeof monitoringClient>;
|
|
8
|
+
export declare function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): {
|
|
9
|
+
transporter: import("@algolia/client-common").Transporter;
|
|
10
|
+
appId: string;
|
|
11
|
+
clearCache(): Promise<void>;
|
|
12
|
+
readonly _ua: string;
|
|
13
|
+
addAlgoliaAgent(segment: string, version?: string | undefined): void;
|
|
14
|
+
customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
15
|
+
customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
16
|
+
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
17
|
+
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
18
|
+
getClusterIncidents({ clusters }: import("../model").GetClusterIncidentsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").IncidentsResponse>;
|
|
19
|
+
getClusterStatus({ clusters }: import("../model").GetClusterStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").StatusResponse>;
|
|
20
|
+
getIncidents(requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").IncidentsResponse>;
|
|
21
|
+
getIndexingTime({ clusters }: import("../model").GetIndexingTimeProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").IndexingTimeResponse>;
|
|
22
|
+
getLatency({ clusters }: import("../model").GetLatencyProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").LatencyResponse>;
|
|
23
|
+
getMetrics({ metric, period }: import("../model").GetMetricsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").InfrastructureResponse>;
|
|
24
|
+
getReachability({ clusters }: import("../model").GetReachabilityProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, Record<string, boolean>>>;
|
|
25
|
+
getServers(requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").InventoryResponse>;
|
|
26
|
+
getStatus(requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").StatusResponse>;
|
|
27
|
+
};
|
|
6
28
|
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAgB5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGnE,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;EA+BxB"}
|
package/dist/builds/node.d.ts
CHANGED
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import type { ClientOptions } from '@algolia/client-common';
|
|
2
|
-
|
|
3
|
-
export { apiClientVersion, MonitoringClient } from '../src/monitoringClient';
|
|
2
|
+
export { apiClientVersion } from '../src/monitoringClient';
|
|
4
3
|
export * from '../model';
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The client type.
|
|
6
|
+
*/
|
|
7
|
+
export type MonitoringClient = ReturnType<typeof monitoringClient>;
|
|
8
|
+
export declare function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): {
|
|
9
|
+
transporter: import("@algolia/client-common").Transporter;
|
|
10
|
+
appId: string;
|
|
11
|
+
clearCache(): Promise<void>;
|
|
12
|
+
_ua: string;
|
|
13
|
+
addAlgoliaAgent(segment: string, version?: string | undefined): void;
|
|
14
|
+
customDelete({ path, parameters }: import("../model").CustomDeleteProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
15
|
+
customGet({ path, parameters }: import("../model").CustomGetProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
16
|
+
customPost({ path, parameters, body }: import("../model").CustomPostProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
17
|
+
customPut({ path, parameters, body }: import("../model").CustomPutProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, any>>;
|
|
18
|
+
getClusterIncidents({ clusters }: import("../model").GetClusterIncidentsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").IncidentsResponse>;
|
|
19
|
+
getClusterStatus({ clusters }: import("../model").GetClusterStatusProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").StatusResponse>;
|
|
20
|
+
getIncidents(requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").IncidentsResponse>;
|
|
21
|
+
getIndexingTime({ clusters }: import("../model").GetIndexingTimeProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").IndexingTimeResponse>;
|
|
22
|
+
getLatency({ clusters }: import("../model").GetLatencyProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").LatencyResponse>;
|
|
23
|
+
getMetrics({ metric, period }: import("../model").GetMetricsProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").InfrastructureResponse>;
|
|
24
|
+
getReachability({ clusters }: import("../model").GetReachabilityProps, requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<Record<string, Record<string, boolean>>>;
|
|
25
|
+
getServers(requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").InventoryResponse>;
|
|
26
|
+
getStatus(requestOptions?: import("@algolia/client-common").RequestOptions | undefined): Promise<import("../model").StatusResponse>;
|
|
27
|
+
};
|
|
6
28
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAY5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,cAAc,UAAU,CAAC;AAEzB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGnE,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa;;;;;;;;;;;;;;;;;;;EA2BxB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Metric } from './metric';
|
|
2
2
|
import type { Period } from './period';
|
|
3
3
|
/**
|
|
4
|
-
* Properties for the `
|
|
4
|
+
* Properties for the `customDelete` method.
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type CustomDeleteProps = {
|
|
7
7
|
/**
|
|
8
8
|
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
9
9
|
*/
|
|
@@ -14,9 +14,9 @@ export type DelProps = {
|
|
|
14
14
|
parameters?: Record<string, any>;
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* Properties for the `
|
|
17
|
+
* Properties for the `customGet` method.
|
|
18
18
|
*/
|
|
19
|
-
export type
|
|
19
|
+
export type CustomGetProps = {
|
|
20
20
|
/**
|
|
21
21
|
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
22
22
|
*/
|
|
@@ -26,6 +26,40 @@ export type GetProps = {
|
|
|
26
26
|
*/
|
|
27
27
|
parameters?: Record<string, any>;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Properties for the `customPost` method.
|
|
31
|
+
*/
|
|
32
|
+
export type CustomPostProps = {
|
|
33
|
+
/**
|
|
34
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
35
|
+
*/
|
|
36
|
+
path: string;
|
|
37
|
+
/**
|
|
38
|
+
* Query parameters to apply to the current query.
|
|
39
|
+
*/
|
|
40
|
+
parameters?: Record<string, any>;
|
|
41
|
+
/**
|
|
42
|
+
* Parameters to send with the custom request.
|
|
43
|
+
*/
|
|
44
|
+
body?: Record<string, any>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Properties for the `customPut` method.
|
|
48
|
+
*/
|
|
49
|
+
export type CustomPutProps = {
|
|
50
|
+
/**
|
|
51
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
52
|
+
*/
|
|
53
|
+
path: string;
|
|
54
|
+
/**
|
|
55
|
+
* Query parameters to apply to the current query.
|
|
56
|
+
*/
|
|
57
|
+
parameters?: Record<string, any>;
|
|
58
|
+
/**
|
|
59
|
+
* Parameters to send with the custom request.
|
|
60
|
+
*/
|
|
61
|
+
body?: Record<string, any>;
|
|
62
|
+
};
|
|
29
63
|
/**
|
|
30
64
|
* Properties for the `getClusterIncidents` method.
|
|
31
65
|
*/
|
|
@@ -67,7 +101,7 @@ export type GetLatencyProps = {
|
|
|
67
101
|
*/
|
|
68
102
|
export type GetMetricsProps = {
|
|
69
103
|
/**
|
|
70
|
-
* Metric to report. For more information about the individual metrics, see the response. To include all metrics, use
|
|
104
|
+
* Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.
|
|
71
105
|
*/
|
|
72
106
|
metric: Metric;
|
|
73
107
|
/**
|
|
@@ -84,38 +118,4 @@ export type GetReachabilityProps = {
|
|
|
84
118
|
*/
|
|
85
119
|
clusters: string;
|
|
86
120
|
};
|
|
87
|
-
/**
|
|
88
|
-
* Properties for the `post` method.
|
|
89
|
-
*/
|
|
90
|
-
export type PostProps = {
|
|
91
|
-
/**
|
|
92
|
-
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
93
|
-
*/
|
|
94
|
-
path: string;
|
|
95
|
-
/**
|
|
96
|
-
* Query parameters to apply to the current query.
|
|
97
|
-
*/
|
|
98
|
-
parameters?: Record<string, any>;
|
|
99
|
-
/**
|
|
100
|
-
* Parameters to send with the custom request.
|
|
101
|
-
*/
|
|
102
|
-
body?: Record<string, any>;
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Properties for the `put` method.
|
|
106
|
-
*/
|
|
107
|
-
export type PutProps = {
|
|
108
|
-
/**
|
|
109
|
-
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
110
|
-
*/
|
|
111
|
-
path: string;
|
|
112
|
-
/**
|
|
113
|
-
* Query parameters to apply to the current query.
|
|
114
|
-
*/
|
|
115
|
-
parameters?: Record<string, any>;
|
|
116
|
-
/**
|
|
117
|
-
* Parameters to send with the custom request.
|
|
118
|
-
*/
|
|
119
|
-
body?: Record<string, any>;
|
|
120
|
-
};
|
|
121
121
|
//# sourceMappingURL=clientMethodProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientMethodProps.d.ts","sourceRoot":"","sources":["../../model/clientMethodProps.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;GAEG;AAC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H,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getServers403Response.d.ts","sourceRoot":"","sources":["../../model/getServers403Response.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Incident } from './incident';
|
|
2
2
|
export type IncidentsInner = {
|
|
3
3
|
/**
|
|
4
|
-
* Timestamp in
|
|
4
|
+
* Timestamp, measured in milliseconds since the Unix epoch.
|
|
5
5
|
*/
|
|
6
6
|
t?: number;
|
|
7
7
|
v?: Incident;
|
package/dist/model/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC"}
|
package/dist/model/region.d.ts
CHANGED
package/dist/model/server.d.ts
CHANGED
|
@@ -8,11 +8,11 @@ export type Server = {
|
|
|
8
8
|
name?: string;
|
|
9
9
|
region?: Region;
|
|
10
10
|
/**
|
|
11
|
-
* Included to support legacy applications.
|
|
11
|
+
* Included to support legacy applications. Use `is_replica` instead.
|
|
12
12
|
*/
|
|
13
13
|
is_slave?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Whether this server is a replica of another server.
|
|
16
16
|
*/
|
|
17
17
|
is_replica?: boolean;
|
|
18
18
|
/**
|