pycarlo 0.10.140__py3-none-any.whl → 0.10.141__py3-none-any.whl

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.

Potentially problematic release.


This version of pycarlo might be problematic. Click here for more details.

pycarlo/lib/schema.json CHANGED
@@ -155661,6 +155661,33 @@
155661
155661
  "ofType": null
155662
155662
  }
155663
155663
  },
155664
+ {
155665
+ "args": [
155666
+ {
155667
+ "defaultValue": null,
155668
+ "description": "Monitor UUID to run",
155669
+ "name": "monitorUuid",
155670
+ "type": {
155671
+ "kind": "NON_NULL",
155672
+ "name": null,
155673
+ "ofType": {
155674
+ "kind": "SCALAR",
155675
+ "name": "UUID",
155676
+ "ofType": null
155677
+ }
155678
+ }
155679
+ }
155680
+ ],
155681
+ "deprecationReason": null,
155682
+ "description": "(experimental) Run a monitor manually",
155683
+ "isDeprecated": false,
155684
+ "name": "runMonitor",
155685
+ "type": {
155686
+ "kind": "OBJECT",
155687
+ "name": "RunMonitor",
155688
+ "ofType": null
155689
+ }
155690
+ },
155664
155691
  {
155665
155692
  "args": [
155666
155693
  {
@@ -159026,6 +159053,49 @@
159026
159053
  "ofType": null
159027
159054
  }
159028
159055
  },
159056
+ {
159057
+ "args": [
159058
+ {
159059
+ "defaultValue": null,
159060
+ "description": "String to completely or partially match the rule SQL, case-insensitive",
159061
+ "name": "customSqlContains",
159062
+ "type": {
159063
+ "kind": "SCALAR",
159064
+ "name": "String",
159065
+ "ofType": null
159066
+ }
159067
+ },
159068
+ {
159069
+ "defaultValue": null,
159070
+ "description": "String to completely or partially match the rule description, case-insensitive",
159071
+ "name": "descriptionContains",
159072
+ "type": {
159073
+ "kind": "SCALAR",
159074
+ "name": "String",
159075
+ "ofType": null
159076
+ }
159077
+ },
159078
+ {
159079
+ "defaultValue": null,
159080
+ "description": "Rule id",
159081
+ "name": "ruleId",
159082
+ "type": {
159083
+ "kind": "SCALAR",
159084
+ "name": "UUID",
159085
+ "ofType": null
159086
+ }
159087
+ }
159088
+ ],
159089
+ "deprecationReason": "Use RunSqlRule instead",
159090
+ "description": "Run a custom rule immediately",
159091
+ "isDeprecated": true,
159092
+ "name": "triggerCustomRule",
159093
+ "type": {
159094
+ "kind": "OBJECT",
159095
+ "name": "TriggerCustomRule",
159096
+ "ofType": null
159097
+ }
159098
+ },
159029
159099
  {
159030
159100
  "args": [
159031
159101
  {
@@ -160473,49 +160543,6 @@
160473
160543
  "ofType": null
160474
160544
  }
160475
160545
  },
160476
- {
160477
- "args": [
160478
- {
160479
- "defaultValue": null,
160480
- "description": "String to completely or partially match the rule SQL, case-insensitive",
160481
- "name": "customSqlContains",
160482
- "type": {
160483
- "kind": "SCALAR",
160484
- "name": "String",
160485
- "ofType": null
160486
- }
160487
- },
160488
- {
160489
- "defaultValue": null,
160490
- "description": "String to completely or partially match the rule description, case-insensitive",
160491
- "name": "descriptionContains",
160492
- "type": {
160493
- "kind": "SCALAR",
160494
- "name": "String",
160495
- "ofType": null
160496
- }
160497
- },
160498
- {
160499
- "defaultValue": null,
160500
- "description": "Rule id",
160501
- "name": "ruleId",
160502
- "type": {
160503
- "kind": "SCALAR",
160504
- "name": "UUID",
160505
- "ofType": null
160506
- }
160507
- }
160508
- ],
160509
- "deprecationReason": null,
160510
- "description": "Run a custom rule immediately",
160511
- "isDeprecated": false,
160512
- "name": "triggerCustomRule",
160513
- "type": {
160514
- "kind": "OBJECT",
160515
- "name": "TriggerCustomRule",
160516
- "ofType": null
160517
- }
160518
- },
160519
160546
  {
160520
160547
  "args": [
160521
160548
  {
@@ -180855,6 +180882,33 @@
180855
180882
  "name": "UpdateMonitorLabels",
180856
180883
  "possibleTypes": null
180857
180884
  },
180885
+ {
180886
+ "description": "Run a monitor manually",
180887
+ "enumValues": null,
180888
+ "fields": [
180889
+ {
180890
+ "args": [],
180891
+ "deprecationReason": null,
180892
+ "description": null,
180893
+ "isDeprecated": false,
180894
+ "name": "success",
180895
+ "type": {
180896
+ "kind": "NON_NULL",
180897
+ "name": null,
180898
+ "ofType": {
180899
+ "kind": "SCALAR",
180900
+ "name": "Boolean",
180901
+ "ofType": null
180902
+ }
180903
+ }
180904
+ }
180905
+ ],
180906
+ "inputFields": null,
180907
+ "interfaces": [],
180908
+ "kind": "OBJECT",
180909
+ "name": "RunMonitor",
180910
+ "possibleTypes": null
180911
+ },
180858
180912
  {
180859
180913
  "description": null,
180860
180914
  "enumValues": null,
@@ -182558,6 +182612,29 @@
182558
182612
  "name": "TriggerCircuitBreakerRule",
182559
182613
  "possibleTypes": null
182560
182614
  },
182615
+ {
182616
+ "description": "Run a custom rule immediately",
182617
+ "enumValues": null,
182618
+ "fields": [
182619
+ {
182620
+ "args": [],
182621
+ "deprecationReason": null,
182622
+ "description": null,
182623
+ "isDeprecated": false,
182624
+ "name": "customRule",
182625
+ "type": {
182626
+ "kind": "OBJECT",
182627
+ "name": "CustomRule",
182628
+ "ofType": null
182629
+ }
182630
+ }
182631
+ ],
182632
+ "inputFields": null,
182633
+ "interfaces": [],
182634
+ "kind": "OBJECT",
182635
+ "name": "TriggerCustomRule",
182636
+ "possibleTypes": null
182637
+ },
182561
182638
  {
182562
182639
  "description": "Create or update a Volume Rule",
182563
182640
  "enumValues": null,
@@ -183057,29 +183134,6 @@
183057
183134
  "name": "RestoreCustomRule",
183058
183135
  "possibleTypes": null
183059
183136
  },
183060
- {
183061
- "description": "Run a custom rule immediately",
183062
- "enumValues": null,
183063
- "fields": [
183064
- {
183065
- "args": [],
183066
- "deprecationReason": null,
183067
- "description": null,
183068
- "isDeprecated": false,
183069
- "name": "customRule",
183070
- "type": {
183071
- "kind": "OBJECT",
183072
- "name": "CustomRule",
183073
- "ofType": null
183074
- }
183075
- }
183076
- ],
183077
- "inputFields": null,
183078
- "interfaces": [],
183079
- "kind": "OBJECT",
183080
- "name": "TriggerCustomRule",
183081
- "possibleTypes": null
183082
- },
183083
183137
  {
183084
183138
  "description": "Run a custom rule as a circuit breaker immediately. Supports rules that create multiple queries.",
183085
183139
  "enumValues": null,
pycarlo/lib/schema.py CHANGED
@@ -24941,6 +24941,7 @@ class Mutation(sgqlc.types.Type):
24941
24941
  "update_monitor_description",
24942
24942
  "update_monitor_notes",
24943
24943
  "update_monitor_labels",
24944
+ "run_monitor",
24944
24945
  "update_monitors_priorities",
24945
24946
  "update_monitors_schedules",
24946
24947
  "pause_monitors",
@@ -24990,6 +24991,7 @@ class Mutation(sgqlc.types.Type):
24990
24991
  "update_custom_metric_rule_notes",
24991
24992
  "update_custom_metric_severity",
24992
24993
  "trigger_circuit_breaker_rule",
24994
+ "trigger_custom_rule",
24993
24995
  "create_or_update_volume_rule",
24994
24996
  "create_or_update_custom_sql_rule",
24995
24997
  "create_or_update_comparison_rule",
@@ -25001,7 +25003,6 @@ class Mutation(sgqlc.types.Type):
25001
25003
  "unsnooze_custom_rules",
25002
25004
  "delete_custom_rule",
25003
25005
  "restore_custom_rule",
25004
- "trigger_custom_rule",
25005
25006
  "trigger_circuit_breaker_rule_v2",
25006
25007
  "run_sql_rule",
25007
25008
  "run_custom_rules",
@@ -31244,6 +31245,27 @@ class Mutation(sgqlc.types.Type):
31244
31245
  rule
31245
31246
  """
31246
31247
 
31248
+ run_monitor = sgqlc.types.Field(
31249
+ "RunMonitor",
31250
+ graphql_name="runMonitor",
31251
+ args=sgqlc.types.ArgDict(
31252
+ (
31253
+ (
31254
+ "monitor_uuid",
31255
+ sgqlc.types.Arg(
31256
+ sgqlc.types.non_null(UUID), graphql_name="monitorUuid", default=None
31257
+ ),
31258
+ ),
31259
+ )
31260
+ ),
31261
+ )
31262
+ """(experimental) Run a monitor manually
31263
+
31264
+ Arguments:
31265
+
31266
+ * `monitor_uuid` (`UUID!`): Monitor UUID to run
31267
+ """
31268
+
31247
31269
  update_monitors_priorities = sgqlc.types.Field(
31248
31270
  "UpdateMonitorsPriorities",
31249
31271
  graphql_name="updateMonitorsPriorities",
@@ -33307,6 +33329,34 @@ class Mutation(sgqlc.types.Type):
33307
33329
  * `rule_uuid` (`UUID`): Rule UUID
33308
33330
  """
33309
33331
 
33332
+ trigger_custom_rule = sgqlc.types.Field(
33333
+ "TriggerCustomRule",
33334
+ graphql_name="triggerCustomRule",
33335
+ args=sgqlc.types.ArgDict(
33336
+ (
33337
+ (
33338
+ "custom_sql_contains",
33339
+ sgqlc.types.Arg(String, graphql_name="customSqlContains", default=None),
33340
+ ),
33341
+ (
33342
+ "description_contains",
33343
+ sgqlc.types.Arg(String, graphql_name="descriptionContains", default=None),
33344
+ ),
33345
+ ("rule_id", sgqlc.types.Arg(UUID, graphql_name="ruleId", default=None)),
33346
+ )
33347
+ ),
33348
+ )
33349
+ """Run a custom rule immediately
33350
+
33351
+ Arguments:
33352
+
33353
+ * `custom_sql_contains` (`String`): String to completely or
33354
+ partially match the rule SQL, case-insensitive
33355
+ * `description_contains` (`String`): String to completely or
33356
+ partially match the rule description, case-insensitive
33357
+ * `rule_id` (`UUID`): Rule id
33358
+ """
33359
+
33310
33360
  create_or_update_volume_rule = sgqlc.types.Field(
33311
33361
  CreateOrUpdateVolumeRule,
33312
33362
  graphql_name="createOrUpdateVolumeRule",
@@ -34114,34 +34164,6 @@ class Mutation(sgqlc.types.Type):
34114
34164
  * `warehouse_uuid` (`UUID`): Deprecated
34115
34165
  """
34116
34166
 
34117
- trigger_custom_rule = sgqlc.types.Field(
34118
- "TriggerCustomRule",
34119
- graphql_name="triggerCustomRule",
34120
- args=sgqlc.types.ArgDict(
34121
- (
34122
- (
34123
- "custom_sql_contains",
34124
- sgqlc.types.Arg(String, graphql_name="customSqlContains", default=None),
34125
- ),
34126
- (
34127
- "description_contains",
34128
- sgqlc.types.Arg(String, graphql_name="descriptionContains", default=None),
34129
- ),
34130
- ("rule_id", sgqlc.types.Arg(UUID, graphql_name="ruleId", default=None)),
34131
- )
34132
- ),
34133
- )
34134
- """Run a custom rule immediately
34135
-
34136
- Arguments:
34137
-
34138
- * `custom_sql_contains` (`String`): String to completely or
34139
- partially match the rule SQL, case-insensitive
34140
- * `description_contains` (`String`): String to completely or
34141
- partially match the rule description, case-insensitive
34142
- * `rule_id` (`UUID`): Rule id
34143
- """
34144
-
34145
34167
  trigger_circuit_breaker_rule_v2 = sgqlc.types.Field(
34146
34168
  "TriggerCircuitBreakerRuleV2",
34147
34169
  graphql_name="triggerCircuitBreakerRuleV2",
@@ -61060,6 +61082,14 @@ class RunDailyCount(sgqlc.types.Type):
61060
61082
  """The run count"""
61061
61083
 
61062
61084
 
61085
+ class RunMonitor(sgqlc.types.Type):
61086
+ """Run a monitor manually"""
61087
+
61088
+ __schema__ = schema
61089
+ __field_names__ = ("success",)
61090
+ success = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name="success")
61091
+
61092
+
61063
61093
  class RunMonitors(sgqlc.types.Type):
61064
61094
  __schema__ = schema
61065
61095
  __field_names__ = ("success",)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycarlo
3
- Version: 0.10.140
3
+ Version: 0.10.141
4
4
  Summary: Monte Carlo's Python SDK
5
5
  Home-page: https://www.montecarlodata.com/
6
6
  Author: Monte Carlo Data, Inc
@@ -35,10 +35,10 @@ pycarlo/features/user/queries.py,sha256=m97RvM0oiBlrU5xmOwe_JJ5N0G0NG5hIOeyQqN2O
35
35
  pycarlo/features/user/service.py,sha256=DHkhuonySaHro07NTd0YNe3cNkDk62CiRTY77dhVaMs,2890
36
36
  pycarlo/lib/README.md,sha256=QGNeUefPzLKGyZqn5aITpcFgkC9WQTNS292BGisRFHk,139
37
37
  pycarlo/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- pycarlo/lib/schema.json,sha256=nN5db0fEI8vcr1M4P_wXGHjf3KCcCQadosntuT1IVFQ,6182272
39
- pycarlo/lib/schema.py,sha256=8GzlhYuT-RHpBZoCZv9_6FjDv5R3a6sIwq0YcTHs52M,2684924
40
- pycarlo-0.10.140.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
- pycarlo-0.10.140.dist-info/METADATA,sha256=XE0Kl7747jAFMh5BlD5knYCDOmJch3XinMkXtUjDEsw,8742
42
- pycarlo-0.10.140.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
43
- pycarlo-0.10.140.dist-info/top_level.txt,sha256=TIE04H4pgzGaFxAB-gvkmVAUOAoHxxFfhnEcpuQ5bF4,8
44
- pycarlo-0.10.140.dist-info/RECORD,,
38
+ pycarlo/lib/schema.json,sha256=WdzobZFb_9R0VcRo19U11JjzmNUkUXc7xoPlsgkA4hc,6183898
39
+ pycarlo/lib/schema.py,sha256=OLwY-G-3rKTlKK0WqahgbPKt0j5PkaFXeZxAaxN7JZQ,2685687
40
+ pycarlo-0.10.141.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
+ pycarlo-0.10.141.dist-info/METADATA,sha256=Sd1gb21gTVCKA9ebCjIQKrz0d8naBIJQJ6PTH7tUq6s,8742
42
+ pycarlo-0.10.141.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
43
+ pycarlo-0.10.141.dist-info/top_level.txt,sha256=TIE04H4pgzGaFxAB-gvkmVAUOAoHxxFfhnEcpuQ5bF4,8
44
+ pycarlo-0.10.141.dist-info/RECORD,,