pycarlo 0.10.103__py3-none-any.whl → 0.10.104__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
@@ -112800,24 +112800,24 @@
112800
112800
  {
112801
112801
  "args": [],
112802
112802
  "deprecationReason": null,
112803
- "description": "Structured SQL filtering",
112803
+ "description": "SQL blocks used on the monitor",
112804
112804
  "isDeprecated": false,
112805
112805
  "name": "sqlBlocks",
112806
112806
  "type": {
112807
- "kind": "SCALAR",
112808
- "name": "JSONString",
112807
+ "kind": "OBJECT",
112808
+ "name": "MonitorSqlBlocks",
112809
112809
  "ofType": null
112810
112810
  }
112811
112811
  },
112812
112812
  {
112813
112813
  "args": [],
112814
112814
  "deprecationReason": null,
112815
- "description": "Sampling configuration",
112815
+ "description": "Sampling configuration for the monitor",
112816
112816
  "isDeprecated": false,
112817
112817
  "name": "samplingConfig",
112818
112818
  "type": {
112819
- "kind": "SCALAR",
112820
- "name": "JSONString",
112819
+ "kind": "OBJECT",
112820
+ "name": "MonitorSamplingConfig",
112821
112821
  "ofType": null
112822
112822
  }
112823
112823
  },
@@ -116863,6 +116863,124 @@
116863
116863
  "name": "IndexedFieldFilterOutputType",
116864
116864
  "possibleTypes": null
116865
116865
  },
116866
+ {
116867
+ "description": null,
116868
+ "enumValues": null,
116869
+ "fields": [
116870
+ {
116871
+ "args": [],
116872
+ "deprecationReason": null,
116873
+ "description": null,
116874
+ "isDeprecated": false,
116875
+ "name": "alertCondition",
116876
+ "type": {
116877
+ "kind": "NON_NULL",
116878
+ "name": null,
116879
+ "ofType": {
116880
+ "kind": "OBJECT",
116881
+ "name": "FilterGroup",
116882
+ "ofType": null
116883
+ }
116884
+ }
116885
+ },
116886
+ {
116887
+ "args": [],
116888
+ "deprecationReason": null,
116889
+ "description": null,
116890
+ "isDeprecated": false,
116891
+ "name": "whereCondition",
116892
+ "type": {
116893
+ "kind": "NON_NULL",
116894
+ "name": null,
116895
+ "ofType": {
116896
+ "kind": "OBJECT",
116897
+ "name": "FilterGroup",
116898
+ "ofType": null
116899
+ }
116900
+ }
116901
+ },
116902
+ {
116903
+ "args": [],
116904
+ "deprecationReason": null,
116905
+ "description": null,
116906
+ "isDeprecated": false,
116907
+ "name": "groupBy",
116908
+ "type": {
116909
+ "kind": "NON_NULL",
116910
+ "name": null,
116911
+ "ofType": {
116912
+ "kind": "LIST",
116913
+ "name": null,
116914
+ "ofType": {
116915
+ "kind": "NON_NULL",
116916
+ "name": null,
116917
+ "ofType": {
116918
+ "kind": "INTERFACE",
116919
+ "name": "FilterValueInterface",
116920
+ "ofType": null
116921
+ }
116922
+ }
116923
+ }
116924
+ }
116925
+ },
116926
+ {
116927
+ "args": [],
116928
+ "deprecationReason": null,
116929
+ "description": null,
116930
+ "isDeprecated": false,
116931
+ "name": "agentSpan",
116932
+ "type": {
116933
+ "kind": "NON_NULL",
116934
+ "name": null,
116935
+ "ofType": {
116936
+ "kind": "OBJECT",
116937
+ "name": "FilterGroup",
116938
+ "ofType": null
116939
+ }
116940
+ }
116941
+ }
116942
+ ],
116943
+ "inputFields": null,
116944
+ "interfaces": [],
116945
+ "kind": "OBJECT",
116946
+ "name": "MonitorSqlBlocks",
116947
+ "possibleTypes": null
116948
+ },
116949
+ {
116950
+ "description": null,
116951
+ "enumValues": null,
116952
+ "fields": [
116953
+ {
116954
+ "args": [],
116955
+ "deprecationReason": null,
116956
+ "description": null,
116957
+ "isDeprecated": false,
116958
+ "name": "percentage",
116959
+ "type": {
116960
+ "kind": "SCALAR",
116961
+ "name": "Float",
116962
+ "ofType": null
116963
+ }
116964
+ },
116965
+ {
116966
+ "args": [],
116967
+ "deprecationReason": null,
116968
+ "description": null,
116969
+ "isDeprecated": false,
116970
+ "name": "count",
116971
+ "type": {
116972
+ "kind": "SCALAR",
116973
+ "name": "Int",
116974
+ "ofType": null
116975
+ }
116976
+ }
116977
+ ],
116978
+ "inputFields": null,
116979
+ "interfaces": [],
116980
+ "kind": "OBJECT",
116981
+ "name": "MonitorSamplingConfig",
116982
+ "possibleTypes": null
116983
+ },
116866
116984
  {
116867
116985
  "description": null,
116868
116986
  "enumValues": null,
@@ -159532,6 +159650,311 @@
159532
159650
  "ofType": null
159533
159651
  }
