@djangocfg/api 1.2.4 → 1.2.6
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 +7562 -3753
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8096 -3976
- package/dist/index.d.ts +8096 -3976
- package/dist/index.mjs +7581 -3799
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/cfg/contexts/TasksContext.tsx +242 -0
- package/src/cfg/contexts/index.ts +3 -0
- package/src/cfg/generated/_utils/fetchers/cfg__accounts.ts +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__auth.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__accounts__user_profile.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo.ts +62 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_admin_api.ts +211 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_monitoring.ts +150 -0
- package/src/cfg/generated/_utils/fetchers/cfg__centrifugo__centrifugo_testing.ts +152 -0
- package/src/cfg/generated/_utils/fetchers/cfg__dashboard.ts +150 -0
- package/src/cfg/generated/_utils/fetchers/cfg__endpoints.ts +30 -1
- package/src/cfg/generated/_utils/fetchers/cfg__health.ts +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__knowbase.ts +57 -57
- package/src/cfg/generated/_utils/fetchers/cfg__leads.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__leads__lead_submission.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter.ts +3 -3
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__bulk_email.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__campaigns.ts +6 -6
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__logs.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__newsletters.ts +2 -2
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__subscriptions.ts +3 -3
- package/src/cfg/generated/_utils/fetchers/cfg__newsletter__testing.ts +1 -1
- package/src/cfg/generated/_utils/fetchers/cfg__payments.ts +8 -8
- package/src/cfg/generated/_utils/fetchers/cfg__support.ts +12 -12
- package/src/cfg/generated/_utils/fetchers/cfg__tasks.ts +10 -10
- package/src/cfg/generated/_utils/fetchers/index.ts +5 -2
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo.ts +49 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_admin_api.ts +246 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_monitoring.ts +137 -0
- package/src/cfg/generated/_utils/hooks/cfg__centrifugo__centrifugo_testing.ts +171 -0
- package/src/cfg/generated/_utils/hooks/cfg__dashboard.ts +137 -0
- package/src/cfg/generated/_utils/hooks/cfg__endpoints.ts +29 -0
- package/src/cfg/generated/_utils/hooks/index.ts +5 -2
- package/src/cfg/generated/_utils/schemas/ActivityEntry.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/AppStatistics.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoChannelInfo.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoChannelsRequestRequest.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoChannelsResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoChannelsResult.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoClientInfo.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoError.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoHistoryRequestRequest.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoHistoryResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoHistoryResult.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoInfoResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoInfoResult.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoMetrics.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoNodeInfo.schema.ts +30 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceRequestRequest.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceResult.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceStatsRequestRequest.schema.ts +19 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceStatsResponse.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPresenceStatsResult.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoProcess.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoPublication.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/CentrifugoStreamPosition.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ChannelList.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/ChannelStatsSerializer.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/ConnectionTokenRequestRequest.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ConnectionTokenResponse.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/DashboardOverview.schema.ts +27 -0
- package/src/cfg/generated/_utils/schemas/HealthCheck.schema.ts +5 -7
- package/src/cfg/generated/_utils/schemas/ManualAckRequestRequest.schema.ts +20 -0
- package/src/cfg/generated/_utils/schemas/ManualAckResponse.schema.ts +21 -0
- package/src/cfg/generated/_utils/schemas/OverviewStats.schema.ts +9 -12
- package/src/cfg/generated/_utils/schemas/PublishTestRequestRequest.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/PublishTestResponse.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/QuickAction.schema.ts +29 -0
- package/src/cfg/generated/_utils/schemas/RecentPublishes.schema.ts +23 -0
- package/src/cfg/generated/_utils/schemas/StatCard.schema.ts +30 -0
- package/src/cfg/generated/_utils/schemas/SystemHealth.schema.ts +24 -0
- package/src/cfg/generated/_utils/schemas/SystemHealthItem.schema.ts +28 -0
- package/src/cfg/generated/_utils/schemas/SystemMetrics.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/URLPattern.schema.ts +26 -0
- package/src/cfg/generated/_utils/schemas/URLsList.schema.ts +25 -0
- package/src/cfg/generated/_utils/schemas/UserStatistics.schema.ts +22 -0
- package/src/cfg/generated/_utils/schemas/index.ts +42 -10
- package/src/cfg/generated/cfg__centrifugo/client.ts +30 -0
- package/src/cfg/generated/cfg__centrifugo/models.ts +0 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/client.ts +136 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_admin_api/models.ts +256 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/client.ts +160 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/index.ts +2 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_monitoring/models.ts +92 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/client.ts +100 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/index.ts +2 -0
- package/src/cfg/generated/cfg__centrifugo__centrifugo_testing/models.ts +88 -0
- package/src/cfg/generated/cfg__dashboard/client.ts +106 -0
- package/src/cfg/generated/cfg__dashboard/index.ts +2 -0
- package/src/cfg/generated/cfg__dashboard/models.ts +108 -0
- package/src/cfg/generated/cfg__endpoints/client.ts +16 -0
- package/src/cfg/generated/cfg__endpoints/models.ts +44 -0
- package/src/cfg/generated/cfg__health/models.ts +7 -11
- package/src/cfg/generated/client.ts +15 -6
- package/src/cfg/generated/enums.ts +56 -0
- package/src/cfg/generated/index.ts +32 -20
- package/src/cfg/generated/schema.ts +4840 -2127
- package/src/cfg/generated/_utils/fetchers/cfg__ipc__ipcrpc_monitoring.ts +0 -179
- package/src/cfg/generated/_utils/fetchers/cfg__ipc__ipcrpc_testing.ts +0 -151
- package/src/cfg/generated/_utils/hooks/cfg__ipc__ipcrpc_monitoring.ts +0 -166
- package/src/cfg/generated/_utils/hooks/cfg__ipc__ipcrpc_testing.ts +0 -162
- package/src/cfg/generated/_utils/schemas/LoadTestRequestRequest.schema.ts +0 -22
- package/src/cfg/generated/_utils/schemas/LoadTestResponse.schema.ts +0 -21
- package/src/cfg/generated/_utils/schemas/LoadTestStatus.schema.ts +0 -27
- package/src/cfg/generated/_utils/schemas/MethodStat.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/MethodStats.schema.ts +0 -22
- package/src/cfg/generated/_utils/schemas/NotificationStats.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/RPCRequest.schema.ts +0 -25
- package/src/cfg/generated/_utils/schemas/RecentRequests.schema.ts +0 -22
- package/src/cfg/generated/_utils/schemas/TestRPCRequestRequest.schema.ts +0 -21
- package/src/cfg/generated/_utils/schemas/TestRPCResponse.schema.ts +0 -23
- package/src/cfg/generated/cfg__ipc__ipcrpc_monitoring/client.ts +0 -136
- package/src/cfg/generated/cfg__ipc__ipcrpc_monitoring/models.ts +0 -144
- package/src/cfg/generated/cfg__ipc__ipcrpc_testing/client.ts +0 -96
- package/src/cfg/generated/cfg__ipc__ipcrpc_testing/models.ts +0 -88
- /package/src/cfg/generated/{cfg__ipc__ipcrpc_monitoring → cfg__centrifugo}/index.ts +0 -0
- /package/src/cfg/generated/{cfg__ipc__ipcrpc_testing → cfg__centrifugo__centrifugo_admin_api}/index.ts +0 -0
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schema for LoadTestStatus
|
|
3
|
-
*
|
|
4
|
-
* This schema provides runtime validation and type inference.
|
|
5
|
-
* * Serializer for load test status.
|
|
6
|
-
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Serializer for load test status.
|
|
11
|
-
*/
|
|
12
|
-
export const LoadTestStatusSchema = z.object({
|
|
13
|
-
test_id: z.string().nullable(),
|
|
14
|
-
running: z.boolean(),
|
|
15
|
-
progress: z.int(),
|
|
16
|
-
total: z.int(),
|
|
17
|
-
success_count: z.int(),
|
|
18
|
-
failed_count: z.int(),
|
|
19
|
-
avg_duration_ms: z.number(),
|
|
20
|
-
elapsed_time: z.number(),
|
|
21
|
-
rps: z.number(),
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Infer TypeScript type from Zod schema
|
|
26
|
-
*/
|
|
27
|
-
export type LoadTestStatus = z.infer<typeof LoadTestStatusSchema>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schema for MethodStat
|
|
3
|
-
*
|
|
4
|
-
* This schema provides runtime validation and type inference.
|
|
5
|
-
* * Serializer for individual method statistics.
|
|
6
|
-
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Serializer for individual method statistics.
|
|
11
|
-
*/
|
|
12
|
-
export const MethodStatSchema = z.object({
|
|
13
|
-
method: z.string(),
|
|
14
|
-
count: z.int(),
|
|
15
|
-
percentage: z.number(),
|
|
16
|
-
avg_time_ms: z.number().optional(),
|
|
17
|
-
avg_time: z.number().optional(),
|
|
18
|
-
success_rate: z.number().optional(),
|
|
19
|
-
last_called: z.string().nullable().optional(),
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Infer TypeScript type from Zod schema
|
|
24
|
-
*/
|
|
25
|
-
export type MethodStat = z.infer<typeof MethodStatSchema>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schema for MethodStats
|
|
3
|
-
*
|
|
4
|
-
* This schema provides runtime validation and type inference.
|
|
5
|
-
* * Serializer for method statistics response.
|
|
6
|
-
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
import { MethodStatSchema } from './MethodStat.schema'
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Serializer for method statistics response.
|
|
12
|
-
*/
|
|
13
|
-
export const MethodStatsSchema = z.object({
|
|
14
|
-
methods: z.array(MethodStatSchema),
|
|
15
|
-
count: z.int(),
|
|
16
|
-
total_calls: z.int(),
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Infer TypeScript type from Zod schema
|
|
21
|
-
*/
|
|
22
|
-
export type MethodStats = z.infer<typeof MethodStatsSchema>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schema for NotificationStats
|
|
3
|
-
*
|
|
4
|
-
* This schema provides runtime validation and type inference.
|
|
5
|
-
* * Serializer for notification statistics.
|
|
6
|
-
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Serializer for notification statistics.
|
|
11
|
-
*/
|
|
12
|
-
export const NotificationStatsSchema = z.object({
|
|
13
|
-
total_sent: z.int(),
|
|
14
|
-
delivery_rate: z.number(),
|
|
15
|
-
by_type: z.record(z.string(), z.any()).optional(),
|
|
16
|
-
recent: z.array(z.string()).optional(),
|
|
17
|
-
last_sent: z.string().nullable().optional(),
|
|
18
|
-
timestamp: z.string().optional(),
|
|
19
|
-
error: z.string().nullable().optional(),
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Infer TypeScript type from Zod schema
|
|
24
|
-
*/
|
|
25
|
-
export type NotificationStats = z.infer<typeof NotificationStatsSchema>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schema for RPCRequest
|
|
3
|
-
*
|
|
4
|
-
* This schema provides runtime validation and type inference.
|
|
5
|
-
* * Serializer for individual RPC request.
|
|
6
|
-
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Serializer for individual RPC request.
|
|
11
|
-
*/
|
|
12
|
-
export const RPCRequestSchema = z.object({
|
|
13
|
-
id: z.string().optional(),
|
|
14
|
-
request_id: z.string().optional(),
|
|
15
|
-
timestamp: z.string(),
|
|
16
|
-
method: z.string().nullable(),
|
|
17
|
-
params: z.record(z.string(), z.any()).nullable().optional(),
|
|
18
|
-
correlation_id: z.string().nullable().optional(),
|
|
19
|
-
source: z.string().nullable().optional(),
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Infer TypeScript type from Zod schema
|
|
24
|
-
*/
|
|
25
|
-
export type RPCRequest = z.infer<typeof RPCRequestSchema>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schema for RecentRequests
|
|
3
|
-
*
|
|
4
|
-
* This schema provides runtime validation and type inference.
|
|
5
|
-
* * Serializer for recent requests response.
|
|
6
|
-
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
import { RPCRequestSchema } from './RPCRequest.schema'
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Serializer for recent requests response.
|
|
12
|
-
*/
|
|
13
|
-
export const RecentRequestsSchema = z.object({
|
|
14
|
-
requests: z.array(RPCRequestSchema),
|
|
15
|
-
count: z.int(),
|
|
16
|
-
total_available: z.int(),
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Infer TypeScript type from Zod schema
|
|
21
|
-
*/
|
|
22
|
-
export type RecentRequests = z.infer<typeof RecentRequestsSchema>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schema for TestRPCRequestRequest
|
|
3
|
-
*
|
|
4
|
-
* This schema provides runtime validation and type inference.
|
|
5
|
-
* * Serializer for test RPC request input.
|
|
6
|
-
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Serializer for test RPC request input.
|
|
11
|
-
*/
|
|
12
|
-
export const TestRPCRequestRequestSchema = z.object({
|
|
13
|
-
method: z.string().min(1),
|
|
14
|
-
params: z.string(),
|
|
15
|
-
timeout: z.int().min(1.0).max(60.0).optional(),
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Infer TypeScript type from Zod schema
|
|
20
|
-
*/
|
|
21
|
-
export type TestRPCRequestRequest = z.infer<typeof TestRPCRequestRequestSchema>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Zod schema for TestRPCResponse
|
|
3
|
-
*
|
|
4
|
-
* This schema provides runtime validation and type inference.
|
|
5
|
-
* * Serializer for test RPC response.
|
|
6
|
-
* */
|
|
7
|
-
import { z } from 'zod'
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Serializer for test RPC response.
|
|
11
|
-
*/
|
|
12
|
-
export const TestRPCResponseSchema = z.object({
|
|
13
|
-
success: z.boolean(),
|
|
14
|
-
duration_ms: z.number(),
|
|
15
|
-
response: z.string().nullable().optional(),
|
|
16
|
-
error: z.string().nullable().optional(),
|
|
17
|
-
correlation_id: z.string(),
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Infer TypeScript type from Zod schema
|
|
22
|
-
*/
|
|
23
|
-
export type TestRPCResponse = z.infer<typeof TestRPCResponseSchema>
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import * as Models from "./models";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* API endpoints for IPC/RPC Monitoring.
|
|
6
|
-
*/
|
|
7
|
-
export class CfgIpcrpcMonitoring {
|
|
8
|
-
private client: any;
|
|
9
|
-
|
|
10
|
-
constructor(client: any) {
|
|
11
|
-
this.client = client;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Get RPC health status
|
|
16
|
-
*
|
|
17
|
-
* Returns the current health status of the RPC monitoring system.
|
|
18
|
-
*/
|
|
19
|
-
async ipcAdminApiMonitorHealthRetrieve(): Promise<Models.HealthCheck> {
|
|
20
|
-
const response = await this.client.request('GET', "/cfg/ipc/admin/api/monitor/health/");
|
|
21
|
-
return response;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Get method statistics
|
|
26
|
-
*
|
|
27
|
-
* Returns statistics grouped by RPC method.
|
|
28
|
-
*/
|
|
29
|
-
async ipcAdminApiMonitorMethodsRetrieve(): Promise<Models.MethodStats> {
|
|
30
|
-
const response = await this.client.request('GET', "/cfg/ipc/admin/api/monitor/methods/");
|
|
31
|
-
return response;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Get notification statistics
|
|
36
|
-
*
|
|
37
|
-
* Returns statistics about RPC notifications.
|
|
38
|
-
*/
|
|
39
|
-
async ipcAdminApiMonitorNotificationsRetrieve(): Promise<Models.NotificationStats> {
|
|
40
|
-
const response = await this.client.request('GET', "/cfg/ipc/admin/api/monitor/notifications/");
|
|
41
|
-
return response;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Get overview statistics
|
|
46
|
-
*
|
|
47
|
-
* Returns overview statistics for RPC monitoring.
|
|
48
|
-
*/
|
|
49
|
-
async ipcAdminApiMonitorOverviewRetrieve(): Promise<Models.OverviewStats> {
|
|
50
|
-
const response = await this.client.request('GET', "/cfg/ipc/admin/api/monitor/overview/");
|
|
51
|
-
return response;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
async ipcAdminApiMonitorRequestsRetrieve(count?: number): Promise<Models.RecentRequests>;
|
|
55
|
-
async ipcAdminApiMonitorRequestsRetrieve(params?: { count?: number }): Promise<Models.RecentRequests>;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Get recent RPC requests
|
|
59
|
-
*
|
|
60
|
-
* Returns a list of recent RPC requests with their details.
|
|
61
|
-
*/
|
|
62
|
-
async ipcAdminApiMonitorRequestsRetrieve(...args: any[]): Promise<Models.RecentRequests> {
|
|
63
|
-
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
64
|
-
|
|
65
|
-
let params;
|
|
66
|
-
if (isParamsObject) {
|
|
67
|
-
params = args[0];
|
|
68
|
-
} else {
|
|
69
|
-
params = { count: args[0] };
|
|
70
|
-
}
|
|
71
|
-
const response = await this.client.request('GET', "/cfg/ipc/admin/api/monitor/requests/", { params });
|
|
72
|
-
return response;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Get RPC health status
|
|
77
|
-
*
|
|
78
|
-
* Returns the current health status of the RPC monitoring system.
|
|
79
|
-
*/
|
|
80
|
-
async ipcMonitorHealthRetrieve(): Promise<Models.HealthCheck> {
|
|
81
|
-
const response = await this.client.request('GET', "/cfg/ipc/monitor/health/");
|
|
82
|
-
return response;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Get method statistics
|
|
87
|
-
*
|
|
88
|
-
* Returns statistics grouped by RPC method.
|
|
89
|
-
*/
|
|
90
|
-
async ipcMonitorMethodsRetrieve(): Promise<Models.MethodStats> {
|
|
91
|
-
const response = await this.client.request('GET', "/cfg/ipc/monitor/methods/");
|
|
92
|
-
return response;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Get notification statistics
|
|
97
|
-
*
|
|
98
|
-
* Returns statistics about RPC notifications.
|
|
99
|
-
*/
|
|
100
|
-
async ipcMonitorNotificationsRetrieve(): Promise<Models.NotificationStats> {
|
|
101
|
-
const response = await this.client.request('GET', "/cfg/ipc/monitor/notifications/");
|
|
102
|
-
return response;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Get overview statistics
|
|
107
|
-
*
|
|
108
|
-
* Returns overview statistics for RPC monitoring.
|
|
109
|
-
*/
|
|
110
|
-
async ipcMonitorOverviewRetrieve(): Promise<Models.OverviewStats> {
|
|
111
|
-
const response = await this.client.request('GET', "/cfg/ipc/monitor/overview/");
|
|
112
|
-
return response;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
async ipcMonitorRequestsRetrieve(count?: number): Promise<Models.RecentRequests>;
|
|
116
|
-
async ipcMonitorRequestsRetrieve(params?: { count?: number }): Promise<Models.RecentRequests>;
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Get recent RPC requests
|
|
120
|
-
*
|
|
121
|
-
* Returns a list of recent RPC requests with their details.
|
|
122
|
-
*/
|
|
123
|
-
async ipcMonitorRequestsRetrieve(...args: any[]): Promise<Models.RecentRequests> {
|
|
124
|
-
const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
|
|
125
|
-
|
|
126
|
-
let params;
|
|
127
|
-
if (isParamsObject) {
|
|
128
|
-
params = args[0];
|
|
129
|
-
} else {
|
|
130
|
-
params = { count: args[0] };
|
|
131
|
-
}
|
|
132
|
-
const response = await this.client.request('GET', "/cfg/ipc/monitor/requests/", { params });
|
|
133
|
-
return response;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Serializer for health check response.
|
|
3
|
-
*
|
|
4
|
-
* Response model (includes read-only fields).
|
|
5
|
-
*/
|
|
6
|
-
export interface HealthCheck {
|
|
7
|
-
/** Overall health status: healthy, degraded, or unhealthy */
|
|
8
|
-
status: string;
|
|
9
|
-
/** Timestamp of the health check */
|
|
10
|
-
timestamp: string;
|
|
11
|
-
/** Service name */
|
|
12
|
-
service: string;
|
|
13
|
-
/** Django-CFG version */
|
|
14
|
-
version: string;
|
|
15
|
-
/** Detailed health checks for databases, cache, and system */
|
|
16
|
-
checks: Record<string, any>;
|
|
17
|
-
/** Environment information */
|
|
18
|
-
environment: Record<string, any>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Serializer for method statistics response.
|
|
23
|
-
*
|
|
24
|
-
* Response model (includes read-only fields).
|
|
25
|
-
*/
|
|
26
|
-
export interface MethodStats {
|
|
27
|
-
/** List of method statistics */
|
|
28
|
-
methods: Array<MethodStat>;
|
|
29
|
-
/** Total number of methods */
|
|
30
|
-
count: number;
|
|
31
|
-
/** Total calls across all methods */
|
|
32
|
-
total_calls: number;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Serializer for notification statistics.
|
|
37
|
-
*
|
|
38
|
-
* Response model (includes read-only fields).
|
|
39
|
-
*/
|
|
40
|
-
export interface NotificationStats {
|
|
41
|
-
/** Total notifications sent */
|
|
42
|
-
total_sent: number;
|
|
43
|
-
/** Delivery success rate percentage */
|
|
44
|
-
delivery_rate: number;
|
|
45
|
-
/** Breakdown by notification type */
|
|
46
|
-
by_type?: Record<string, any>;
|
|
47
|
-
/** Recent notifications */
|
|
48
|
-
recent?: Array<string>;
|
|
49
|
-
/** ISO timestamp of last notification */
|
|
50
|
-
last_sent?: string | null;
|
|
51
|
-
/** ISO timestamp of the stats */
|
|
52
|
-
timestamp?: string;
|
|
53
|
-
/** Error message if any */
|
|
54
|
-
error?: string | null;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Serializer for overview statistics.
|
|
59
|
-
*
|
|
60
|
-
* Response model (includes read-only fields).
|
|
61
|
-
*/
|
|
62
|
-
export interface OverviewStats {
|
|
63
|
-
/** Whether Redis is connected */
|
|
64
|
-
redis_connected?: boolean;
|
|
65
|
-
/** Total requests processed today */
|
|
66
|
-
total_requests_today: number;
|
|
67
|
-
/** Total requests in the last hour */
|
|
68
|
-
total_requests_hour?: number;
|
|
69
|
-
/** List of active RPC methods */
|
|
70
|
-
active_methods: Array<string>;
|
|
71
|
-
/** Most frequently called method */
|
|
72
|
-
top_method?: string | null;
|
|
73
|
-
/** Count of requests per method */
|
|
74
|
-
method_counts?: Record<string, any>;
|
|
75
|
-
/** Average response time in milliseconds */
|
|
76
|
-
avg_response_time_ms: number;
|
|
77
|
-
/** Success rate percentage */
|
|
78
|
-
success_rate: number;
|
|
79
|
-
/** Error rate percentage */
|
|
80
|
-
error_rate?: number;
|
|
81
|
-
/** ISO timestamp of the stats */
|
|
82
|
-
timestamp?: string;
|
|
83
|
-
/** Error message if any */
|
|
84
|
-
error?: string | null;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Serializer for recent requests response.
|
|
89
|
-
*
|
|
90
|
-
* Response model (includes read-only fields).
|
|
91
|
-
*/
|
|
92
|
-
export interface RecentRequests {
|
|
93
|
-
/** List of recent RPC requests */
|
|
94
|
-
requests: Array<RPCRequest>;
|
|
95
|
-
/** Number of requests returned */
|
|
96
|
-
count: number;
|
|
97
|
-
/** Total number of requests available */
|
|
98
|
-
total_available: number;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Serializer for individual method statistics.
|
|
103
|
-
*
|
|
104
|
-
* Response model (includes read-only fields).
|
|
105
|
-
*/
|
|
106
|
-
export interface MethodStat {
|
|
107
|
-
/** RPC method name */
|
|
108
|
-
method: string;
|
|
109
|
-
/** Number of calls */
|
|
110
|
-
count: number;
|
|
111
|
-
/** Percentage of total calls */
|
|
112
|
-
percentage: number;
|
|
113
|
-
/** Average execution time in milliseconds */
|
|
114
|
-
avg_time_ms?: number;
|
|
115
|
-
/** Average execution time (alternative field) */
|
|
116
|
-
avg_time?: number;
|
|
117
|
-
/** Success rate percentage */
|
|
118
|
-
success_rate?: number;
|
|
119
|
-
/** ISO timestamp of last call */
|
|
120
|
-
last_called?: string | null;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Serializer for individual RPC request.
|
|
125
|
-
*
|
|
126
|
-
* Request model (no read-only fields).
|
|
127
|
-
*/
|
|
128
|
-
export interface RPCRequest {
|
|
129
|
-
/** Stream entry ID */
|
|
130
|
-
id?: string;
|
|
131
|
-
/** Unique request ID */
|
|
132
|
-
request_id?: string;
|
|
133
|
-
/** ISO timestamp of the request */
|
|
134
|
-
timestamp: string;
|
|
135
|
-
/** RPC method name */
|
|
136
|
-
method: string | null;
|
|
137
|
-
/** Request parameters */
|
|
138
|
-
params?: Record<string, any> | null;
|
|
139
|
-
/** Correlation ID for tracking */
|
|
140
|
-
correlation_id?: string | null;
|
|
141
|
-
/** Source of the request */
|
|
142
|
-
source?: string | null;
|
|
143
|
-
}
|
|
144
|
-
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import * as Models from "./models";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* API endpoints for IPC/RPC Testing.
|
|
6
|
-
*/
|
|
7
|
-
export class CfgIpcrpcTesting {
|
|
8
|
-
private client: any;
|
|
9
|
-
|
|
10
|
-
constructor(client: any) {
|
|
11
|
-
this.client = client;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Start load test
|
|
16
|
-
*
|
|
17
|
-
* Start a load test by sending multiple concurrent RPC requests.
|
|
18
|
-
*/
|
|
19
|
-
async ipcAdminApiTestLoadStartCreate(data: Models.LoadTestRequestRequest): Promise<Models.LoadTestResponse> {
|
|
20
|
-
const response = await this.client.request('POST', "/cfg/ipc/admin/api/test/load/start/", { body: data });
|
|
21
|
-
return response;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Get load test status
|
|
26
|
-
*
|
|
27
|
-
* Get current status of running or completed load test.
|
|
28
|
-
*/
|
|
29
|
-
async ipcAdminApiTestLoadStatusRetrieve(): Promise<Models.LoadTestStatus> {
|
|
30
|
-
const response = await this.client.request('GET', "/cfg/ipc/admin/api/test/load/status/");
|
|
31
|
-
return response;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Stop load test
|
|
36
|
-
*
|
|
37
|
-
* Stop currently running load test.
|
|
38
|
-
*/
|
|
39
|
-
async ipcAdminApiTestLoadStopCreate(data: Models.TestRPCRequestRequest): Promise<any> {
|
|
40
|
-
const response = await this.client.request('POST', "/cfg/ipc/admin/api/test/load/stop/", { body: data });
|
|
41
|
-
return response;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Send test RPC request
|
|
46
|
-
*
|
|
47
|
-
* Send a single RPC request for testing purposes and measure response
|
|
48
|
-
* time.
|
|
49
|
-
*/
|
|
50
|
-
async ipcAdminApiTestSendCreate(data: Models.TestRPCRequestRequest): Promise<Models.TestRPCResponse> {
|
|
51
|
-
const response = await this.client.request('POST', "/cfg/ipc/admin/api/test/send/", { body: data });
|
|
52
|
-
return response;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Start load test
|
|
57
|
-
*
|
|
58
|
-
* Start a load test by sending multiple concurrent RPC requests.
|
|
59
|
-
*/
|
|
60
|
-
async ipcTestLoadStartCreate(data: Models.LoadTestRequestRequest): Promise<Models.LoadTestResponse> {
|
|
61
|
-
const response = await this.client.request('POST', "/cfg/ipc/test/load/start/", { body: data });
|
|
62
|
-
return response;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Get load test status
|
|
67
|
-
*
|
|
68
|
-
* Get current status of running or completed load test.
|
|
69
|
-
*/
|
|
70
|
-
async ipcTestLoadStatusRetrieve(): Promise<Models.LoadTestStatus> {
|
|
71
|
-
const response = await this.client.request('GET', "/cfg/ipc/test/load/status/");
|
|
72
|
-
return response;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Stop load test
|
|
77
|
-
*
|
|
78
|
-
* Stop currently running load test.
|
|
79
|
-
*/
|
|
80
|
-
async ipcTestLoadStopCreate(data: Models.TestRPCRequestRequest): Promise<any> {
|
|
81
|
-
const response = await this.client.request('POST', "/cfg/ipc/test/load/stop/", { body: data });
|
|
82
|
-
return response;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Send test RPC request
|
|
87
|
-
*
|
|
88
|
-
* Send a single RPC request for testing purposes and measure response
|
|
89
|
-
* time.
|
|
90
|
-
*/
|
|
91
|
-
async ipcTestSendCreate(data: Models.TestRPCRequestRequest): Promise<Models.TestRPCResponse> {
|
|
92
|
-
const response = await this.client.request('POST', "/cfg/ipc/test/send/", { body: data });
|
|
93
|
-
return response;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Serializer for load test request input.
|
|
3
|
-
*
|
|
4
|
-
* Request model (no read-only fields).
|
|
5
|
-
*/
|
|
6
|
-
export interface LoadTestRequestRequest {
|
|
7
|
-
/** RPC method to test */
|
|
8
|
-
method: string;
|
|
9
|
-
/** Total number of requests to send */
|
|
10
|
-
total_requests: number;
|
|
11
|
-
/** Number of concurrent requests */
|
|
12
|
-
concurrency: number;
|
|
13
|
-
/** Parameters template for RPC calls */
|
|
14
|
-
params?: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Serializer for load test response.
|
|
19
|
-
*
|
|
20
|
-
* Response model (includes read-only fields).
|
|
21
|
-
*/
|
|
22
|
-
export interface LoadTestResponse {
|
|
23
|
-
/** Unique test ID */
|
|
24
|
-
test_id: string;
|
|
25
|
-
/** Whether test was started successfully */
|
|
26
|
-
started: boolean;
|
|
27
|
-
/** Status message */
|
|
28
|
-
message: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Serializer for load test status.
|
|
33
|
-
*
|
|
34
|
-
* Response model (includes read-only fields).
|
|
35
|
-
*/
|
|
36
|
-
export interface LoadTestStatus {
|
|
37
|
-
/** Unique test ID */
|
|
38
|
-
test_id: string | null;
|
|
39
|
-
/** Whether test is currently running */
|
|
40
|
-
running: boolean;
|
|
41
|
-
/** Number of completed requests */
|
|
42
|
-
progress: number;
|
|
43
|
-
/** Total number of requests */
|
|
44
|
-
total: number;
|
|
45
|
-
/** Number of successful requests */
|
|
46
|
-
success_count: number;
|
|
47
|
-
/** Number of failed requests */
|
|
48
|
-
failed_count: number;
|
|
49
|
-
/** Average duration in milliseconds */
|
|
50
|
-
avg_duration_ms: number;
|
|
51
|
-
/** Total elapsed time in seconds */
|
|
52
|
-
elapsed_time: number;
|
|
53
|
-
/** Requests per second */
|
|
54
|
-
rps: number;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Serializer for test RPC request input.
|
|
59
|
-
*
|
|
60
|
-
* Request model (no read-only fields).
|
|
61
|
-
*/
|
|
62
|
-
export interface TestRPCRequestRequest {
|
|
63
|
-
/** RPC method to call */
|
|
64
|
-
method: string;
|
|
65
|
-
/** Parameters for the RPC call */
|
|
66
|
-
params: string;
|
|
67
|
-
/** Timeout in seconds */
|
|
68
|
-
timeout?: number;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Serializer for test RPC response.
|
|
73
|
-
*
|
|
74
|
-
* Response model (includes read-only fields).
|
|
75
|
-
*/
|
|
76
|
-
export interface TestRPCResponse {
|
|
77
|
-
/** Whether the call was successful */
|
|
78
|
-
success: boolean;
|
|
79
|
-
/** Call duration in milliseconds */
|
|
80
|
-
duration_ms: number;
|
|
81
|
-
/** Response data from RPC call */
|
|
82
|
-
response?: string | null;
|
|
83
|
-
/** Error message if failed */
|
|
84
|
-
error?: string | null;
|
|
85
|
-
/** Correlation ID for tracking */
|
|
86
|
-
correlation_id: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
File without changes
|
|
File without changes
|