pycarlo 0.10.121__py3-none-any.whl → 0.10.123__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.py CHANGED
@@ -438,6 +438,8 @@ class AlertSubType(sgqlc.types.Enum):
438
438
  """Enumeration Choices:
439
439
 
440
440
  * `ADF_JOB_FAILURE`None
441
+ * `AGENT_ANOMALIES`None
442
+ * `AGENT_ANOMALY`None
441
443
  * `AIRFLOW_DAG_FAILURE`None
442
444
  * `ANOMALIES`None
443
445
  * `COMPARISON_RULE_BREACH`None
@@ -485,6 +487,8 @@ class AlertSubType(sgqlc.types.Enum):
485
487
  __schema__ = schema
486
488
  __choices__ = (
487
489
  "ADF_JOB_FAILURE",
490
+ "AGENT_ANOMALIES",
491
+ "AGENT_ANOMALY",
488
492
  "AIRFLOW_DAG_FAILURE",
489
493
  "ANOMALIES",
490
494
  "COMPARISON_RULE_BREACH",
@@ -533,6 +537,7 @@ class AlertSubType(sgqlc.types.Enum):
533
537
  class AlertType(sgqlc.types.Enum):
534
538
  """Enumeration Choices:
535
539
 
540
+ * `AGENT_ANOMALIES`None
536
541
  * `ANOMALIES`None
537
542
  * `CUSTOM_RULE_ANOMALIES`None
538
543
  * `DBT_ERRORS`None
@@ -550,6 +555,7 @@ class AlertType(sgqlc.types.Enum):
550
555
 
551
556
  __schema__ = schema