159534
159652
  },
159653
+ {
159654
+ "args": [
159655
+ {
159656
+ "defaultValue": null,
159657
+ "description": "Filter by agent span fields (agent, workflow, task, span_name)",
159658
+ "name": "agentSpanFilters",
159659
+ "type": {
159660
+ "kind": "NON_NULL",
159661
+ "name": null,
159662
+ "ofType": {
159663
+ "kind": "LIST",
159664
+ "name": null,
159665
+ "ofType": {
159666
+ "kind": "NON_NULL",
159667
+ "name": null,
159668
+ "ofType": {
159669
+ "kind": "INPUT_OBJECT",
159670
+ "name": "AgentSpanFilterInput",
159671
+ "ofType": null
159672
+ }
159673
+ }
159674
+ }
159675
+ }
159676
+ },
159677
+ {
159678
+ "defaultValue": null,
159679
+ "description": "Alert conditions.",
159680
+ "name": "alertConditions",
159681
+ "type": {
159682
+ "kind": "NON_NULL",
159683
+ "name": null,
159684
+ "ofType": {
159685
+ "kind": "LIST",
159686
+ "name": null,
159687
+ "ofType": {
159688
+ "kind": "NON_NULL",
159689
+ "name": null,
159690
+ "ofType": {
159691
+ "kind": "INPUT_OBJECT",
159692
+ "name": "CustomRuleComparisonInput",
159693
+ "ofType": null
159694
+ }
159695
+ }
159696
+ }
159697
+ }
159698
+ },
159699
+ {
159700
+ "defaultValue": null,
159701
+ "description": "The monitor notification audiences",
159702
+ "name": "audiences",
159703
+ "type": {
159704
+ "kind": "LIST",
159705
+ "name": null,
159706
+ "ofType": {
159707
+ "kind": "NON_NULL",
159708
+ "name": null,
159709
+ "ofType": {
159710
+ "kind": "SCALAR",
159711
+ "name": "String",
159712
+ "ofType": null
159713
+ }
159714
+ }
159715
+ }
159716
+ },
159717
+ {
159718
+ "defaultValue": null,
159719
+ "description": "Specify a connection (e.g. query-engine) to use",
159720
+ "name": "connectionId",
159721
+ "type": {
159722
+ "kind": "SCALAR",
159723
+ "name": "UUID",
159724
+ "ofType": null
159725
+ }
159726
+ },
159727
+ {
159728
+ "defaultValue": null,
159729
+ "description": "Data quality dimension.",
159730
+ "name": "dataQualityDimension",
159731
+ "type": {
159732
+ "kind": "SCALAR",
159733
+ "name": "String",
159734
+ "ofType": null
159735
+ }
159736
+ },
159737
+ {
159738
+ "defaultValue": null,
159739
+ "description": null,
159740
+ "name": "dataSource",
159741
+ "type": {
159742
+ "kind": "NON_NULL",
159743
+ "name": null,
159744
+ "ofType": {
159745
+ "kind": "INPUT_OBJECT",
159746
+ "name": "DataSourceUnionInput",
159747
+ "ofType": null
159748
+ }
159749
+ }
159750
+ },
159751
+ {
159752
+ "defaultValue": null,
159753
+ "description": "Used as the name in the UI",
159754
+ "name": "description",
159755
+ "type": {
159756
+ "kind": "NON_NULL",
159757
+ "name": null,
159758
+ "ofType": {
159759
+ "kind": "SCALAR",
159760
+ "name": "String",
159761
+ "ofType": null
159762
+ }
159763
+ }
159764
+ },
159765
+ {
159766
+ "defaultValue": "false",
159767
+ "description": "Dry run the monitor creation or update and return the MaC YAML and queries.",
159768
+ "name": "dryRun",
159769
+ "type": {
159770
+ "kind": "SCALAR",
159771
+ "name": "Boolean",
159772
+ "ofType": null
159773
+ }
159774
+ },
159775
+ {
159776
+ "defaultValue": null,
159777
+ "description": "Warehouse the monitor will be run on.",
159778
+ "name": "dwId",
159779
+ "type": {
159780
+ "kind": "NON_NULL",
159781
+ "name": null,
159782
+ "ofType": {
159783
+ "kind": "SCALAR",
159784
+ "name": "UUID",
159785
+ "ofType": null
159786
+ }
159787
+ }
159788
+ },
159789
+ {
159790
+ "defaultValue": "false",
159791
+ "description": "Return an error if the update is a significant change that would require a monitor reset.",
159792
+ "name": "failOnReset",
159793
+ "type": {
159794
+ "kind": "SCALAR",
159795
+ "name": "Boolean",
159796
+ "ofType": null
159797
+ }
159798
+ },
159799
+ {
159800
+ "defaultValue": null,
159801
+ "description": "The monitor notification audiences for failures",
159802
+ "name": "failureAudiences",
159803
+ "type": {
159804
+ "kind": "LIST",
159805
+ "name": null,
159806
+ "ofType": {
159807
+ "kind": "NON_NULL",
159808
+ "name": null,
159809
+ "ofType": {
159810
+ "kind": "SCALAR",
159811
+ "name": "String",
159812
+ "ofType": null
159813
+ }
159814
+ }
159815
+ }
159816
+ },
159817
+ {
159818
+ "defaultValue": null,
159819
+ "description": "Structured SQL filtering conditions to apply to query",
159820
+ "name": "filters",
159821
+ "type": {
159822
+ "kind": "INPUT_OBJECT",
159823
+ "name": "FilterGroupInput",
159824
+ "ofType": null
159825
+ }
159826
+ },
159827
+ {
159828
+ "defaultValue": "\"\"",
159829
+ "description": "Additional context for the monitor",
159830
+ "name": "notes",
159831
+ "type": {
159832
+ "kind": "SCALAR",
159833
+ "name": "String",
159834
+ "ofType": null
159835
+ }
159836
+ },
159837
+ {
159838
+ "defaultValue": null,
159839
+ "description": "The default priority for alerts involving this monitor",
159840
+ "name": "priority",
159841
+ "type": {
159842
+ "kind": "SCALAR",
159843
+ "name": "String",
159844
+ "ofType": null
159845
+ }
159846
+ },
159847
+ {
159848
+ "defaultValue": null,
159849
+ "description": "Sampling configuration: either percentage or fixed count",
159850
+ "name": "samplingConfig",
159851
+ "type": {
159852
+ "kind": "INPUT_OBJECT",
159853
+ "name": "MonitorSamplingConfigInput",
159854
+ "ofType": null
159855
+ }
159856
+ },
159857
+ {
159858
+ "defaultValue": null,
159859
+ "description": "Schedule of monitor",
159860
+ "name": "scheduleConfig",
159861
+ "type": {
159862
+ "kind": "NON_NULL",
159863
+ "name": null,
159864
+ "ofType": {
159865
+ "kind": "INPUT_OBJECT",
159866
+ "name": "ScheduleConfigInput",
159867
+ "ofType": null
159868
+ }
159869
+ }
159870
+ },
159871
+ {
159872
+ "defaultValue": null,
159873
+ "description": "Segment count when then monitor was created. Can be returned as the segment count for the monitor when no successful execution has yet occurred, and a fresh segment count is not available. This allows the UI to properly validate the monitor configuration and avoid creating monitors that will fail when they are created due too many metric combinations.",
159874
+ "name": "segmentCountHint",
159875
+ "type": {
159876
+ "kind": "SCALAR",
159877
+ "name": "Int",
159878
+ "ofType": null
159879
+ }
159880
+ },
159881
+ {
159882
+ "defaultValue": null,
159883
+ "description": "Segments",
159884
+ "name": "segments",
159885
+ "type": {
159886
+ "kind": "LIST",
159887
+ "name": null,
159888
+ "ofType": {
159889
+ "kind": "NON_NULL",
159890
+ "name": null,
159891
+ "ofType": {
159892
+ "kind": "INPUT_OBJECT",
159893
+ "name": "FilterValueUnionInput",
159894
+ "ofType": null
159895
+ }
159896
+ }
159897
+ }
159898
+ },
159899
+ {
159900
+ "defaultValue": null,
159901
+ "description": "Sensitivity for automated thresholds.",
159902
+ "name": "sensitivity",
159903
+ "type": {
159904
+ "kind": "ENUM",
159905
+ "name": "SensitivityLevels",
159906
+ "ofType": null
159907
+ }
159908
+ },
159909
+ {
159910
+ "defaultValue": "false",
159911
+ "description": "Do not reset monitor if the update is a significant change that would normally cause the monitor to be reset. Learned model might not match the new monitor configuration and false positives might be detected for up to 35 days",
159912
+ "name": "skipReset",
159913
+ "type": {
159914
+ "kind": "SCALAR",
159915
+ "name": "Boolean",
159916
+ "ofType": null
159917
+ }
159918
+ },
159919
+ {
159920
+ "defaultValue": null,
159921
+ "description": "The monitor tags.",
159922
+ "name": "tags",
159923
+ "type": {
159924
+ "kind": "LIST",
159925
+ "name": null,
159926
+ "ofType": {
159927
+ "kind": "NON_NULL",
159928
+ "name": null,
159929
+ "ofType": {
159930
+ "kind": "INPUT_OBJECT",
159931
+ "name": "TagKeyValuePairInput",
159932
+ "ofType": null
159933
+ }
159934
+ }
159935
+ }
159936
+ },
159937
+ {
159938
+ "defaultValue": null,
159939
+ "description": "UUID of the monitor. If specified, it means the request is for update",
159940
+ "name": "uuid",
159941
+ "type": {
159942
+ "kind": "SCALAR",
159943
+ "name": "UUID",
159944
+ "ofType": null
159945
+ }
159946
+ }
159947
+ ],
159948
+ "deprecationReason": null,
159949
+ "description": "(experimental) Create or update an Agent monitor",
159950
+ "isDeprecated": false,
159951
+ "name": "createOrUpdateAgentMonitor",
159952
+ "type": {
159953
+ "kind": "OBJECT",
159954
+ "name": "CreateOrUpdateAgentMonitor",
159955
+ "ofType": null
159956
+ }
159957
+ },
159535
159958
  {
159536
159959
  "args": [
159537
159960
  {
@@ -180477,6 +180900,152 @@
180477
180900
  "name": "MetricAlertConditionInput",
180478
180901
  "possibleTypes": null
180479
180902
  },
180903
+ {
180904
+ "description": null,
180905
+ "enumValues": null,
180906
+ "fields": [
180907
+ {
180908
+ "args": [],
180909
+ "deprecationReason": null,
180910
+ "description": null,
180911
+ "isDeprecated": false,
180912
+ "name": "agentMonitor",
180913
+ "type": {
180914
+ "kind": "OBJECT",
180915
+ "name": "MetricMonitoring",
180916
+ "ofType": null
180917
+ }
180918
+ },
180919
+ {
180920
+ "args": [],
180921
+ "deprecationReason": null,
180922
+ "description": "SQL queries that will be run by the monitor on each execution.",
180923
+ "isDeprecated": false,
180924
+ "name": "queries",
180925
+ "type": {
180926
+ "kind": "LIST",
180927
+ "name": null,
180928
+ "ofType": {
180929
+ "kind": "NON_NULL",
180930
+ "name": null,
180931
+ "ofType": {
180932
+ "kind": "SCALAR",
180933
+ "name": "String",
180934
+ "ofType": null
180935
+ }
180936
+ }
180937
+ }
180938
+ }
180939
+ ],
180940
+ "inputFields": null,
180941
+ "interfaces": [],
180942
+ "kind": "OBJECT",
180943
+ "name": "CreateOrUpdateAgentMonitor",
180944
+ "possibleTypes": null
180945
+ },
180946
+ {
180947
+ "description": null,
180948
+ "enumValues": null,
180949
+ "fields": null,
180950
+ "inputFields": [
180951
+ {
180952
+ "defaultValue": null,
180953
+ "description": "Filter by agent field. If omitted, no filter on agent.",
180954
+ "name": "agent",
180955
+ "type": {
180956
+ "kind": "INPUT_OBJECT",
180957
+ "name": "AgentSpanFieldFilterInput",
180958
+ "ofType": null
180959
+ }
180960
+ },
180961
+ {
180962
+ "defaultValue": null,
180963
+ "description": "Filter by workflow field. If omitted, no filter on workflow.",
180964
+ "name": "workflow",
180965
+ "type": {
180966
+ "kind": "INPUT_OBJECT",
180967
+ "name": "AgentSpanFieldFilterInput",
180968
+ "ofType": null
180969
+ }
180970
+ },
180971
+ {
180972
+ "defaultValue": null,
180973
+ "description": "Filter by task field. If omitted, no filter on task.",
180974
+ "name": "task",
180975
+ "type": {
180976
+ "kind": "INPUT_OBJECT",
180977
+ "name": "AgentSpanFieldFilterInput",
180978
+ "ofType": null
180979
+ }
180980
+ },
180981
+ {
180982
+ "defaultValue": null,
180983
+ "description": "Filter by span_name field. If omitted, no filter on span_name.",
180984
+ "name": "spanName",
180985
+ "type": {
180986
+ "kind": "INPUT_OBJECT",
180987
+ "name": "AgentSpanFieldFilterInput",
180988
+ "ofType": null
180989
+ }
180990
+ }
180991
+ ],
180992
+ "interfaces": null,
180993
+ "kind": "INPUT_OBJECT",
180994
+ "name": "AgentSpanFilterInput",
180995
+ "possibleTypes": null
180996
+ },
180997
+ {
180998
+ "description": null,
180999
+ "enumValues": null,
181000
+ "fields": null,
181001
+ "inputFields": [
181002
+ {
181003
+ "defaultValue": null,
181004
+ "description": "Filter value. If null, filters for null values.",
181005
+ "name": "value",
181006
+ "type": {
181007
+ "kind": "SCALAR",
181008
+ "name": "String",
181009
+ "ofType": null
181010
+ }
181011
+ }
181012
+ ],
181013
+ "interfaces": null,
181014
+ "kind": "INPUT_OBJECT",
181015
+ "name": "AgentSpanFieldFilterInput",
181016
+ "possibleTypes": null
181017
+ },
181018
+ {
181019
+ "description": null,
181020
+ "enumValues": null,
181021
+ "fields": null,
181022
+ "inputFields": [
181023
+ {
181024
+ "defaultValue": null,
181025
+ "description": null,
181026
+ "name": "percentage",
181027
+ "type": {
181028
+ "kind": "SCALAR",
181029
+ "name": "Float",
181030
+ "ofType": null
181031
+ }
181032
+ },
181033
+ {
181034
+ "defaultValue": null,
181035
+ "description": null,
181036
+ "name": "count",
181037
+ "type": {
181038
+ "kind": "SCALAR",
181039
+ "name": "Int",
181040
+ "ofType": null
181041
+ }
181042
+ }
181043
+ ],
181044
+ "interfaces": null,
181045
+ "kind": "INPUT_OBJECT",
181046
+ "name": "MonitorSamplingConfigInput",
181047
+ "possibleTypes": null
181048
+ },
180480
181049
  {
180481
181050
  "description": null,
180482
181051
  "enumValues": null,
pycarlo/lib/schema.py CHANGED
@@ -5486,6 +5486,29 @@ class AIMessageInput(sgqlc.types.Input):
5486
5486
  """The mcons for the tables added in this message"""
5487
5487
 
5488
5488
 
5489
+ class AgentSpanFieldFilterInput(sgqlc.types.Input):
5490
+ __schema__ = schema
5491
+ __field_names__ = ("value",)
5492
+ value = sgqlc.types.Field(String, graphql_name="value")
5493
+ """Filter value. If null, filters for null values."""
5494
+
5495
+
5496
+ class AgentSpanFilterInput(sgqlc.types.Input):
5497
+ __schema__ = schema
5498
+ __field_names__ = ("agent", "workflow", "task", "span_name")
5499
+ agent = sgqlc.types.Field(AgentSpanFieldFilterInput, graphql_name="agent")
5500
+ """Filter by agent field. If omitted, no filter on agent."""
5501
+
5502
+ workflow = sgqlc.types.Field(AgentSpanFieldFilterInput, graphql_name="workflow")
5503
+ """Filter by workflow field. If omitted, no filter on workflow."""
5504
+
5505
+ task = sgqlc.types.Field(AgentSpanFieldFilterInput, graphql_name="task")
5506
+ """Filter by task field. If omitted, no filter on task."""
5507
+
5508
+ span_name = sgqlc.types.Field(AgentSpanFieldFilterInput, graphql_name="spanName")
5509
+ """Filter by span_name field. If omitted, no filter on span_name."""
5510
+
5511
+
5489
5512
  class AggregateInput(sgqlc.types.Input):
5490
5513
  __schema__ = schema
5491
5514
  __field_names__ = ("by", "time_axis")
@@ -7628,6 +7651,14 @@ class MonitorRecommendationsInput(sgqlc.types.Input):
7628
7651
  """
7629
7652
 
7630
7653
 
7654
+ class MonitorSamplingConfigInput(sgqlc.types.Input):
7655
+ __schema__ = schema
7656
+ __field_names__ = ("percentage", "count")
7657
+ percentage = sgqlc.types.Field(Float, graphql_name="percentage")
7658
+
7659
+ count = sgqlc.types.Field(Int, graphql_name="count")
7660
+
7661
+
7631
7662
  class MonitorSelectExpressionInput(sgqlc.types.Input):
7632
7663
  __schema__ = schema
7633
7664
  __field_names__ = ("expression", "data_type")
@@ -15601,6 +15632,17 @@ class CreateOrUpdateAgent(sgqlc.types.Type):
15601
15632
  """Result validating the provided parameters."""
15602
15633
 
15603
15634
 
15635
+ class CreateOrUpdateAgentMonitor(sgqlc.types.Type):
15636
+ __schema__ = schema
15637
+ __field_names__ = ("agent_monitor", "queries")
15638
+ agent_monitor = sgqlc.types.Field("MetricMonitoring", graphql_name="agentMonitor")
15639
+
15640
+ queries = sgqlc.types.Field(
15641
+ sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name="queries"
15642
+ )
15643
+ """SQL queries that will be run by the monitor on each execution."""
15644
+
15645
+
15604
15646
  class CreateOrUpdateAlationIntegration(sgqlc.types.Type):
15605
15647
  """Create or update Alation integration"""
15606
15648
 
@@ -24082,6 +24124,14 @@ class MonitorRecommendationsResponse(sgqlc.types.Type):
24082
24124
  )
24083
24125
 
24084
24126
 
24127
+ class MonitorSamplingConfig(sgqlc.types.Type):
24128
+ __schema__ = schema
24129
+ __field_names__ = ("percentage", "count")
24130
+ percentage = sgqlc.types.Field(Float, graphql_name="percentage")
24131
+
24132
+ count = sgqlc.types.Field(Int, graphql_name="count")
24133
+
24134
+
24085
24135
  class MonitorSchedulingConfiguration(sgqlc.types.Type):
24086
24136
  __schema__ = schema
24087
24137
  __field_names__ = ("schedule_type", "interval_minutes", "start_time")
@@ -24105,6 +24155,25 @@ class MonitorScoreTrendType(sgqlc.types.Type):
24105
24155
  """Pass percentage for the day"""
24106
24156
 
24107
24157
 
24158
+ class MonitorSqlBlocks(sgqlc.types.Type):
24159
+ __schema__ = schema
24160
+ __field_names__ = ("alert_condition", "where_condition", "group_by", "agent_span")
24161
+ alert_condition = sgqlc.types.Field(
24162
+ sgqlc.types.non_null("FilterGroup"), graphql_name="alertCondition"
24163
+ )
24164
+
24165
+ where_condition = sgqlc.types.Field(
24166
+ sgqlc.types.non_null("FilterGroup"), graphql_name="whereCondition"
24167
+ )
24168
+
24169
+ group_by = sgqlc.types.Field(
24170
+ sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(FilterValueInterface))),
24171
+ graphql_name="groupBy",
24172
+ )
24173
+
24174
+ agent_span = sgqlc.types.Field(sgqlc.types.non_null("FilterGroup"), graphql_name="agentSpan")
24175
+
24176
+
24108
24177
  class MonitorSummary(sgqlc.types.Type):
24109
24178
  __schema__ = schema
24110
24179
  __field_names__ = (
@@ -24712,6 +24781,7 @@ class Mutation(sgqlc.types.Type):
24712
24781
  "pause_monitor_bootstrap",
24713
24782
  "create_or_update_comparison_monitor",
24714
24783
  "create_or_update_metric_monitor",
24784
+ "create_or_update_agent_monitor",
24715
24785
  "create_or_update_json_schema_monitor",
24716
24786
  "validate_cron",
24717
24787
  "set_event_detector_feedback",
@@ -35337,6 +35407,175 @@ class Mutation(sgqlc.types.Type):
35337
35407
  query
35338
35408
  """
35339
35409
 
35410
+ create_or_update_agent_monitor = sgqlc.types.Field(
35411
+ CreateOrUpdateAgentMonitor,
35412
+ graphql_name="createOrUpdateAgentMonitor",
35413
+ args=sgqlc.types.ArgDict(
35414
+ (
35415
+ (
35416
+ "agent_span_filters",
35417
+ sgqlc.types.Arg(
35418
+ sgqlc.types.non_null(
35419
+ sgqlc.types.list_of(sgqlc.types.non_null(AgentSpanFilterInput))
35420
+ ),
35421
+ graphql_name="agentSpanFilters",
35422
+ default=None,
35423
+ ),
35424
+ ),
35425
+ (
35426
+ "alert_conditions",
35427
+ sgqlc.types.Arg(
35428
+ sgqlc.types.non_null(
35429
+ sgqlc.types.list_of(sgqlc.types.non_null(CustomRuleComparisonInput))
35430
+ ),
35431
+ graphql_name="alertConditions",
35432
+ default=None,
35433
+ ),
35434
+ ),
35435
+ (
35436
+ "audiences",
35437
+ sgqlc.types.Arg(
35438
+ sgqlc.types.list_of(sgqlc.types.non_null(String)),
35439
+ graphql_name="audiences",
35440
+ default=None,
35441
+ ),
35442
+ ),
35443
+ ("connection_id", sgqlc.types.Arg(UUID, graphql_name="connectionId", default=None)),
35444
+ (
35445
+ "data_quality_dimension",
35446
+ sgqlc.types.Arg(String, graphql_name="dataQualityDimension", default=None),
35447
+ ),
35448
+ (
35449
+ "data_source",
35450
+ sgqlc.types.Arg(
35451
+ sgqlc.types.non_null(DataSourceUnionInput),
35452
+ graphql_name="dataSource",
35453
+ default=None,
35454
+ ),
35455
+ ),
35456
+ (
35457
+ "description",
35458
+ sgqlc.types.Arg(
35459
+ sgqlc.types.non_null(String), graphql_name="description", default=None
35460
+ ),
35461
+ ),
35462
+ ("dry_run", sgqlc.types.Arg(Boolean, graphql_name="dryRun", default=False)),
35463
+ (
35464
+ "dw_id",
35465
+ sgqlc.types.Arg(sgqlc.types.non_null(UUID), graphql_name="dwId", default=None),
35466
+ ),
35467
+ (
35468
+ "fail_on_reset",
35469
+ sgqlc.types.Arg(Boolean, graphql_name="failOnReset", default=False),
35470
+ ),
35471
+ (
35472
+ "failure_audiences",
35473
+ sgqlc.types.Arg(
35474
+ sgqlc.types.list_of(sgqlc.types.non_null(String)),
35475
+ graphql_name="failureAudiences",
35476
+ default=None,
35477
+ ),
35478
+ ),
35479
+ (
35480
+ "filters",
35481
+ sgqlc.types.Arg(FilterGroupInput, graphql_name="filters", default=None),
35482
+ ),
35483
+ ("notes", sgqlc.types.Arg(String, graphql_name="notes", default="")),
35484
+ ("priority", sgqlc.types.Arg(String, graphql_name="priority", default=None)),
35485
+ (
35486
+ "sampling_config",
35487
+ sgqlc.types.Arg(
35488
+ MonitorSamplingConfigInput, graphql_name="samplingConfig", default=None
35489
+ ),
35490
+ ),
35491
+ (
35492
+ "schedule_config",
35493
+ sgqlc.types.Arg(
35494
+ sgqlc.types.non_null(ScheduleConfigInput),
35495
+ graphql_name="scheduleConfig",
35496
+ default=None,
35497
+ ),
35498
+ ),
35499
+ (
35500
+ "segment_count_hint",
35501
+ sgqlc.types.Arg(Int, graphql_name="segmentCountHint", default=None),
35502
+ ),
35503
+ (
35504
+ "segments",
35505
+ sgqlc.types.Arg(
35506
+ sgqlc.types.list_of(sgqlc.types.non_null(FilterValueUnionInput)),
35507
+ graphql_name="segments",
35508
+ default=None,
35509
+ ),
35510
+ ),
35511
+ (
35512
+ "sensitivity",
35513
+ sgqlc.types.Arg(SensitivityLevels, graphql_name="sensitivity", default=None),
35514
+ ),
35515
+ ("skip_reset", sgqlc.types.Arg(Boolean, graphql_name="skipReset", default=False)),
35516
+ (
35517
+ "tags",
35518
+ sgqlc.types.Arg(
35519
+ sgqlc.types.list_of(sgqlc.types.non_null(TagKeyValuePairInput)),
35520
+ graphql_name="tags",
35521
+ default=None,
35522
+ ),
35523
+ ),
35524
+ ("uuid", sgqlc.types.Arg(UUID, graphql_name="uuid", default=None)),
35525
+ )
35526
+ ),
35527
+ )
35528
+ """(experimental) Create or update an Agent monitor
35529
+
35530
+ Arguments:
35531
+
35532
+ * `agent_span_filters` (`[AgentSpanFilterInput!]!`): Filter by
35533
+ agent span fields (agent, workflow, task, span_name)
35534
+ * `alert_conditions` (`[CustomRuleComparisonInput!]!`): Alert
35535
+ conditions.
35536
+ * `audiences` (`[String!]`): The monitor notification audiences
35537
+ * `connection_id` (`UUID`): Specify a connection (e.g. query-
35538
+ engine) to use
35539
+ * `data_quality_dimension` (`String`): Data quality dimension.
35540
+ * `data_source` (`DataSourceUnionInput!`)None
35541
+ * `description` (`String!`): Used as the name in the UI
35542
+ * `dry_run` (`Boolean`): Dry run the monitor creation or update
35543
+ and return the MaC YAML and queries. (default: `false`)
35544
+ * `dw_id` (`UUID!`): Warehouse the monitor will be run on.
35545
+ * `fail_on_reset` (`Boolean`): Return an error if the update is a
35546
+ significant change that would require a monitor reset. (default:
35547
+ `false`)
35548
+ * `failure_audiences` (`[String!]`): The monitor notification
35549
+ audiences for failures
35550
+ * `filters` (`FilterGroupInput`): Structured SQL filtering
35551
+ conditions to apply to query
35552
+ * `notes` (`String`): Additional context for the monitor (default:
35553
+ `""`)
35554
+ * `priority` (`String`): The default priority for alerts involving
35555
+ this monitor
35556
+ * `sampling_config` (`MonitorSamplingConfigInput`): Sampling
35557
+ configuration: either percentage or fixed count
35558
+ * `schedule_config` (`ScheduleConfigInput!`): Schedule of monitor
35559
+ * `segment_count_hint` (`Int`): Segment count when then monitor
35560
+ was created. Can be returned as the segment count for the
35561
+ monitor when no successful execution has yet occurred, and a
35562
+ fresh segment count is not available. This allows the UI to
35563
+ properly validate the monitor configuration and avoid creating
35564
+ monitors that will fail when they are created due too many
35565
+ metric combinations.
35566
+ * `segments` (`[FilterValueUnionInput!]`): Segments
35567
+ * `sensitivity` (`SensitivityLevels`): Sensitivity for automated
35568
+ thresholds.
35569
+ * `skip_reset` (`Boolean`): Do not reset monitor if the update is
35570
+ a significant change that would normally cause the monitor to be
35571
+ reset. Learned model might not match the new monitor
35572
+ configuration and false positives might be detected for up to 35
35573
+ days (default: `false`)
35574
+ * `tags` (`[TagKeyValuePairInput!]`): The monitor tags.
35575
+ * `uuid` (`UUID`): UUID of the monitor. If specified, it means the
35576
+ request is for update
35577
+ """
35578
+
35340
35579
  create_or_update_json_schema_monitor = sgqlc.types.Field(
35341
35580
  CreateOrUpdateJsonSchemaMonitor,
35342
35581
  graphql_name="createOrUpdateJsonSchemaMonitor",
@@ -71667,11 +71906,11 @@ class MetricMonitoring(sgqlc.types.Type, Node):
71667
71906
  version = sgqlc.types.Field(Int, graphql_name="version")
71668
71907
  """Configuration version of the monitor."""
71669
71908
 
71670
- sql_blocks = sgqlc.types.Field(JSONString, graphql_name="sqlBlocks")
71671
- """Structured SQL filtering"""
71909
+ sql_blocks = sgqlc.types.Field(MonitorSqlBlocks, graphql_name="sqlBlocks")
71910
+ """SQL blocks used on the monitor"""
71672
71911
 
71673
- sampling_config = sgqlc.types.Field(JSONString, graphql_name="samplingConfig")
71674
- """Sampling configuration"""
71912
+ sampling_config = sgqlc.types.Field(MonitorSamplingConfig, graphql_name="samplingConfig")
71913
+ """Sampling configuration for the monitor"""
71675
71914
 
71676
71915
  table = sgqlc.types.Field("WarehouseTable", graphql_name="table")
71677
71916
  """Table related to monitor"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycarlo
3
- Version: 0.10.103
3
+ Version: 0.10.104
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=SQJjd4Q5WhnsktblFsELnsAMKLAenZnyzaLp_XqSLWg,6043711
39
- pycarlo/lib/schema.py,sha256=i6gjvWtG1vxdbA9tZ4LV8poIls7AGte4aun1OsPtdRY,2610735
40
- pycarlo-0.10.103.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
- pycarlo-0.10.103.dist-info/METADATA,sha256=hyRklsMK-GKcgIScHO3Nj0epDCCGLM4Fds5I98TPTV4,8742
42
- pycarlo-0.10.103.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
43
- pycarlo-0.10.103.dist-info/top_level.txt,sha256=TIE04H4pgzGaFxAB-gvkmVAUOAoHxxFfhnEcpuQ5bF4,8
44
- pycarlo-0.10.103.dist-info/RECORD,,
38
+ pycarlo/lib/schema.json,sha256=yIzSG2djrTm78nY9IyNV7FuKVMcxfKChLeUk8K5ncjY,6062887
39
+ pycarlo/lib/schema.py,sha256=g8ZASKW5AE058IbLRAqM1J05wsi3pioYa5MIXhHOp-Q,2620752
40
+ pycarlo-0.10.104.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
41
+ pycarlo-0.10.104.dist-info/METADATA,sha256=PEe4q81v-1VE68FfbTLJ2arKjx8od6_fAOmo98-rang,8742
42
+ pycarlo-0.10.104.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
43
+ pycarlo-0.10.104.dist-info/top_level.txt,sha256=TIE04H4pgzGaFxAB-gvkmVAUOAoHxxFfhnEcpuQ5bF4,8
44
+ pycarlo-0.10.104.dist-info/RECORD,,