@djangocfg/api 1.2.18 → 1.2.19

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.
@@ -21,6 +21,7 @@ import { CfgAccounts } from "./cfg__accounts";
21
21
  import { CfgCentrifugo } from "./cfg__centrifugo";
22
22
  import { CfgDashboard } from "./cfg__dashboard";
23
23
  import { CfgEndpoints } from "./cfg__endpoints";
24
+ import { CfgGrpcMonitoring } from "./cfg__grpc__grpc_monitoring";
24
25
  import { CfgHealth } from "./cfg__health";
25
26
  import { CfgKnowbase } from "./cfg__knowbase";
26
27
  import { CfgLeads } from "./cfg__leads";
@@ -79,6 +80,7 @@ export class APIClient {
79
80
  public cfg_centrifugo: CfgCentrifugo;
80
81
  public cfg_dashboard: CfgDashboard;
81
82
  public cfg_endpoints: CfgEndpoints;
83
+ public cfg_grpc_monitoring: CfgGrpcMonitoring;
82
84
  public cfg_health: CfgHealth;
83
85
  public cfg_knowbase: CfgKnowbase;
84
86
  public cfg_leads: CfgLeads;
@@ -132,6 +134,7 @@ export class APIClient {
132
134
  this.cfg_centrifugo = new CfgCentrifugo(this);
133
135
  this.cfg_dashboard = new CfgDashboard(this);
134
136
  this.cfg_endpoints = new CfgEndpoints(this);
137
+ this.cfg_grpc_monitoring = new CfgGrpcMonitoring(this);
135
138
  this.cfg_health = new CfgHealth(this);
136
139
  this.cfg_knowbase = new CfgKnowbase(this);
137
140
  this.cfg_leads = new CfgLeads(this);
@@ -66,6 +66,7 @@ import { CfgAccounts } from "./cfg__accounts/client";
66
66
  import { CfgCentrifugo } from "./cfg__centrifugo/client";
67
67
  import { CfgDashboard } from "./cfg__dashboard/client";
68
68
  import { CfgEndpoints } from "./cfg__endpoints/client";
69
+ import { CfgGrpcMonitoring } from "./cfg__grpc__grpc_monitoring/client";
69
70
  import { CfgHealth } from "./cfg__health/client";
70
71
  import { CfgKnowbase } from "./cfg__knowbase/client";
71
72
  import { CfgLeads } from "./cfg__leads/client";
@@ -96,6 +97,7 @@ export * as CfgAccountsTypes from "./cfg__accounts/models";
96
97
  export * as CfgCentrifugoTypes from "./cfg__centrifugo/models";
97
98
  export * as CfgDashboardTypes from "./cfg__dashboard/models";
98
99
  export * as CfgEndpointsTypes from "./cfg__endpoints/models";
100
+ export * as CfgGrpcMonitoringTypes from "./cfg__grpc__grpc_monitoring/models";
99
101
  export * as CfgHealthTypes from "./cfg__health/models";
100
102
  export * as CfgKnowbaseTypes from "./cfg__knowbase/models";
101
103
  export * as CfgLeadsTypes from "./cfg__leads/models";
@@ -194,6 +196,7 @@ export class API {
194
196
  public cfg_centrifugo!: CfgCentrifugo;
195
197
  public cfg_dashboard!: CfgDashboard;
196
198
  public cfg_endpoints!: CfgEndpoints;
199
+ public cfg_grpc_monitoring!: CfgGrpcMonitoring;
197
200
  public cfg_health!: CfgHealth;
198
201
  public cfg_knowbase!: CfgKnowbase;
199
202
  public cfg_leads!: CfgLeads;
@@ -247,6 +250,7 @@ export class API {
247
250
  this.cfg_centrifugo = this._client.cfg_centrifugo;
248
251
  this.cfg_dashboard = this._client.cfg_dashboard;
249
252
  this.cfg_endpoints = this._client.cfg_endpoints;
253
+ this.cfg_grpc_monitoring = this._client.cfg_grpc_monitoring;
250
254
  this.cfg_health = this._client.cfg_health;
251
255
  this.cfg_knowbase = this._client.cfg_knowbase;
252
256
  this.cfg_leads = this._client.cfg_leads;
@@ -294,6 +298,7 @@ export class API {
294
298
  this.cfg_centrifugo = this._client.cfg_centrifugo;
295
299
  this.cfg_dashboard = this._client.cfg_dashboard;
296
300
  this.cfg_endpoints = this._client.cfg_endpoints;
301
+ this.cfg_grpc_monitoring = this._client.cfg_grpc_monitoring;
297
302
  this.cfg_health = this._client.cfg_health;
298
303
  this.cfg_knowbase = this._client.cfg_knowbase;
299
304
  this.cfg_leads = this._client.cfg_leads;
@@ -3847,6 +3847,88 @@ export const OPENAPI_SCHEMA = {
3847
3847
  ],
3848
3848
  "type": "object"
3849
3849
  },
3850
+ "MethodList": {
3851
+ "description": "List of gRPC methods with statistics.",
3852
+ "properties": {
3853
+ "methods": {
3854
+ "description": "Method statistics",
3855
+ "items": {
3856
+ "$ref": "#/components/schemas/MethodStatsSerializer"
3857
+ },
3858
+ "title": "Methods",
3859
+ "type": "array"
3860
+ },
3861
+ "total_methods": {
3862
+ "description": "Total number of methods",
3863
+ "title": "Total Methods",
3864
+ "type": "integer"
3865
+ }
3866
+ },
3867
+ "required": [
3868
+ "methods",
3869
+ "total_methods"
3870
+ ],
3871
+ "title": "MethodListSerializer",
3872
+ "type": "object"
3873
+ },
3874
+ "MethodStatsSerializer": {
3875
+ "description": "Statistics for a single gRPC method.",
3876
+ "properties": {
3877
+ "avg_duration_ms": {
3878
+ "description": "Average duration",
3879
+ "title": "Avg Duration Ms",
3880
+ "type": "number"
3881
+ },
3882
+ "errors": {
3883
+ "description": "Error requests",
3884
+ "title": "Errors",
3885
+ "type": "integer"
3886
+ },
3887
+ "last_activity_at": {
3888
+ "anyOf": [
3889
+ {
3890
+ "type": "string"
3891
+ },
3892
+ {
3893
+ "type": "null"
3894
+ }
3895
+ ],
3896
+ "description": "Last activity timestamp",
3897
+ "title": "Last Activity At"
3898
+ },
3899
+ "method_name": {
3900
+ "description": "Method name",
3901
+ "title": "Method Name",
3902
+ "type": "string"
3903
+ },
3904
+ "service_name": {
3905
+ "description": "Service name",
3906
+ "title": "Service Name",
3907
+ "type": "string"
3908
+ },
3909
+ "successful": {
3910
+ "description": "Successful requests",
3911
+ "title": "Successful",
3912
+ "type": "integer"
3913
+ },
3914
+ "total": {
3915
+ "description": "Total requests",
3916
+ "title": "Total",
3917
+ "type": "integer"
3918
+ }
3919
+ },
3920
+ "required": [
3921
+ "method_name",
3922
+ "service_name",
3923
+ "total",
3924
+ "successful",
3925
+ "errors",
3926
+ "avg_duration_ms",
3927
+ "last_activity_at"
3928
+ ],
3929
+ "title": "MethodStatsSerializer",
3930
+ "type": "object"
3931
+ },
3850
3932
  "Newsletter": {
3851
3933
  "description": "Serializer for Newsletter model.",
3852
3934
  "properties": {
@@ -6313,6 +6395,49 @@ export const OPENAPI_SCHEMA = {
6313
6395
  "title": "RecentPublishesSerializer",
6314
6396
  "type": "object"
6315
6397
  },
6398
+ "RecentRequests": {
6399
+ "description": "Recent gRPC requests list.",
6400
+ "properties": {
6401
+ "count": {
6402
+ "description": "Number of requests returned",
6403
+ "title": "Count",
6404
+ "type": "integer"
6405
+ },
6406
+ "has_more": {
6407
+ "default": false,
6408
+ "description": "Whether more results are available",
6409
+ "title": "Has More",
6410
+ "type": "boolean"
6411
+ },
6412
+ "offset": {
6413
+ "default": 0,
6414
+ "description": "Current offset for pagination",
6415
+ "title": "Offset",
6416
+ "type": "integer"
6417
+ },
6418
+ "requests": {
6419
+ "description": "List of recent requests",
6420
+ "items": {
6421
+ "additionalProperties": true,
6422
+ "type": "object"
6423
+ },
6424
+ "title": "Requests",
6425
+ "type": "array"
6426
+ },
6427
+ "total_available": {
6428
+ "description": "Total requests available",
6429
+ "title": "Total Available",
6430
+ "type": "integer"
6431
+ }
6432
+ },
6433
+ "required": [
6434
+ "requests",
6435
+ "count",
6436
+ "total_available"
6437
+ ],
6438
+ "title": "RecentRequestsSerializer",
6439
+ "type": "object"
6440
+ },
6316
6441
  "RecentUser": {
6317
6442
  "description": "Recent user serializer.",
6318
6443
  "properties": {
@@ -6438,6 +6563,82 @@ export const OPENAPI_SCHEMA = {
6438
6563
  ],
6439
6564
  "type": "object"
6440
6565
  },
6566
+ "ServiceList": {
6567
+ "description": "List of gRPC services with statistics.",
6568
+ "properties": {
6569
+ "services": {
6570
+ "description": "Service statistics",
6571
+ "items": {
6572
+ "$ref": "#/components/schemas/ServiceStatsSerializer"
6573
+ },
6574
+ "title": "Services",
6575
+ "type": "array"
6576
+ },
6577
+ "total_services": {
6578
+ "description": "Total number of services",
6579
+ "title": "Total Services",
6580
+ "type": "integer"
6581
+ }
6582
+ },
6583
+ "required": [
6584
+ "services",
6585
+ "total_services"
6586
+ ],
6587
+ "title": "ServiceListSerializer",
6588
+ "type": "object"
6589
+ },
6590
+ "ServiceStatsSerializer": {
6591
+ "description": "Statistics for a single gRPC service.",
6592
+ "properties": {
6593
+ "avg_duration_ms": {
6594
+ "description": "Average duration",
6595
+ "title": "Avg Duration Ms",
6596
+ "type": "number"
6597
+ },
6598
+ "errors": {
6599
+ "description": "Error requests",
6600
+ "title": "Errors",
6601
+ "type": "integer"
6602
+ },
6603
+ "last_activity_at": {
6604
+ "anyOf": [
6605
+ {
6606
+ "type": "string"
6607
+ },
6608
+ {
6609
+ "type": "null"
6610
+ }
6611
+ ],
6612
+ "description": "Last activity timestamp",
6613
+ "title": "Last Activity At"
6614
+ },
6615
+ "service_name": {
6616
+ "description": "Service name",
6617
+ "title": "Service Name",
6618
+ "type": "string"
6619
+ },
6620
+ "successful": {
6621
+ "description": "Successful requests",
6622
+ "title": "Successful",
6623
+ "type": "integer"
6624
+ },
6625
+ "total": {
6626
+ "description": "Total requests",
6627
+ "title": "Total",
6628
+ "type": "integer"
6629
+ }
6630
+ },
6631
+ "required": [
6632
+ "service_name",
6633
+ "total",
6634
+ "successful",
6635
+ "errors",
6636
+ "avg_duration_ms",
6637
+ "last_activity_at"
6638
+ ],
6639
+ "title": "ServiceStatsSerializer",
6640
+ "type": "object"
6641
+ },
6441
6642
  "StatCard": {
6442
6643
  "description": "Serializer for dashboard statistics cards.\n\nMaps to StatCard Pydantic model.",
6443
6644
  "properties": {
@@ -7858,7 +8059,8 @@ export const OPENAPI_SCHEMA = {
7858
8059
  "django_cfg_agents",
7859
8060
  "tasks",
7860
8061
  "payments",
7861
- "django_cfg_centrifugo"
8062
+ "django_cfg_centrifugo",
8063
+ "grpc"
7862
8064
  ],
7863
8065
  "generator": "django-client",
7864
8066
  "generator_version": "1.0.0",
@@ -10304,6 +10506,368 @@ export const OPENAPI_SCHEMA = {
10304
10506
  "x-async-capable": false
10305
10507
  }
10306
10508
  },
10509
+ "/cfg/grpc/monitor/health/": {
10510
+ "get": {
10511
+ "description": "Returns the current health status of the gRPC server.",
10512
+ "operationId": "cfg_grpc_monitor_health_retrieve",
10513
+ "responses": {
10514
+ "200": {
10515
+ "content": {
10516
+ "application/json": {
10517
+ "schema": {
10518
+ "$ref": "#/components/schemas/HealthCheck"
10519
+ }
10520
+ }
10521
+ },
10522
+ "description": ""
10523
+ },
10524
+ "503": {
10525
+ "content": {
10526
+ "application/json": {
10527
+ "schema": {
10528
+ "description": "Service unavailable"
10529
+ }
10530
+ }
10531
+ },
10532
+ "description": ""
10533
+ }
10534
+ },
10535
+ "security": [
10536
+ {
10537
+ "jwtAuth": []
10538
+ },
10539
+ {
10540
+ "cookieAuth": []
10541
+ },
10542
+ {
10543
+ "basicAuth": []
10544
+ }
10545
+ ],
10546
+ "summary": "Get gRPC health status",
10547
+ "tags": [
10548
+ "gRPC Monitoring"
10549
+ ],
10550
+ "x-async-capable": false
10551
+ }
10552
+ },
10553
+ "/cfg/grpc/monitor/methods/": {
10554
+ "get": {
10555
+ "description": "Returns statistics grouped by method.",
10556
+ "operationId": "cfg_grpc_monitor_methods_retrieve",
10557
+ "parameters": [
10558
+ {
10559
+ "description": "Statistics period in hours (default: 24)",
10560
+ "in": "query",
10561
+ "name": "hours",
10562
+ "schema": {
10563
+ "type": "integer"
10564
+ }
10565
+ },
10566
+ {
10567
+ "description": "Filter by service name",
10568
+ "in": "query",
10569
+ "name": "service",
10570
+ "schema": {
10571
+ "type": "string"
10572
+ }
10573
+ }
10574
+ ],
10575
+ "responses": {
10576
+ "200": {
10577
+ "content": {
10578
+ "application/json": {
10579
+ "schema": {
10580
+ "$ref": "#/components/schemas/MethodList"
10581
+ }
10582
+ }
10583
+ },
10584
+ "description": ""
10585
+ },
10586
+ "400": {
10587
+ "content": {
10588
+ "application/json": {
10589
+ "schema": {
10590
+ "description": "Invalid parameters"
10591
+ }
10592
+ }
10593
+ },
10594
+ "description": ""
10595
+ }
10596
+ },
10597
+ "security": [
10598
+ {
10599
+ "jwtAuth": []
10600
+ },
10601
+ {
10602
+ "cookieAuth": []
10603
+ },
10604
+ {
10605
+ "basicAuth": []
10606
+ }
10607
+ ],
10608
+ "summary": "Get method statistics",
10609
+ "tags": [
10610
+ "gRPC Monitoring"
10611
+ ],
10612
+ "x-async-capable": false
10613
+ }
10614
+ },
10615
+ "/cfg/grpc/monitor/overview/": {
10616
+ "get": {
10617
+ "description": "Returns overview statistics for gRPC requests.",
10618
+ "operationId": "cfg_grpc_monitor_overview_retrieve",
10619
+ "parameters": [
10620
+ {
10621
+ "description": "Statistics period in hours (default: 24)",
10622
+ "in": "query",
10623
+ "name": "hours",
10624
+ "schema": {
10625
+ "type": "integer"
10626
+ }
10627
+ }
10628
+ ],
10629
+ "responses": {
10630
+ "200": {
10631
+ "content": {
10632
+ "application/json": {
10633
+ "schema": {
10634
+ "$ref": "#/components/schemas/OverviewStats"
10635
+ }
10636
+ }
10637
+ },
10638
+ "description": ""
10639
+ },
10640
+ "400": {
10641
+ "content": {
10642
+ "application/json": {
10643
+ "schema": {
10644
+ "description": "Invalid parameters"
10645
+ }
10646
+ }
10647
+ },
10648
+ "description": ""
10649
+ }
10650
+ },
10651
+ "security": [
10652
+ {
10653
+ "jwtAuth": []
10654
+ },
10655
+ {
10656
+ "cookieAuth": []
10657
+ },
10658
+ {
10659
+ "basicAuth": []
10660
+ }
10661
+ ],
10662
+ "summary": "Get overview statistics",
10663
+ "tags": [
10664
+ "gRPC Monitoring"
10665
+ ],
10666
+ "x-async-capable": false
10667
+ }
10668
+ },
10669
+ "/cfg/grpc/monitor/requests/": {
10670
+ "get": {
10671
+ "description": "Returns a list of recent gRPC requests with their details.",
10672
+ "operationId": "cfg_grpc_monitor_requests_retrieve",
10673
+ "parameters": [
10674
+ {
10675
+ "description": "Number of requests to return (default: 50, max: 200)",
10676
+ "in": "query",
10677
+ "name": "count",
10678
+ "schema": {
10679
+ "type": "integer"
10680
+ }
10681
+ },
10682
+ {
10683
+ "description": "Filter by method name",
10684
+ "in": "query",
10685
+ "name": "method",
10686
+ "schema": {
10687
+ "type": "string"
10688
+ }
10689
+ },
10690
+ {
10691
+ "description": "Offset for pagination (default: 0)",
10692
+ "in": "query",
10693
+ "name": "offset",
10694
+ "schema": {
10695
+ "type": "integer"
10696
+ }
10697
+ },
10698
+ {
10699
+ "description": "Filter by service name",
10700
+ "in": "query",
10701
+ "name": "service",
10702
+ "schema": {
10703
+ "type": "string"
10704
+ }
10705
+ },
10706
+ {
10707
+ "description": "Filter by status (success, error, timeout, pending, cancelled)",
10708
+ "in": "query",
10709
+ "name": "status",
10710
+ "schema": {
10711
+ "type": "string"
10712
+ }
10713
+ }
10714
+ ],
10715
+ "responses": {
10716
+ "200": {
10717
+ "content": {
10718
+ "application/json": {
10719
+ "schema": {
10720
+ "$ref": "#/components/schemas/RecentRequests"
10721
+ }
10722
+ }
10723
+ },
10724
+ "description": ""
10725
+ },
10726
+ "400": {
10727
+ "content": {
10728
+ "application/json": {
10729
+ "schema": {
10730
+ "description": "Invalid parameters"
10731
+ }
10732
+ }
10733
+ },
10734
+ "description": ""
10735
+ }
10736
+ },
10737
+ "security": [
10738
+ {
10739
+ "jwtAuth": []
10740
+ },
10741
+ {
10742
+ "cookieAuth": []
10743
+ },
10744
+ {
10745
+ "basicAuth": []
10746
+ }
10747
+ ],
10748
+ "summary": "Get recent requests",
10749
+ "tags": [
10750
+ "gRPC Monitoring"
10751
+ ],
10752
+ "x-async-capable": false
10753
+ }
10754
+ },
10755
+ "/cfg/grpc/monitor/services/": {
10756
+ "get": {
10757
+ "description": "Returns statistics grouped by service.",
10758
+ "operationId": "cfg_grpc_monitor_services_retrieve",
10759
+ "parameters": [
10760
+ {
10761
+ "description": "Statistics period in hours (default: 24)",
10762
+ "in": "query",
10763
+ "name": "hours",
10764
+ "schema": {
10765
+ "type": "integer"
10766
+ }
10767
+ }
10768
+ ],
10769
+ "responses": {
10770
+ "200": {
10771
+ "content": {
10772
+ "application/json": {
10773
+ "schema": {
10774
+ "$ref": "#/components/schemas/ServiceList"
10775
+ }
10776
+ }
10777
+ },
10778
+ "description": ""
10779
+ },
10780
+ "400": {
10781
+ "content": {
10782
+ "application/json": {
10783
+ "schema": {
10784
+ "description": "Invalid parameters"
10785
+ }
10786
+ }
10787
+ },
10788
+ "description": ""
10789
+ }
10790
+ },
10791
+ "security": [
10792
+ {
10793
+ "jwtAuth": []
10794
+ },
10795
+ {
10796
+ "cookieAuth": []
10797
+ },
10798
+ {
10799
+ "basicAuth": []
10800
+ }
10801
+ ],
10802
+ "summary": "Get service statistics",
10803
+ "tags": [
10804
+ "gRPC Monitoring"
10805
+ ],
10806
+ "x-async-capable": false
10807
+ }
10808
+ },
10809
+ "/cfg/grpc/monitor/timeline/": {
10810
+ "get": {
10811
+ "description": "Returns hourly or daily breakdown of request counts for charts.",
10812
+ "operationId": "cfg_grpc_monitor_timeline_retrieve",
10813
+ "parameters": [
10814
+ {
10815
+ "description": "Time period in hours (default: 24)",
10816
+ "in": "query",
10817
+ "name": "hours",
10818
+ "schema": {
10819
+ "type": "integer"
10820
+ }
10821
+ },
10822
+ {
10823
+ "description": "Time interval: \u0027hour\u0027 or \u0027day\u0027 (default: hour)",
10824
+ "in": "query",
10825
+ "name": "interval",
10826
+ "schema": {
10827
+ "type": "string"
10828
+ }
10829
+ }
10830
+ ],
10831
+ "responses": {
10832
+ "200": {
10833
+ "content": {
10834
+ "application/json": {
10835
+ "schema": {
10836
+ "description": "Timeline data"
10837
+ }
10838
+ }
10839
+ },
10840
+ "description": ""
10841
+ },
10842
+ "400": {
10843
+ "content": {
10844
+ "application/json": {
10845
+ "schema": {
10846
+ "description": "Invalid parameters"
10847
+ }
10848
+ }
10849
+ },
10850
+ "description": ""
10851
+ }
10852
+ },
10853
+ "security": [
10854
+ {
10855
+ "jwtAuth": []
10856
+ },
10857
+ {
10858
+ "cookieAuth": []
10859
+ },
10860
+ {
10861
+ "basicAuth": []
10862
+ }
10863
+ ],
10864
+ "summary": "Get request timeline",
10865
+ "tags": [
10866
+ "gRPC Monitoring"
10867
+ ],
10868
+ "x-async-capable": false
10869
+ }
10870
+ },
10307
10871
  "/cfg/health/drf/": {
10308
10872
  "get": {
10309
10873
  "description": "Return comprehensive health check data.",