552
557
  __choices__ = (
558
+ "AGENT_ANOMALIES",
553
559
  "ANOMALIES",
554
560
  "CUSTOM_RULE_ANOMALIES",
555
561
  "DBT_ERRORS",
@@ -1919,6 +1925,7 @@ class EventModelEventType(sgqlc.types.Enum):
1919
1925
  """Enumeration Choices:
1920
1926
 
1921
1927
  * `ADF_JOB_FAILURE`: Data Factory Pipeline Failure
1928
+ * `AGENT_ANOM`: Agent Anomaly
1922
1929
  * `AIRFLOW_DAG_FAILURE`: Airflow DAG Failure
1923
1930
  * `COMMENT`: Timeline Comment
1924
1931
  * `COMPARISON_RULE_ANOM`: Comparison Rule Anomaly
@@ -1959,6 +1966,7 @@ class EventModelEventType(sgqlc.types.Enum):
1959
1966
  __schema__ = schema
1960
1967
  __choices__ = (
1961
1968
  "ADF_JOB_FAILURE",
1969
+ "AGENT_ANOM",
1962
1970
  "AIRFLOW_DAG_FAILURE",
1963
1971
  "COMMENT",
1964
1972
  "COMPARISON_RULE_ANOM",
@@ -2884,6 +2892,7 @@ class IncidentModelFeedback(sgqlc.types.Enum):
2884
2892
  class IncidentModelIncidentType(sgqlc.types.Enum):
2885
2893
  """Enumeration Choices:
2886
2894
 
2895
+ * `AGENT_ANOMALIES`: Agent anomalies
2887
2896
  * `ANOMALIES`: Anomalies
2888
2897
  * `CUSTOM_RULE_ANOMALIES`: Custom rule anomalies
2889
2898
  * `DBT_ERRORS`: dbt errors
@@ -2901,6 +2910,7 @@ class IncidentModelIncidentType(sgqlc.types.Enum):
2901
2910
 
2902
2911
  __schema__ = schema
2903
2912
  __choices__ = (
2913
+ "AGENT_ANOMALIES",
2904
2914
  "ANOMALIES",
2905
2915
  "CUSTOM_RULE_ANOMALIES",
2906
2916
  "DBT_ERRORS",
@@ -2936,6 +2946,7 @@ class IncidentSubType(sgqlc.types.Enum):
2936
2946
 
2937
2947
  * `abnormal_size_change`None
2938
2948
  * `adf_job_failure`None
2949
+ * `agent_anomaly`None
2939
2950
  * `airflow_dag_failure`None
2940
2951
  * `comparison_rule_breach`None
2941
2952
  * `data_added`None
@@ -2970,6 +2981,7 @@ class IncidentSubType(sgqlc.types.Enum):
2970
2981
  __choices__ = (
2971
2982
  "abnormal_size_change",
2972
2983
  "adf_job_failure",
2984
+ "agent_anomaly",
2973
2985
  "airflow_dag_failure",
2974
2986
  "comparison_rule_breach",
2975
2987
  "data_added",
@@ -3412,6 +3424,7 @@ class MetricMonitoringModelPriority(sgqlc.types.Enum):
3412
3424
  class MetricMonitoringModelType(sgqlc.types.Enum):
3413
3425
  """Enumeration Choices:
3414
3426
 
3427
+ * `AGENT`: Agent
3415
3428
  * `CATEGORIES`: Dimension
3416
3429
  * `HOURLY_STATS`: Statistical metrics over an hour interval
3417
3430
  * `JSON_SCHEMA`: JSON schema
@@ -3420,7 +3433,14 @@ class MetricMonitoringModelType(sgqlc.types.Enum):
3420
3433
  """
3421
3434
 
3422
3435
  __schema__ = schema
3423
- __choices__ = ("CATEGORIES", "HOURLY_STATS", "JSON_SCHEMA", "METRIC_COMPARISON", "STATS")
3436
+ __choices__ = (
3437
+ "AGENT",
3438
+ "CATEGORIES",
3439
+ "HOURLY_STATS",
3440
+ "JSON_SCHEMA",
3441
+ "METRIC_COMPARISON",
3442
+ "STATS",
3443
+ )
3424
3444
 
3425
3445
 
3426
3446
  class ModelExecutionTypes(sgqlc.types.Enum):
@@ -5120,6 +5140,7 @@ class UserDefinedMonitorModelConsolidatedMonitorStatus(sgqlc.types.Enum):
5120
5140
  class UserDefinedMonitorModelMonitorType(sgqlc.types.Enum):
5121
5141
  """Enumeration Choices:
5122
5142
 
5143
+ * `AGENT`: Agent
5123
5144
  * `CATEGORIES`: Dimension
5124
5145
  * `COMPARISON`: Comparison
5125
5146
  * `CUSTOM_SQL`: Custom SQL
@@ -5137,6 +5158,7 @@ class UserDefinedMonitorModelMonitorType(sgqlc.types.Enum):
5137
5158
 
5138
5159
  __schema__ = schema
5139
5160
  __choices__ = (
5161
+ "AGENT",
5140
5162
  "CATEGORIES",
5141
5163
  "COMPARISON",
5142
5164
  "CUSTOM_SQL",
@@ -5494,23 +5516,18 @@ class AgentSpanFieldFilterInput(sgqlc.types.Input):
5494
5516
  __schema__ = schema
5495
5517
  __field_names__ = ("value",)
5496
5518
  value = sgqlc.types.Field(String, graphql_name="value")
5497
- """Filter value. If null, filters for null values."""
5498
5519
 
5499
5520
 
5500
5521
  class AgentSpanFilterInput(sgqlc.types.Input):
5501
5522
  __schema__ = schema
5502
5523
  __field_names__ = ("agent", "workflow", "task", "span_name")
5503
5524
  agent = sgqlc.types.Field(AgentSpanFieldFilterInput, graphql_name="agent")
5504
- """Filter by agent field. If omitted, no filter on agent."""
5505
5525
 
5506
5526
  workflow = sgqlc.types.Field(AgentSpanFieldFilterInput, graphql_name="workflow")
5507
- """Filter by workflow field. If omitted, no filter on workflow."""
5508
5527
 
5509
5528
  task = sgqlc.types.Field(AgentSpanFieldFilterInput, graphql_name="task")
5510
- """Filter by task field. If omitted, no filter on task."""
5511
5529
 
5512
5530
  span_name = sgqlc.types.Field(AgentSpanFieldFilterInput, graphql_name="spanName")
5513
- """Filter by span_name field. If omitted, no filter on span_name."""
5514
5531
 
5515
5532
 
5516
5533
  class AggregateInput(sgqlc.types.Input):
@@ -10288,7 +10305,9 @@ class IMetricsMonitor(sgqlc.types.Interface):
10288
10305
  "bootstrap",
10289
10306
  "sensitivity",
10290
10307
  "monitor_sql_blocks",
10308
+ "agent_span_filters",
10291
10309
  "sampling_config",
10310
+ "filters",
10292
10311
  )
10293
10312
  monitor_fields = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name="monitorFields")
10294
10313
  """Field/s to monitor"""
@@ -10376,9 +10395,18 @@ class IMetricsMonitor(sgqlc.types.Interface):
10376
10395
  monitor_sql_blocks = sgqlc.types.Field("MonitorSqlBlocks", graphql_name="monitorSqlBlocks")
10377
10396
  """SQL blocks used on the monitor"""
10378
10397
 
10398
+ agent_span_filters = sgqlc.types.Field(
10399
+ sgqlc.types.list_of(sgqlc.types.non_null("AgentSpanFilter")),
10400
+ graphql_name="agentSpanFilters",
10401
+ )
10402
+ """agent span filters used on the monitor"""
10403
+
10379
10404
  sampling_config = sgqlc.types.Field("MonitorSamplingConfig", graphql_name="samplingConfig")
10380
10405
  """Sampling configuration for the monitor"""
10381
10406
 
10407
+ filters = sgqlc.types.Field("FilterGroup", graphql_name="filters")
10408
+ """Filters used on the monitor"""
10409
+
10382
10410
 
10383
10411
  class IMonitor(sgqlc.types.Interface):
10384
10412
  __schema__ = schema
@@ -11775,9 +11803,10 @@ class AccountNotificationSetting(sgqlc.types.Type):
11775
11803
  """Limit notifications to specific incident types (default=all).
11776
11804
  Supported options include: anomalies, schema_changes,
11777
11805
  json_schema_changes, deleted_tables, metric_anomalies,
11778
- metric_comparison_anomalies, custom_rule_anomalies,
11779
- performance_anomalies, dbt_errors, etl_errors,
11780
- pseudo_integration_test, rule_run_execution_error, merged
11806
+ agent_anomalies, metric_comparison_anomalies,
11807
+ custom_rule_anomalies, performance_anomalies, dbt_errors,
11808
+ etl_errors, pseudo_integration_test, rule_run_execution_error,
11809
+ merged
11781
11810
  """
11782
11811
 
11783
11812
  incident_sub_types = sgqlc.types.Field(
@@ -12288,6 +12317,24 @@ class AgentLogEntry(sgqlc.types.Type):
12288
12317
  """
12289
12318
 
12290
12319
 
12320
+ class AgentSpanFieldFilter(sgqlc.types.Type):
12321
+ __schema__ = schema
12322
+ __field_names__ = ("value",)
12323
+ value = sgqlc.types.Field(String, graphql_name="value")
12324
+
12325
+
12326
+ class AgentSpanFilter(sgqlc.types.Type):
12327
+ __schema__ = schema
12328
+ __field_names__ = ("agent", "workflow", "task", "span_name")
12329
+ agent = sgqlc.types.Field(AgentSpanFieldFilter, graphql_name="agent")
12330
+
12331
+ workflow = sgqlc.types.Field(AgentSpanFieldFilter, graphql_name="workflow")
12332
+
12333
+ task = sgqlc.types.Field(AgentSpanFieldFilter, graphql_name="task")
12334
+
12335
+ span_name = sgqlc.types.Field(AgentSpanFieldFilter, graphql_name="spanName")
12336
+
12337
+
12291
12338
  class AgentSpanNode(sgqlc.types.Type):
12292
12339
  __schema__ = schema
12293
12340
  __field_names__ = ("node_name", "node_value", "child_nodes", "level", "count", "is_leaf")
@@ -12768,6 +12815,7 @@ class AlertTypeSummary(sgqlc.types.Type):
12768
12815
  "json_schema_changes",
12769
12816
  "deleted_tables",
12770
12817
  "metric_anomalies",
12818
+ "agent_anomalies",
12771
12819
  "metric_comparison_anomalies",
12772
12820
  "custom_rule_anomalies",
12773
12821
  "performance_anomalies",
@@ -12787,6 +12835,8 @@ class AlertTypeSummary(sgqlc.types.Type):
12787
12835
 
12788
12836
  metric_anomalies = sgqlc.types.Field(Int, graphql_name="metricAnomalies")
12789
12837
 
12838
+ agent_anomalies = sgqlc.types.Field(Int, graphql_name="agentAnomalies")
12839
+
12790
12840
  metric_comparison_anomalies = sgqlc.types.Field(Int, graphql_name="metricComparisonAnomalies")
12791
12841
 
12792
12842
  custom_rule_anomalies = sgqlc.types.Field(Int, graphql_name="customRuleAnomalies")
@@ -19905,6 +19955,7 @@ class EventTypeSummary(sgqlc.types.Type):
19905
19955
  "size_diff",
19906
19956
  "metric_anom",
19907
19957
  "metric_comparison_anom",
19958
+ "agent_anom",
19908
19959
  "custom_rule_anom",
19909
19960
  "validation_anom",
19910
19961
  "dist_anom",
@@ -19939,6 +19990,8 @@ class EventTypeSummary(sgqlc.types.Type):
19939
19990
 
19940
19991
  metric_comparison_anom = sgqlc.types.Field(Int, graphql_name="metricComparisonAnom")
19941
19992
 
19993
+ agent_anom = sgqlc.types.Field(Int, graphql_name="agentAnom")
19994
+
19942
19995
  custom_rule_anom = sgqlc.types.Field(Int, graphql_name="customRuleAnom")
19943
19996
 
19944
19997
  validation_anom = sgqlc.types.Field(Int, graphql_name="validationAnom")
@@ -21537,6 +21590,7 @@ class IncidentTypeSummary(sgqlc.types.Type):
21537
21590
  "json_schema_changes",
21538
21591
  "deleted_tables",
21539
21592
  "metric_anomalies",
21593
+ "agent_anomalies",
21540
21594
  "metric_comparison_anomalies",
21541
21595
  "custom_rule_anomalies",
21542
21596
  "performance_anomalies",
@@ -21556,6 +21610,8 @@ class IncidentTypeSummary(sgqlc.types.Type):
21556
21610
 
21557
21611
  metric_anomalies = sgqlc.types.Field(Int, graphql_name="metricAnomalies")
21558
21612
 
21613
+ agent_anomalies = sgqlc.types.Field(Int, graphql_name="agentAnomalies")
21614
+
21559
21615
  metric_comparison_anomalies = sgqlc.types.Field(Int, graphql_name="metricComparisonAnomalies")
21560
21616
 
21561
21617
  custom_rule_anomalies = sgqlc.types.Field(Int, graphql_name="customRuleAnomalies")
@@ -30373,7 +30429,7 @@ class Mutation(sgqlc.types.Type):
30373
30429
  * `anomaly_types` (`[String]`): Limit notifications to specific
30374
30430
  incident types (default=all). Supported options include:
30375
30431
  anomalies, schema_changes, json_schema_changes, deleted_tables,
30376
- metric_anomalies, metric_comparison_anomalies,
30432
+ metric_anomalies, agent_anomalies, metric_comparison_anomalies,
30377
30433
  custom_rule_anomalies, performance_anomalies, dbt_errors,
30378
30434
  etl_errors, pseudo_integration_test, rule_run_execution_error,
30379
30435
  merged
@@ -30788,7 +30844,7 @@ class Mutation(sgqlc.types.Type):
30788
30844
  * `anomaly_types` (`[String]`): Limit notifications to specific
30789
30845
  incident types (default=all). Supported options include:
30790
30846
  anomalies, schema_changes, json_schema_changes, deleted_tables,
30791
- metric_anomalies, metric_comparison_anomalies,
30847
+ metric_anomalies, agent_anomalies, metric_comparison_anomalies,
30792
30848
  custom_rule_anomalies, performance_anomalies, dbt_errors,
30793
30849
  etl_errors, pseudo_integration_test, rule_run_execution_error,
30794
30850
  merged
@@ -67860,6 +67916,7 @@ class Alert(sgqlc.types.Type, NodeWithUUID):
67860
67916
  "feedback",
67861
67917
  "name",
67862
67918
  "uuid",
67919
+ "url",
67863
67920
  )
67864
67921
  title = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name="title")
67865
67922
 
@@ -67919,6 +67976,9 @@ class Alert(sgqlc.types.Type, NodeWithUUID):
67919
67976
  uuid = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name="uuid")
