@djangocfg/api 1.2.8 → 1.2.9

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.
@@ -11,79 +11,6 @@ export class CfgCentrifugoMonitoring {
11
11
  this.client = client;
12
12
  }
13
13
 
14
- /**
15
- * Get Centrifugo health status
16
- *
17
- * Returns the current health status of the Centrifugo client.
18
- */
19
- async centrifugoAdminApiMonitorHealthRetrieve(): Promise<Models.HealthCheck> {
20
- const response = await this.client.request('GET', "/cfg/centrifugo/admin/api/monitor/health/");
21
- return response;
22
- }
23
-
24
- async centrifugoAdminApiMonitorOverviewRetrieve(hours?: number): Promise<Models.OverviewStats>;
25
- async centrifugoAdminApiMonitorOverviewRetrieve(params?: { hours?: number }): Promise<Models.OverviewStats>;
26
-
27
- /**
28
- * Get overview statistics
29
- *
30
- * Returns overview statistics for Centrifugo publishes.
31
- */
32
- async centrifugoAdminApiMonitorOverviewRetrieve(...args: any[]): Promise<Models.OverviewStats> {
33
- const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
34
-
35
- let params;
36
- if (isParamsObject) {
37
- params = args[0];
38
- } else {
39
- params = { hours: args[0] };
40
- }
41
- const response = await this.client.request('GET', "/cfg/centrifugo/admin/api/monitor/overview/", { params });
42
- return response;
43
- }
44
-
45
- async centrifugoAdminApiMonitorPublishesRetrieve(channel?: string, count?: number, offset?: number, status?: string): Promise<Models.RecentPublishes>;
46
- async centrifugoAdminApiMonitorPublishesRetrieve(params?: { channel?: string; count?: number; offset?: number; status?: string }): Promise<Models.RecentPublishes>;
47
-
48
- /**
49
- * Get recent publishes
50
- *
51
- * Returns a list of recent Centrifugo publishes with their details.
52
- */
53
- async centrifugoAdminApiMonitorPublishesRetrieve(...args: any[]): Promise<Models.RecentPublishes> {
54
- const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
55
-
56
- let params;
57
- if (isParamsObject) {
58
- params = args[0];
59
- } else {
60
- params = { channel: args[0], count: args[1], offset: args[2], status: args[3] };
61
- }
62
- const response = await this.client.request('GET', "/cfg/centrifugo/admin/api/monitor/publishes/", { params });
63
- return response;
64
- }
65
-
66
- async centrifugoAdminApiMonitorTimelineRetrieve(hours?: number, interval?: string): Promise<Models.ChannelList[]>;
67
- async centrifugoAdminApiMonitorTimelineRetrieve(params?: { hours?: number; interval?: string }): Promise<Models.ChannelList[]>;
68
-
69
- /**
70
- * Get channel statistics
71
- *
72
- * Returns statistics grouped by channel.
73
- */
74
- async centrifugoAdminApiMonitorTimelineRetrieve(...args: any[]): Promise<Models.ChannelList[]> {
75
- const isParamsObject = args.length === 1 && typeof args[0] === 'object' && args[0] !== null && !Array.isArray(args[0]);
76
-
77
- let params;
78
- if (isParamsObject) {
79
- params = args[0];
80
- } else {
81
- params = { hours: args[0], interval: args[1] };
82
- }
83
- const response = await this.client.request('GET', "/cfg/centrifugo/admin/api/monitor/timeline/", { params });
84
- return (response as any).results || [];
85
- }
86
-
87
14
  /**
88
15
  * Get Centrifugo health status
89
16
  *
@@ -11,49 +11,6 @@ export class CfgCentrifugoTesting {
11
11
  this.client = client;
12
12
  }
13
13
 
14
- /**
15
- * Generate connection token
16
- *
17
- * Generate JWT token for WebSocket connection to Centrifugo.
18
- */
19
- async centrifugoAdminApiTestingConnectionTokenCreate(data: Models.ConnectionTokenRequestRequest): Promise<Models.ConnectionTokenResponse> {
20
- const response = await this.client.request('POST', "/cfg/centrifugo/admin/api/testing/connection-token/", { body: data });
21
- return response;
22
- }
23
-
24
- /**
25
- * Publish test message
26
- *
27
- * Publish test message to Centrifugo via wrapper with optional ACK
28
- * tracking.
29
- */
30
- async centrifugoAdminApiTestingPublishTestCreate(data: Models.PublishTestRequestRequest): Promise<Models.PublishTestResponse> {
31
- const response = await this.client.request('POST', "/cfg/centrifugo/admin/api/testing/publish-test/", { body: data });
32
- return response;
33
- }
34
-
35
- /**
36
- * Publish with database logging
37
- *
38
- * Publish message using CentrifugoClient with database logging. This will
39
- * create CentrifugoLog records.
40
- */
41
- async centrifugoAdminApiTestingPublishWithLoggingCreate(data: Models.PublishTestRequestRequest): Promise<Models.PublishTestResponse> {
42
- const response = await this.client.request('POST', "/cfg/centrifugo/admin/api/testing/publish-with-logging/", { body: data });
43
- return response;
44
- }
45
-
46
- /**
47
- * Send manual ACK
48
- *
49
- * Manually send ACK for a message to the wrapper. Pass message_id in
50
- * request body.
51
- */
52
- async centrifugoAdminApiTestingSendAckCreate(data: Models.ManualAckRequestRequest): Promise<Models.ManualAckResponse> {
53
- const response = await this.client.request('POST', "/cfg/centrifugo/admin/api/testing/send-ack/", { body: data });
54
- return response;
55
- }
56
-
57
14
  /**
58
15
  * Generate connection token
59
16
  *