@algolia/monitoring 1.0.0-alpha.3

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.
Files changed (85) hide show
  1. package/dist/builds/browser.d.ts +6 -0
  2. package/dist/builds/browser.d.ts.map +1 -0
  3. package/dist/builds/node.d.ts +6 -0
  4. package/dist/builds/node.d.ts.map +1 -0
  5. package/dist/model/clientMethodProps.d.ts +121 -0
  6. package/dist/model/clientMethodProps.d.ts.map +1 -0
  7. package/dist/model/errorBase.d.ts +7 -0
  8. package/dist/model/errorBase.d.ts.map +1 -0
  9. package/dist/model/getInventory403Response.d.ts +4 -0
  10. package/dist/model/getInventory403Response.d.ts.map +1 -0
  11. package/dist/model/incident.d.ts +12 -0
  12. package/dist/model/incident.d.ts.map +1 -0
  13. package/dist/model/incidentsInner.d.ts +9 -0
  14. package/dist/model/incidentsInner.d.ts.map +1 -0
  15. package/dist/model/incidentsResponse.d.ts +5 -0
  16. package/dist/model/incidentsResponse.d.ts.map +1 -0
  17. package/dist/model/index.d.ts +24 -0
  18. package/dist/model/index.d.ts.map +1 -0
  19. package/dist/model/indexingTimeResponse.d.ts +5 -0
  20. package/dist/model/indexingTimeResponse.d.ts.map +1 -0
  21. package/dist/model/indexingTimeResponseMetrics.d.ts +5 -0
  22. package/dist/model/indexingTimeResponseMetrics.d.ts.map +1 -0
  23. package/dist/model/infrastructureResponse.d.ts +5 -0
  24. package/dist/model/infrastructureResponse.d.ts.map +1 -0
  25. package/dist/model/infrastructureResponseMetrics.d.ts +24 -0
  26. package/dist/model/infrastructureResponseMetrics.d.ts.map +1 -0
  27. package/dist/model/inventoryResponse.d.ts +5 -0
  28. package/dist/model/inventoryResponse.d.ts.map +1 -0
  29. package/dist/model/latencyResponse.d.ts +5 -0
  30. package/dist/model/latencyResponse.d.ts.map +1 -0
  31. package/dist/model/latencyResponseMetrics.d.ts +5 -0
  32. package/dist/model/latencyResponseMetrics.d.ts.map +1 -0
  33. package/dist/model/metric.d.ts +2 -0
  34. package/dist/model/metric.d.ts.map +1 -0
  35. package/dist/model/period.d.ts +2 -0
  36. package/dist/model/period.d.ts.map +1 -0
  37. package/dist/model/probesMetric.d.ts +11 -0
  38. package/dist/model/probesMetric.d.ts.map +1 -0
  39. package/dist/model/region.d.ts +5 -0
  40. package/dist/model/region.d.ts.map +1 -0
  41. package/dist/model/server.d.ts +25 -0
  42. package/dist/model/server.d.ts.map +1 -0
  43. package/dist/model/serverStatus.d.ts +2 -0
  44. package/dist/model/serverStatus.d.ts.map +1 -0
  45. package/dist/model/status.d.ts +5 -0
  46. package/dist/model/status.d.ts.map +1 -0
  47. package/dist/model/statusResponse.d.ts +5 -0
  48. package/dist/model/statusResponse.d.ts.map +1 -0
  49. package/dist/model/timeInner.d.ts +11 -0
  50. package/dist/model/timeInner.d.ts.map +1 -0
  51. package/dist/model/type.d.ts +2 -0
  52. package/dist/model/type.d.ts.map +1 -0
  53. package/dist/monitoring.cjs.js +416 -0
  54. package/dist/monitoring.esm.browser.js +1090 -0
  55. package/dist/monitoring.esm.node.js +413 -0
  56. package/dist/monitoring.umd.js +2 -0
  57. package/dist/src/monitoringClient.d.ts +154 -0
  58. package/dist/src/monitoringClient.d.ts.map +1 -0
  59. package/index.d.ts +2 -0
  60. package/index.js +2 -0
  61. package/model/clientMethodProps.ts +132 -0
  62. package/model/errorBase.ts +8 -0
  63. package/model/getInventory403Response.ts +5 -0
  64. package/model/incident.ts +15 -0
  65. package/model/incidentsInner.ts +12 -0
  66. package/model/incidentsResponse.ts +7 -0
  67. package/model/index.ts +25 -0
  68. package/model/indexingTimeResponse.ts +7 -0
  69. package/model/indexingTimeResponseMetrics.ts +7 -0
  70. package/model/infrastructureResponse.ts +7 -0
  71. package/model/infrastructureResponseMetrics.ts +30 -0
  72. package/model/inventoryResponse.ts +7 -0
  73. package/model/latencyResponse.ts +7 -0
  74. package/model/latencyResponseMetrics.ts +7 -0
  75. package/model/metric.ts +9 -0
  76. package/model/period.ts +3 -0
  77. package/model/probesMetric.ts +13 -0
  78. package/model/region.ts +21 -0
  79. package/model/server.ts +33 -0
  80. package/model/serverStatus.ts +3 -0
  81. package/model/status.ts +10 -0
  82. package/model/statusResponse.ts +7 -0
  83. package/model/timeInner.ts +13 -0
  84. package/model/type.ts +3 -0
  85. package/package.json +54 -0