67920
67977
  """DEPRECATED. Use id instead"""
67921
67978
 
67979
+ url = sgqlc.types.Field(String, graphql_name="url")
67980
+ """URL of the alert"""
67981
+
67922
67982
 
67923
67983
  class AssetFilterActivityRead(sgqlc.types.Type, AssetFilterInterface):
67924
67984
  __schema__ = schema
@@ -72874,6 +72934,8 @@ class MetricMonitoring(sgqlc.types.Type, Node):
72874
72934
  "agg_select_expression",
72875
72935
  "bootstrap",
72876
72936
  "notify_rule_run_failure",
72937
+ "agent_span_filters",
72938
+ "filters",
72877
72939
  )
72878
72940
  uuid = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name="uuid")
72879
72941
 
@@ -73033,7 +73095,7 @@ class MetricMonitoring(sgqlc.types.Type, Node):
73033
73095
  """SQL blocks used on the monitor"""
73034
73096
 
73035
73097
  sampling_config = sgqlc.types.Field(MonitorSamplingConfig, graphql_name="samplingConfig")
73036
- """Sampling configuration for the monitor"""
73098
+ """Sampling configuration"""
73037
73099
 
73038
73100
  table = sgqlc.types.Field("WarehouseTable", graphql_name="table")
73039
73101
  """Table related to monitor"""
