@djangocfg/api 1.2.22 → 1.2.23
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/index.cjs +4228 -2450
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3122 -738
- package/dist/index.d.ts +3122 -738
- package/dist/index.mjs +4140 -2370
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +3 -3
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_charts.ts +138 -0
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_monitoring.ts +11 -11
- package/src/cfg/generated/_utils/fetchers/cfg__grpc__grpc_testing.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/index.ts +1 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +3 -3
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_charts.ts +126 -0
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_monitoring.ts +9 -9
- package/src/cfg/generated/_utils/hooks/cfg__grpc__grpc_testing.ts +4 -4
- package/src/cfg/generated/_utils/hooks/index.ts +1 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/{OverviewStats.schema.ts → CentrifugoOverviewStats.schema.ts} +3 -3
- package/src/cfg/generated/_utils/schemas/CentrifugoPublication.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/DashboardCharts.schema.ts +30 -0
- package/src/cfg/generated/_utils/schemas/DjangoRQConfig.schema.ts +8 -1
- package/src/cfg/generated/_utils/schemas/ErrorDistributionChart.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ErrorDistributionChartSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ErrorDistributionDataPoint.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/GRPCHealthCheck.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/GRPCOverviewStats.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/GRPCServerConfigSerializer.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/GRPCServerInfo.schema.ts +1 -1
- package/src/cfg/generated/_utils/schemas/{GRPCTestLogSerializer.schema.ts → GRPCTestLog.schema.ts} +4 -4
- package/src/cfg/generated/_utils/schemas/MonitoringServiceStatsSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/RecentRequest.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeChartSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/RequestVolumeDataPoint.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/ResponseTimeChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ResponseTimeChartSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ResponseTimeDataPoint.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerLifecycleChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerLifecycleEvent.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServerUptimeChart.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerUptimeChartSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ServerUptimeDataPoint.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityChart.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityChartSerializer.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/ServiceActivityDataPoint.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/ServiceList.schema.ts +2 -2
- package/src/cfg/generated/_utils/schemas/ServiceStatsSerializer.schema.ts +8 -8
- package/src/cfg/generated/_utils/schemas/index.ts +24 -4
- package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +5 -5
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +4 -4
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +1 -1
- package/src/cfg/generated/cfg__dashboard__dashboard_config/models.ts +26 -1
- package/src/cfg/generated/cfg__endpoints/client.ts +1 -1
- package/src/cfg/generated/cfg__grpc__grpc_charts/client.ts +162 -0
- package/src/cfg/generated/cfg__grpc__grpc_charts/index.ts +2 -0
- package/src/cfg/generated/cfg__grpc__grpc_charts/models.ts +335 -0
- package/src/cfg/generated/cfg__grpc__grpc_configuration/models.ts +2 -2
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/client.ts +12 -11
- package/src/cfg/generated/cfg__grpc__grpc_monitoring/models.ts +45 -31
- package/src/cfg/generated/cfg__grpc__grpc_services/models.ts +11 -11
- package/src/cfg/generated/cfg__grpc__grpc_testing/client.ts +9 -10
- package/src/cfg/generated/cfg__grpc__grpc_testing/models.ts +22 -38
- package/src/cfg/generated/cfg__payments/client.ts +1 -1
- package/src/cfg/generated/client.ts +3 -0
- package/src/cfg/generated/index.ts +5 -0
- package/src/cfg/generated/schema.ts +1621 -342
- package/src/cfg/generated/_utils/schemas/GRPCTestLogs.schema.ts +0 -23
- package/src/cfg/generated/_utils/schemas/RecentRequests.schema.ts +0 -23
|
@@ -48,6 +48,7 @@ export * from './CentrifugoInfoResponse.schema'
|
|
|
48
48
|
export * from './CentrifugoInfoResult.schema'
|
|
49
49
|
export * from './CentrifugoMetrics.schema'
|
|
50
50
|
export * from './CentrifugoNodeInfo.schema'
|
|
51
|
+
export * from './CentrifugoOverviewStats.schema'
|
|
51
52
|
export * from './CentrifugoPresenceRequestRequest.schema'
|
|
52
53
|
export * from './CentrifugoPresenceResponse.schema'
|
|
53
54
|
export * from './CentrifugoPresenceResult.schema'
|
|
@@ -83,6 +84,7 @@ export * from './ConnectionTokenRequestRequest.schema'
|
|
|
83
84
|
export * from './ConnectionTokenResponse.schema'
|
|
84
85
|
export * from './Currency.schema'
|
|
85
86
|
export * from './DRFConfig.schema'
|
|
87
|
+
export * from './DashboardCharts.schema'
|
|
86
88
|
export * from './DashboardOverview.schema'
|
|
87
89
|
export * from './DatabaseConfig.schema'
|
|
88
90
|
export * from './DjangoConfig.schema'
|
|
@@ -102,6 +104,9 @@ export * from './EmailConfig.schema'
|
|
|
102
104
|
export * from './EmailLog.schema'
|
|
103
105
|
export * from './Endpoint.schema'
|
|
104
106
|
export * from './EndpointsStatus.schema'
|
|
107
|
+
export * from './ErrorDistributionChart.schema'
|
|
108
|
+
export * from './ErrorDistributionChartSerializer.schema'
|
|
109
|
+
export * from './ErrorDistributionDataPoint.schema'
|
|
105
110
|
export * from './ErrorResponse.schema'
|
|
106
111
|
export * from './GRPCCallRequestRequest.schema'
|
|
107
112
|
export * from './GRPCCallResponse.schema'
|
|
@@ -111,13 +116,14 @@ export * from './GRPCExampleSerializer.schema'
|
|
|
111
116
|
export * from './GRPCExamplesList.schema'
|
|
112
117
|
export * from './GRPCFeaturesSerializer.schema'
|
|
113
118
|
export * from './GRPCFrameworkConfigSerializer.schema'
|
|
119
|
+
export * from './GRPCHealthCheck.schema'
|
|
114
120
|
export * from './GRPCInterceptorInfoSerializer.schema'
|
|
121
|
+
export * from './GRPCOverviewStats.schema'
|
|
115
122
|
export * from './GRPCServerConfigSerializer.schema'
|
|
116
123
|
export * from './GRPCServerInfo.schema'
|
|
117
124
|
export * from './GRPCServiceInfoSerializer.schema'
|
|
118
125
|
export * from './GRPCStatsSerializer.schema'
|
|
119
|
-
export * from './
|
|
120
|
-
export * from './GRPCTestLogs.schema'
|
|
126
|
+
export * from './GRPCTestLog.schema'
|
|
121
127
|
export * from './HealthCheck.schema'
|
|
122
128
|
export * from './JWTConfig.schema'
|
|
123
129
|
export * from './JobActionResponse.schema'
|
|
@@ -137,6 +143,7 @@ export * from './MethodInfoSerializer.schema'
|
|
|
137
143
|
export * from './MethodList.schema'
|
|
138
144
|
export * from './MethodStatsSerializer.schema'
|
|
139
145
|
export * from './MethodSummarySerializer.schema'
|
|
146
|
+
export * from './MonitoringServiceStatsSerializer.schema'
|
|
140
147
|
export * from './Newsletter.schema'
|
|
141
148
|
export * from './NewsletterCampaign.schema'
|
|
142
149
|
export * from './NewsletterCampaignRequest.schema'
|
|
@@ -146,7 +153,6 @@ export * from './OTPRequestRequest.schema'
|
|
|
146
153
|
export * from './OTPRequestResponse.schema'
|
|
147
154
|
export * from './OTPVerifyRequest.schema'
|
|
148
155
|
export * from './OTPVerifyResponse.schema'
|
|
149
|
-
export * from './OverviewStats.schema'
|
|
150
156
|
export * from './PaginatedArchiveItemChunkList.schema'
|
|
151
157
|
export * from './PaginatedArchiveItemList.schema'
|
|
152
158
|
export * from './PaginatedArchiveSearchResultList.schema'
|
|
@@ -192,9 +198,15 @@ export * from './QuickHealth.schema'
|
|
|
192
198
|
export * from './RQConfig.schema'
|
|
193
199
|
export * from './RecentErrorSerializer.schema'
|
|
194
200
|
export * from './RecentPublishes.schema'
|
|
195
|
-
export * from './
|
|
201
|
+
export * from './RecentRequest.schema'
|
|
196
202
|
export * from './RecentUser.schema'
|
|
197
203
|
export * from './RedisQueueConfig.schema'
|
|
204
|
+
export * from './RequestVolumeChart.schema'
|
|
205
|
+
export * from './RequestVolumeChartSerializer.schema'
|
|
206
|
+
export * from './RequestVolumeDataPoint.schema'
|
|
207
|
+
export * from './ResponseTimeChart.schema'
|
|
208
|
+
export * from './ResponseTimeChartSerializer.schema'
|
|
209
|
+
export * from './ResponseTimeDataPoint.schema'
|
|
198
210
|
export * from './RunDemoRequestRequest.schema'
|
|
199
211
|
export * from './ScheduleActionResponse.schema'
|
|
200
212
|
export * from './ScheduleCreateRequest.schema'
|
|
@@ -202,6 +214,14 @@ export * from './ScheduledJob.schema'
|
|
|
202
214
|
export * from './SendCampaignRequest.schema'
|
|
203
215
|
export * from './SendCampaignResponse.schema'
|
|
204
216
|
export * from './Sender.schema'
|
|
217
|
+
export * from './ServerLifecycleChart.schema'
|
|
218
|
+
export * from './ServerLifecycleEvent.schema'
|
|
219
|
+
export * from './ServerUptimeChart.schema'
|
|
220
|
+
export * from './ServerUptimeChartSerializer.schema'
|
|
221
|
+
export * from './ServerUptimeDataPoint.schema'
|
|
222
|
+
export * from './ServiceActivityChart.schema'
|
|
223
|
+
export * from './ServiceActivityChartSerializer.schema'
|
|
224
|
+
export * from './ServiceActivityDataPoint.schema'
|
|
205
225
|
export * from './ServiceDetail.schema'
|
|
206
226
|
export * from './ServiceList.schema'
|
|
207
227
|
export * from './ServiceMethods.schema'
|
|
@@ -27,10 +27,10 @@ export interface CentrifugoHistoryRequestRequest {
|
|
|
27
27
|
/** Channel name */
|
|
28
28
|
channel: string;
|
|
29
29
|
/** Maximum number of messages to return */
|
|
30
|
-
limit?:
|
|
30
|
+
limit?: number | null;
|
|
31
31
|
since?: Record<string, any>;
|
|
32
32
|
/** Reverse message order (newest first) */
|
|
33
|
-
reverse?:
|
|
33
|
+
reverse?: boolean | null;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -185,7 +185,7 @@ export interface CentrifugoPublication {
|
|
|
185
185
|
/** Message offset in channel stream */
|
|
186
186
|
offset: number;
|
|
187
187
|
/** Optional message tags */
|
|
188
|
-
tags?: string | null;
|
|
188
|
+
tags?: Record<string, any> | null;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
/**
|
|
@@ -225,9 +225,9 @@ export interface CentrifugoClientInfo {
|
|
|
225
225
|
/** Client UUID */
|
|
226
226
|
client: string;
|
|
227
227
|
/** Connection metadata */
|
|
228
|
-
conn_info?: string | null;
|
|
228
|
+
conn_info?: Record<string, any> | null;
|
|
229
229
|
/** Channel-specific metadata */
|
|
230
|
-
chan_info?: string | null;
|
|
230
|
+
chan_info?: Record<string, any> | null;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
/**
|
|
@@ -21,15 +21,15 @@ export class CfgCentrifugoMonitoring {
|
|
|
21
21
|
return response;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
async centrifugoMonitorOverviewRetrieve(hours?: number): Promise<Models.
|
|
25
|
-
async centrifugoMonitorOverviewRetrieve(params?: { hours?: number }): Promise<Models.
|
|
24
|
+
async centrifugoMonitorOverviewRetrieve(hours?: number): Promise<Models.CentrifugoOverviewStats>;
|
|
25
|
+
async centrifugoMonitorOverviewRetrieve(params?: { hours?: number }): Promise<Models.CentrifugoOverviewStats>;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Get overview statistics
|
|
29
29
|
*
|
|
30
30
|
* Returns overview statistics for Centrifugo publishes.
|
|
31
31
|
*/
|
|
32
|
-
async centrifugoMonitorOverviewRetrieve(...args: any[]): Promise<Models.
|
|
32
|
+
async centrifugoMonitorOverviewRetrieve(...args: any[]): Promise<Models.CentrifugoOverviewStats> {
|
|
33
33
|
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
34
34
|
|
|
35
35
|
let params;
|
|
@@ -81,7 +81,7 @@ export class CfgCentrifugoMonitoring {
|
|
|
81
81
|
params = { hours: args[0], interval: args[1] };
|
|
82
82
|
}
|
|
83
83
|
const response = await this.client.request('GET', "/cfg/centrifugo/monitor/timeline/", { params });
|
|
84
|
-
return (response as any).results ||
|
|
84
|
+
return (response as any).results || response;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
}
|
|
@@ -156,7 +156,13 @@ export interface CentrifugoConfig {
|
|
|
156
156
|
* Response model (includes read-only fields).
|
|
157
157
|
*/
|
|
158
158
|
export interface DjangoRQConfig {
|
|
159
|
-
|
|
159
|
+
enabled?: boolean | null;
|
|
160
|
+
queues?: Array<RedisQueueConfig> | null;
|
|
161
|
+
show_admin_link?: boolean | null;
|
|
162
|
+
exception_handlers?: Array<string> | null;
|
|
163
|
+
api_token?: string | null;
|
|
164
|
+
prometheus_enabled?: boolean | null;
|
|
165
|
+
schedules?: Array<Record<string, any>> | null;
|
|
160
166
|
}
|
|
161
167
|
|
|
162
168
|
/**
|
|
@@ -213,3 +219,22 @@ export interface PaymentsNowPayments {
|
|
|
213
219
|
enabled?: boolean | null;
|
|
214
220
|
}
|
|
215
221
|
|
|
222
|
+
/**
|
|
223
|
+
* Redis Queue configuration.
|
|
224
|
+
*
|
|
225
|
+
* Response model (includes read-only fields).
|
|
226
|
+
*/
|
|
227
|
+
export interface RedisQueueConfig {
|
|
228
|
+
url?: string | null;
|
|
229
|
+
host?: string | null;
|
|
230
|
+
port?: number | null;
|
|
231
|
+
db?: number | null;
|
|
232
|
+
username?: string | null;
|
|
233
|
+
password?: string | null;
|
|
234
|
+
default_timeout?: number | null;
|
|
235
|
+
default_result_ttl?: number | null;
|
|
236
|
+
sentinels?: Array<string> | null;
|
|
237
|
+
master_name?: string | null;
|
|
238
|
+
socket_timeout?: number | null;
|
|
239
|
+
}
|
|
240
|
+
|
|
@@ -24,7 +24,7 @@ export class CfgEndpoints {
|
|
|
24
24
|
*/
|
|
25
25
|
async urlsRetrieve(): Promise<Models.URLsList[]> {
|
|
26
26
|
const response = await this.client.request('GET', "/cfg/endpoints/urls/");
|
|
27
|
-
return (response as any).results ||
|
|
27
|
+
return (response as any).results || response;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import * as Models from "./models";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* API endpoints for Grpc Charts.
|
|
6
|
+
*/
|
|
7
|
+
export class CfgGrpcCharts {
|
|
8
|
+
private client: any;
|
|
9
|
+
|
|
10
|
+
constructor(client: any) {
|
|
11
|
+
this.client = client;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async dashboardRetrieve(hours?: number): Promise<Models.DashboardCharts>;
|
|
15
|
+
async dashboardRetrieve(params?: { hours?: number }): Promise<Models.DashboardCharts>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get all dashboard charts data
|
|
19
|
+
*
|
|
20
|
+
* Returns combined data for all charts in one request (optimized).
|
|
21
|
+
*/
|
|
22
|
+
async dashboardRetrieve(...args: any[]): Promise<Models.DashboardCharts> {
|
|
23
|
+
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
24
|
+
|
|
25
|
+
let params;
|
|
26
|
+
if (isParamsObject) {
|
|
27
|
+
params = args[0];
|
|
28
|
+
} else {
|
|
29
|
+
params = { hours: args[0] };
|
|
30
|
+
}
|
|
31
|
+
const response = await this.client.request('GET', "/cfg/grpc/charts/dashboard/", { params });
|
|
32
|
+
return response;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async errorDistributionRetrieve(hours?: number): Promise<Models.ErrorDistributionChart>;
|
|
36
|
+
async errorDistributionRetrieve(params?: { hours?: number }): Promise<Models.ErrorDistributionChart>;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Get error distribution chart data
|
|
40
|
+
*
|
|
41
|
+
* Returns distribution of error types across services.
|
|
42
|
+
*/
|
|
43
|
+
async errorDistributionRetrieve(...args: any[]): Promise<Models.ErrorDistributionChart> {
|
|
44
|
+
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
45
|
+
|
|
46
|
+
let params;
|
|
47
|
+
if (isParamsObject) {
|
|
48
|
+
params = args[0];
|
|
49
|
+
} else {
|
|
50
|
+
params = { hours: args[0] };
|
|
51
|
+
}
|
|
52
|
+
const response = await this.client.request('GET', "/cfg/grpc/charts/error-distribution/", { params });
|
|
53
|
+
return response;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
async requestVolumeRetrieve(hours?: number): Promise<Models.RequestVolumeChart>;
|
|
57
|
+
async requestVolumeRetrieve(params?: { hours?: number }): Promise<Models.RequestVolumeChart>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Get request volume chart data
|
|
61
|
+
*
|
|
62
|
+
* Returns time-series data showing request volume and success rates.
|
|
63
|
+
*/
|
|
64
|
+
async requestVolumeRetrieve(...args: any[]): Promise<Models.RequestVolumeChart> {
|
|
65
|
+
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
66
|
+
|
|
67
|
+
let params;
|
|
68
|
+
if (isParamsObject) {
|
|
69
|
+
params = args[0];
|
|
70
|
+
} else {
|
|
71
|
+
params = { hours: args[0] };
|
|
72
|
+
}
|
|
73
|
+
const response = await this.client.request('GET', "/cfg/grpc/charts/request-volume/", { params });
|
|
74
|
+
return response;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
async responseTimeRetrieve(hours?: number): Promise<Models.ResponseTimeChart>;
|
|
78
|
+
async responseTimeRetrieve(params?: { hours?: number }): Promise<Models.ResponseTimeChart>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Get response time chart data
|
|
82
|
+
*
|
|
83
|
+
* Returns time-series data showing response time statistics (avg, P50,
|
|
84
|
+
* P95, P99).
|
|
85
|
+
*/
|
|
86
|
+
async responseTimeRetrieve(...args: any[]): Promise<Models.ResponseTimeChart> {
|
|
87
|
+
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
88
|
+
|
|
89
|
+
let params;
|
|
90
|
+
if (isParamsObject) {
|
|
91
|
+
params = args[0];
|
|
92
|
+
} else {
|
|
93
|
+
params = { hours: args[0] };
|
|
94
|
+
}
|
|
95
|
+
const response = await this.client.request('GET', "/cfg/grpc/charts/response-time/", { params });
|
|
96
|
+
return response;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
async serverLifecycleRetrieve(hours?: number): Promise<Models.ServerLifecycleChart>;
|
|
100
|
+
async serverLifecycleRetrieve(params?: { hours?: number }): Promise<Models.ServerLifecycleChart>;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Get server lifecycle events
|
|
104
|
+
*
|
|
105
|
+
* Returns timeline of server start/stop/error events.
|
|
106
|
+
*/
|
|
107
|
+
async serverLifecycleRetrieve(...args: any[]): Promise<Models.ServerLifecycleChart> {
|
|
108
|
+
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
109
|
+
|
|
110
|
+
let params;
|
|
111
|
+
if (isParamsObject) {
|
|
112
|
+
params = args[0];
|
|
113
|
+
} else {
|
|
114
|
+
params = { hours: args[0] };
|
|
115
|
+
}
|
|
116
|
+
const response = await this.client.request('GET', "/cfg/grpc/charts/server-lifecycle/", { params });
|
|
117
|
+
return response;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
async serverUptimeRetrieve(hours?: number): Promise<Models.ServerUptimeChart>;
|
|
121
|
+
async serverUptimeRetrieve(params?: { hours?: number }): Promise<Models.ServerUptimeChart>;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Get server uptime chart data
|
|
125
|
+
*
|
|
126
|
+
* Returns time-series data showing number of running servers over time.
|
|
127
|
+
*/
|
|
128
|
+
async serverUptimeRetrieve(...args: any[]): Promise<Models.ServerUptimeChart> {
|
|
129
|
+
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
130
|
+
|
|
131
|
+
let params;
|
|
132
|
+
if (isParamsObject) {
|
|
133
|
+
params = args[0];
|
|
134
|
+
} else {
|
|
135
|
+
params = { hours: args[0] };
|
|
136
|
+
}
|
|
137
|
+
const response = await this.client.request('GET', "/cfg/grpc/charts/server-uptime/", { params });
|
|
138
|
+
return response;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
async serviceActivityRetrieve(hours?: number): Promise<Models.ServiceActivityChart>;
|
|
142
|
+
async serviceActivityRetrieve(params?: { hours?: number }): Promise<Models.ServiceActivityChart>;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Get service activity chart data
|
|
146
|
+
*
|
|
147
|
+
* Returns comparison data showing activity across all services.
|
|
148
|
+
*/
|
|
149
|
+
async serviceActivityRetrieve(...args: any[]): Promise<Models.ServiceActivityChart> {
|
|
150
|
+
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
151
|
+
|
|
152
|
+
let params;
|
|
153
|
+
if (isParamsObject) {
|
|
154
|
+
params = args[0];
|
|
155
|
+
} else {
|
|
156
|
+
params = { hours: args[0] };
|
|
157
|
+
}
|
|
158
|
+
const response = await this.client.request('GET', "/cfg/grpc/charts/service-activity/", { params });
|
|
159
|
+
return response;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
}
|