@@ -0,0 +1,6 @@
1
+ import type { ClientOptions } from '@algolia/client-common';
2
+ import type { MonitoringClient } from '../src/monitoringClient';
3
+ export { apiClientVersion, MonitoringClient } from '../src/monitoringClient';
4
+ export * from '../model';
5
+ export declare function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): MonitoringClient;
6
+ //# sourceMappingURL=browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../builds/browser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAe5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,cAAc,UAAU,CAAC;AAEzB,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,gBAAgB,CA8BlB"}
@@ -0,0 +1,6 @@
1
+ import type { ClientOptions } from '@algolia/client-common';
2
+ import type { MonitoringClient } from '../src/monitoringClient';
3
+ export { apiClientVersion, MonitoringClient } from '../src/monitoringClient';
4
+ export * from '../model';
5
+ export declare function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): MonitoringClient;
6
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../builds/node.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAW5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,cAAc,UAAU,CAAC;AAEzB,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,GACtB,gBAAgB,CAwBlB"}
@@ -0,0 +1,121 @@
1
+ import type { Metric } from './metric';
2
+ import type { Period } from './period';
3
+ /**
4
+ * Properties for the `del` method.
5
+ */
6
+ export type DelProps = {
7
+ /**
8
+ * Path of the endpoint, anything after \"/1\" must be specified.
9
+ */
10
+ path: string;
11
+ /**
12
+ * Query parameters to apply to the current query.
13
+ */
14
+ parameters?: Record<string, any>;
15
+ };
16
+ /**
17
+ * Properties for the `get` method.
18
+ */
19
+ export type GetProps = {
20
+ /**
21
+ * Path of the endpoint, anything after \"/1\" must be specified.
22
+ */
23
+ path: string;
24
+ /**
25
+ * Query parameters to apply to the current query.
26
+ */
27
+ parameters?: Record<string, any>;
28
+ };
29
+ /**
30
+ * Properties for the `getClusterIncidents` method.
31
+ */
32
+ export type GetClusterIncidentsProps = {
33
+ /**
34
+ * Subset of clusters, separated by comma.
35
+ */
36
+ clusters: string;
37
+ };
38
+ /**
39
+ * Properties for the `getClusterStatus` method.
40
+ */
41
+ export type GetClusterStatusProps = {
42
+ /**
43
+ * Subset of clusters, separated by comma.
44
+ */
45
+ clusters: string;
46
+ };
47
+ /**
48
+ * Properties for the `getIndexingTime` method.
49
+ */
50
+ export type GetIndexingTimeProps = {
51
+ /**
52
+ * Subset of clusters, separated by comma.
53
+ */
54
+ clusters: string;
55
+ };
56
+ /**
57
+ * Properties for the `getLatency` method.
58
+ */
59
+ export type GetLatencyProps = {
60
+ /**
61
+ * Subset of clusters, separated by comma.
62
+ */
63
+ clusters: string;
64
+ };
65
+ /**
66
+ * Properties for the `getMetrics` method.
67
+ */
68
+ export type GetMetricsProps = {
69
+ /**
70
+ * Metric to report. For more information about the individual metrics, see the response. To include all metrics, use `*` as the parameter.
71
+ */
72
+ metric: Metric;
73
+ /**
74
+ * Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day.
75
+ */
76
+ period: Period;
77
+ };
78
+ /**
79
+ * Properties for the `getReachability` method.
80
+ */
81
+ export type GetReachabilityProps = {
82
+ /**
83
+ * Subset of clusters, separated by comma.
84
+ */
85
+ clusters: string;
86
+ };
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
+ //# sourceMappingURL=clientMethodProps.d.ts.map
@@ -0,0 +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;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,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;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Error.
3
+ */
4
+ export type ErrorBase = Record<string, any> & {
5
+ message?: string;
6
+ };
7
+ //# sourceMappingURL=errorBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errorBase.d.ts","sourceRoot":"","sources":["../../model/errorBase.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export type GetInventory403Response = {
2
+ reason?: string;
3
+ };
4
+ //# sourceMappingURL=getInventory403Response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInventory403Response.d.ts","sourceRoot":"","sources":["../../model/getInventory403Response.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Status } from './status';
2
+ /**
3
+ * Incident details.
4
+ */
5
+ export type Incident = {
6
+ /**
7
+ * Description of the incident.
8
+ */
9
+ title?: string;
10
+ status?: Status;
11
+ };
12
+ //# sourceMappingURL=incident.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident.d.ts","sourceRoot":"","sources":["../../model/incident.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { Incident } from './incident';
2
+ export type IncidentsInner = {
3
+ /**
4
+ * Timestamp in [Unix epoch time](https://wikipedia.org/wiki/Unix_time) in milliseconds.
5
+ */
6
+ t?: number;
7
+ v?: Incident;
8
+ };
9
+ //# sourceMappingURL=incidentsInner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentsInner.d.ts","sourceRoot":"","sources":["../../model/incidentsInner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX,CAAC,CAAC,EAAE,QAAQ,CAAC;CACd,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { IncidentsInner } from './incidentsInner';
2
+ export type IncidentsResponse = {
3
+ incidents?: Record<string, IncidentsInner[]>;
4
+ };
5
+ //# sourceMappingURL=incidentsResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incidentsResponse.d.ts","sourceRoot":"","sources":["../../model/incidentsResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;CAC9C,CAAC"}
@@ -0,0 +1,24 @@
1
+ export * from './errorBase';
2
+ export * from './getInventory403Response';
3
+ export * from './incident';
4
+ export * from './incidentsInner';
5
+ export * from './incidentsResponse';
6
+ export * from './indexingTimeResponse';
7
+ export * from './indexingTimeResponseMetrics';
8
+ export * from './infrastructureResponse';
9
+ export * from './infrastructureResponseMetrics';
10
+ export * from './inventoryResponse';
11
+ export * from './latencyResponse';
12
+ export * from './latencyResponseMetrics';
13
+ export * from './metric';
14
+ export * from './period';
15
+ export * from './probesMetric';
16
+ export * from './region';
17
+ export * from './server';
18
+ export * from './serverStatus';
19
+ export * from './status';
20
+ export * from './statusResponse';
21
+ export * from './timeInner';
22
+ export * from './type';
23
+ export * from './clientMethodProps';
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../model/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,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"}
@@ -0,0 +1,5 @@
1
+ import type { IndexingTimeResponseMetrics } from './indexingTimeResponseMetrics';
2
+ export type IndexingTimeResponse = {
3
+ metrics?: IndexingTimeResponseMetrics;
4
+ };
5
+ //# sourceMappingURL=indexingTimeResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexingTimeResponse.d.ts","sourceRoot":"","sources":["../../model/indexingTimeResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAEjF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,2BAA2B,CAAC;CACvC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { TimeInner } from './timeInner';
2
+ export type IndexingTimeResponseMetrics = {
3
+ indexing?: Record<string, TimeInner[]>;
4
+ };
5
+ //# sourceMappingURL=indexingTimeResponseMetrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexingTimeResponseMetrics.d.ts","sourceRoot":"","sources":["../../model/indexingTimeResponseMetrics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;CACxC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { InfrastructureResponseMetrics } from './infrastructureResponseMetrics';
2
+ export type InfrastructureResponse = {
3
+ metrics?: InfrastructureResponseMetrics;
4
+ };
5
+ //# sourceMappingURL=infrastructureResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infrastructureResponse.d.ts","sourceRoot":"","sources":["../../model/infrastructureResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAErF,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,CAAC,EAAE,6BAA6B,CAAC;CACzC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { ProbesMetric } from './probesMetric';
2
+ export type InfrastructureResponseMetrics = {
3
+ /**
4
+ * CPU idleness in %.
5
+ */
6
+ cpu_usage?: Record<string, ProbesMetric[]>;
7
+ /**
8
+ * RAM used for indexing in MB.
9
+ */
10
+ ram_indexing_usage?: Record<string, ProbesMetric[]>;
11
+ /**
12
+ * RAM used for search in MB.
13
+ */
14
+ ram_search_usage?: Record<string, ProbesMetric[]>;
15
+ /**
16
+ * Solid-state disk (SSD) usage expressed as % of RAM. 0% means no SSD usage. A value of 50% indicates 32&nbsp;GB SSD usage for a machine with 64&nbsp;RAM.
17
+ */
18
+ ssd_usage?: Record<string, ProbesMetric[]>;
19
+ /**
20
+ * Average build time of the indices in seconds.
21
+ */
22
+ avg_build_time?: Record<string, ProbesMetric[]>;
23
+ };
24
+ //# sourceMappingURL=infrastructureResponseMetrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infrastructureResponseMetrics.d.ts","sourceRoot":"","sources":["../../model/infrastructureResponseMetrics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAE3C;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAEpD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAElD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IAE3C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;CACjD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Server } from './server';
2
+ export type InventoryResponse = {
3
+ inventory?: Server[];
4
+ };
5
+ //# sourceMappingURL=inventoryResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventoryResponse.d.ts","sourceRoot":"","sources":["../../model/inventoryResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { LatencyResponseMetrics } from './latencyResponseMetrics';
2
+ export type LatencyResponse = {
3
+ metrics?: LatencyResponseMetrics;
4
+ };
5
+ //# sourceMappingURL=latencyResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latencyResponse.d.ts","sourceRoot":"","sources":["../../model/latencyResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEvE,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { TimeInner } from './timeInner';
2
+ export type LatencyResponseMetrics = {
3
+ latency?: Record<string, TimeInner[]>;
4
+ };
5
+ //# sourceMappingURL=latencyResponseMetrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latencyResponseMetrics.d.ts","sourceRoot":"","sources":["../../model/latencyResponseMetrics.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;CACvC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type Metric = '*' | 'avg_build_time' | 'cpu_usage' | 'ram_indexing_usage' | 'ram_search_usage' | 'ssd_usage';
2
+ //# sourceMappingURL=metric.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metric.d.ts","sourceRoot":"","sources":["../../model/metric.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,MAAM,GACd,GAAG,GACH,gBAAgB,GAChB,WAAW,GACX,oBAAoB,GACpB,kBAAkB,GAClB,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type Period = 'day' | 'hour' | 'minute' | 'month' | 'week';
2
+ //# sourceMappingURL=period.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"period.d.ts","sourceRoot":"","sources":["../../model/period.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC"}
@@ -0,0 +1,11 @@
1
+ export type ProbesMetric = {
2
+ /**
3
+ * Timestamp in [Unix epoch time](https://wikipedia.org/wiki/Unix_time) in milliseconds.
4
+ */
5
+ t?: number;
6
+ /**
7
+ * Value of the metric.
8
+ */
9
+ v?: number;
10
+ };
11
+ //# sourceMappingURL=probesMetric.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"probesMetric.d.ts","sourceRoot":"","sources":["../../model/probesMetric.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The region where the cluster is located.
3
+ */
4
+ export type Region = 'au' | 'br' | 'ca' | 'de' | 'eu' | 'hk' | 'in' | 'jp' | 'sg' | 'uae' | 'uk' | 'usc' | 'use' | 'usw' | 'za';
5
+ //# sourceMappingURL=region.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"region.d.ts","sourceRoot":"","sources":["../../model/region.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,IAAI,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { Region } from './region';
2
+ import type { ServerStatus } from './serverStatus';
3
+ import type { Type } from './type';
4
+ export type Server = {
5
+ /**
6
+ * Server name.
7
+ */
8
+ name?: string;
9
+ region?: Region;
10
+ /**
11
+ * Included to support legacy applications. Do not rely on this attribute being present in the response. Use `is_replica` instead.
12
+ */
13
+ is_slave?: boolean;
14
+ /**
15
+ * Indicates whether this server is a replica of another server.
16
+ */
17
+ is_replica?: boolean;
18
+ /**
19
+ * Name of the cluster to which this server belongs.
20
+ */
21
+ cluster?: string;
22
+ status?: ServerStatus;
23
+ type?: Type;
24
+ };
25
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../model/server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEnC,MAAM,MAAM,MAAM,GAAG;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type ServerStatus = 'PRODUCTION';
2
+ //# sourceMappingURL=serverStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverStatus.d.ts","sourceRoot":"","sources":["../../model/serverStatus.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Status of the cluster.
3
+ */
4
+ export type Status = 'degraded_performance' | 'major_outage' | 'operational' | 'partial_outage';
5
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../model/status.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,sBAAsB,GACtB,cAAc,GACd,aAAa,GACb,gBAAgB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { Status } from './status';
2
+ export type StatusResponse = {
3
+ status?: Record<string, Status>;
4
+ };
5
+ //# sourceMappingURL=statusResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"statusResponse.d.ts","sourceRoot":"","sources":["../../model/statusResponse.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC"}
@@ -0,0 +1,11 @@
1
+ export type TimeInner = {
2
+ /**
3
+ * Timestamp in [Unix epoch time](https://wikipedia.org/wiki/Unix_time) in milliseconds.
4
+ */
5
+ t?: number;
6
+ /**
7
+ * Time in ms.
8
+ */
9
+ v?: number;
10
+ };
11
+ //# sourceMappingURL=timeInner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeInner.d.ts","sourceRoot":"","sources":["../../model/timeInner.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type Type = 'cluster';
2
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../model/type.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,IAAI,GAAG,SAAS,CAAC"}