@@ -73085,6 +73147,14 @@ class MetricMonitoring(sgqlc.types.Type, Node):
73085
73147
  notify_rule_run_failure = sgqlc.types.Field(Boolean, graphql_name="notifyRuleRunFailure")
73086
73148
  """DEPRECATED: Replaced by failure audiences"""
73087
73149
 
73150
+ agent_span_filters = sgqlc.types.Field(
73151
+ sgqlc.types.list_of(sgqlc.types.non_null(AgentSpanFilter)), graphql_name="agentSpanFilters"
73152
+ )
73153
+ """agent span filters used on the monitor"""
73154
+
73155
+ filters = sgqlc.types.Field(FilterGroup, graphql_name="filters")
73156
+ """filters used on the monitor"""
73157
+
73088
73158
 
73089
73159
  class Monitor(
73090
73160
  sgqlc.types.Type,
@@ -75356,6 +75426,8 @@ class UserDefinedMonitorV2(sgqlc.types.Type, Node):
75356
75426
  "monitor_sql_blocks",
75357
75427
  "sampling_config",
75358
75428
  "entity_mcons",
75429
+ "agent_span_filters",
75430
+ "filters",
75359
75431
  "has_custom_rule_name",
75360
75432
  "is_transitioning_data_provider",
75361
75433
  "notify_rule_run_failure",
@@ -75534,15 +75606,23 @@ class UserDefinedMonitorV2(sgqlc.types.Type, Node):
75534
75606
  monitor, if any
75535
75607
  """
75536
75608
 
75537
- monitor_sql_blocks = sgqlc.types.Field(MonitorSqlBlocks, graphql_name="monitorSqlBlocks")
75538
- """SQL blocks used on the monitor"""
75609
+ monitor_sql_blocks = sgqlc.types.Field(JSONString, graphql_name="monitorSqlBlocks")
75610
+ """Structured SQL filtering from monitors"""
75539
75611
 
75540
75612
  sampling_config = sgqlc.types.Field(MonitorSamplingConfig, graphql_name="samplingConfig")
75541
- """Sampling configuration for the monitor"""
75613
+ """Sampling configuration"""
75542
75614
 
75543
75615
  entity_mcons = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name="entityMcons")
75544
75616
  """MCONs for monitored tables/views"""
75545
75617
 
75618
+ agent_span_filters = sgqlc.types.Field(
75619
+ sgqlc.types.list_of(sgqlc.types.non_null(AgentSpanFilter)), graphql_name="agentSpanFilters"
75620
+ )
75621
+ """agent span filters used on the monitor"""
75622
+
75623
+ filters = sgqlc.types.Field(FilterGroup, graphql_name="filters")
75624
+ """filters used on the monitor"""
75625
+
75546
75626
  has_custom_rule_name = sgqlc.types.Field(Boolean, graphql_name="hasCustomRuleName")
75547
75627
 
75548
75628
  is_transitioning_data_provider = sgqlc.types.Field(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycarlo
3
- Version: 0.10.121
3
+ Version: 0.10.123
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=MdKR7duO-7wkNA4OgZx2TUyBFIpcdx0KluDX50-Iib8,6137040
39
- pycarlo/lib/schema.py,sha256=lZPKq_tQcPfMqgjRtfWg1BFX8WsOxmSHmdaG2Xs_uVc,2666252
40
- pycarlo-0.10.121.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
- pycarlo-0.10.121.dist-info/METADATA,sha256=6nDfDM5AVDv_j8J7g1d4ABjEOhRgsfgbmVqOQBAX0wM,8742
42
- pycarlo-0.10.121.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
43
- pycarlo-0.10.121.dist-info/top_level.txt,sha256=TIE04H4pgzGaFxAB-gvkmVAUOAoHxxFfhnEcpuQ5bF4,8
44
- pycarlo-0.10.121.dist-info/RECORD,,
38
+ pycarlo/lib/schema.json,sha256=Apq4QaY760rarLnsBTwH6qIIpmFE2CSTjLP2ZggnP-Y,6145946
39
+ pycarlo/lib/schema.py,sha256=gzF92vOs-VzkmG3BWdHz5Vdk-WXrwfHo-IeRjTOKj7U,2668493
40
+ pycarlo-0.10.123.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
+ pycarlo-0.10.123.dist-info/METADATA,sha256=Pse-E4hvIp7Rq1ZRJz3Yv_kFWdeyCua_O-axtwvxd2o,8742
42
+ pycarlo-0.10.123.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
43
+ pycarlo-0.10.123.dist-info/top_level.txt,sha256=TIE04H4pgzGaFxAB-gvkmVAUOAoHxxFfhnEcpuQ5bF4,8
44
+ pycarlo-0.10.123.dist-info/RECORD,,