pycarlo 0.10.164__tar.gz → 0.10.166__tar.gz

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.

Files changed (93) hide show
  1. {pycarlo-0.10.164 → pycarlo-0.10.166}/PKG-INFO +1 -1
  2. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/lib/schema.json +365 -111
  3. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/lib/schema.py +148 -1
  4. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo.egg-info/PKG-INFO +1 -1
  5. {pycarlo-0.10.164 → pycarlo-0.10.166}/.circleci/README.md +0 -0
  6. {pycarlo-0.10.164 → pycarlo-0.10.166}/.circleci/config.yml +0 -0
  7. {pycarlo-0.10.164 → pycarlo-0.10.166}/.coveragerc +0 -0
  8. {pycarlo-0.10.164 → pycarlo-0.10.166}/.github/workflows/release.yml +0 -0
  9. {pycarlo-0.10.164 → pycarlo-0.10.166}/.gitignore +0 -0
  10. {pycarlo-0.10.164 → pycarlo-0.10.166}/.pre-commit-config.yaml +0 -0
  11. {pycarlo-0.10.164 → pycarlo-0.10.166}/LICENSE +0 -0
  12. {pycarlo-0.10.164 → pycarlo-0.10.166}/Makefile +0 -0
  13. {pycarlo-0.10.164 → pycarlo-0.10.166}/README.md +0 -0
  14. {pycarlo-0.10.164 → pycarlo-0.10.166}/examples/sample_circuit_breaker.py +0 -0
  15. {pycarlo-0.10.164 → pycarlo-0.10.166}/examples/sample_insight_upload.py +0 -0
  16. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/__init__.py +0 -0
  17. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/common/__init__.py +0 -0
  18. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/common/errors.py +0 -0
  19. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/common/files.py +0 -0
  20. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/common/http.py +0 -0
  21. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/common/mcon.py +0 -0
  22. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/common/retries.py +0 -0
  23. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/common/settings.py +0 -0
  24. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/common/utils.py +0 -0
  25. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/core/__init__.py +0 -0
  26. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/core/client.py +0 -0
  27. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/core/endpoint.py +0 -0
  28. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/core/operations.py +0 -0
  29. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/core/session.py +0 -0
  30. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/__init__.py +0 -0
  31. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/circuit_breakers/__init__.py +0 -0
  32. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/circuit_breakers/exceptions.py +0 -0
  33. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/circuit_breakers/service.py +0 -0
  34. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/dbt/__init__.py +0 -0
  35. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/dbt/dbt_importer.py +0 -0
  36. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/dbt/queries.py +0 -0
  37. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/exceptions.py +0 -0
  38. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/metadata/__init__.py +0 -0
  39. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/metadata/allow_block_list.py +0 -0
  40. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/metadata/metadata_filters_container.py +0 -0
  41. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/pii/__init__.py +0 -0
  42. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/pii/constants.py +0 -0
  43. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/pii/pii_filterer.py +0 -0
  44. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/pii/queries.py +0 -0
  45. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/pii/service.py +0 -0
  46. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/user/__init__.py +0 -0
  47. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/user/exceptions.py +0 -0
  48. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/user/models.py +0 -0
  49. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/user/queries.py +0 -0
  50. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/features/user/service.py +0 -0
  51. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/lib/README.md +0 -0
  52. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo/lib/__init__.py +0 -0
  53. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo.egg-info/SOURCES.txt +0 -0
  54. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo.egg-info/dependency_links.txt +0 -0
  55. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo.egg-info/requires.txt +0 -0
  56. {pycarlo-0.10.164 → pycarlo-0.10.166}/pycarlo.egg-info/top_level.txt +0 -0
  57. {pycarlo-0.10.164 → pycarlo-0.10.166}/pyproject.toml +0 -0
  58. {pycarlo-0.10.164 → pycarlo-0.10.166}/requirements-ci.txt +0 -0
  59. {pycarlo-0.10.164 → pycarlo-0.10.166}/requirements-dev.txt +0 -0
  60. {pycarlo-0.10.164 → pycarlo-0.10.166}/requirements.txt +0 -0
  61. {pycarlo-0.10.164 → pycarlo-0.10.166}/setup.cfg +0 -0
  62. {pycarlo-0.10.164 → pycarlo-0.10.166}/setup.py +0 -0
  63. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/__init__.py +0 -0
  64. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/common/__init__.py +0 -0
  65. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/common/data.json +0 -0
  66. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/common/test_files.py +0 -0
  67. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/common/test_http.py +0 -0
  68. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/common/test_mcon.py +0 -0
  69. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/common/test_retries.py +0 -0
  70. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/common/test_utils.py +0 -0
  71. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/__init__.py +0 -0
  72. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/circuit_breakers/__init__.py +0 -0
  73. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/circuit_breakers/test_service.py +0 -0
  74. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/dbt/__init__.py +0 -0
  75. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/dbt/sample_logs.txt +0 -0
  76. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/dbt/sample_manifest.json +0 -0
  77. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/dbt/sample_run_results.json +0 -0
  78. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/dbt/test_dbt_importer.py +0 -0
  79. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/metadata/test_dataset_filtering.py +0 -0
  80. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/pii/sample_events/sample_md_events_01.json +0 -0
  81. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/pii/sample_events/sample_md_events_02.json +0 -0
  82. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/pii/test_pii_filtering.py +0 -0
  83. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/user/__init__.py +0 -0
  84. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/features/user/test_user_service.py +0 -0
  85. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/test_client.py +0 -0
  86. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/test_operations.py +0 -0
  87. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/test_retry_decorator.py +0 -0
  88. {pycarlo-0.10.164 → pycarlo-0.10.166}/tests/test_session.py +0 -0
  89. {pycarlo-0.10.164 → pycarlo-0.10.166}/utils/env.sh +0 -0
  90. {pycarlo-0.10.164 → pycarlo-0.10.166}/utils/generate.py +0 -0
  91. {pycarlo-0.10.164 → pycarlo-0.10.166}/utils/sample.env +0 -0
  92. {pycarlo-0.10.164 → pycarlo-0.10.166}/utils/sanity.py +0 -0
  93. {pycarlo-0.10.164 → pycarlo-0.10.166}/utils/vars.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycarlo
3
- Version: 0.10.164
3
+ Version: 0.10.166
4
4
  Summary: Monte Carlo's Python SDK
5
5
  Home-page: https://www.montecarlodata.com/
6
6
  Author: Monte Carlo Data, Inc
@@ -17703,10 +17703,109 @@
17703
17703
  }
17704
17704
  }
17705
17705
  ],
17706
+ "deprecationReason": "Use evaluateAlertConditions instead",
17707
+ "description": "(experimental) DEPRECATED. Evaluates the provided metric monitor comparisons",
17708
+ "isDeprecated": true,
17709
+ "name": "evaluateComparisons",
17710
+ "type": {
17711
+ "kind": "OBJECT",
17712
+ "name": "ComparisonEvaluationResults",
17713
+ "ofType": null
17714
+ }
17715
+ },
17716
+ {
17717
+ "args": [
17718
+ {
17719
+ "defaultValue": null,
17720
+ "description": "Connection UUID",
17721
+ "name": "connectionId",
17722
+ "type": {
17723
+ "kind": "SCALAR",
17724
+ "name": "UUID",
17725
+ "ofType": null
17726
+ }
17727
+ },
17728
+ {
17729
+ "defaultValue": null,
17730
+ "description": "Warehouse UUID",
17731
+ "name": "dwId",
17732
+ "type": {
17733
+ "kind": "SCALAR",
17734
+ "name": "UUID",
17735
+ "ofType": null
17736
+ }
17737
+ },
17738
+ {
17739
+ "defaultValue": null,
17740
+ "description": "The data source",
17741
+ "name": "dataSource",
17742
+ "type": {
17743
+ "kind": "NON_NULL",
17744
+ "name": null,
17745
+ "ofType": {
17746
+ "kind": "INPUT_OBJECT",
17747
+ "name": "DataSourceUnionInput",
17748
+ "ofType": null
17749
+ }
17750
+ }
17751
+ },
17752
+ {
17753
+ "defaultValue": null,
17754
+ "description": "Metric monitor alert conditions",
17755
+ "name": "alertConditions",
17756
+ "type": {
17757
+ "kind": "NON_NULL",
17758
+ "name": null,
17759
+ "ofType": {
17760
+ "kind": "LIST",
17761
+ "name": null,
17762
+ "ofType": {
17763
+ "kind": "NON_NULL",
17764
+ "name": null,
17765
+ "ofType": {
17766
+ "kind": "INPUT_OBJECT",
17767
+ "name": "MetricAlertConditionInput",
17768
+ "ofType": null
17769
+ }
17770
+ }
17771
+ }
17772
+ }
17773
+ },
17774
+ {
17775
+ "defaultValue": "true",
17776
+ "description": "Whether to validate the custom and generated SQL by running it against the data warehouse",
17777
+ "name": "validateCustomSql",
17778
+ "type": {
17779
+ "kind": "SCALAR",
17780
+ "name": "Boolean",
17781
+ "ofType": null
17782
+ }
17783
+ },
17784
+ {
17785
+ "defaultValue": "false",
17786
+ "description": "Flag to apply additional limits which increase the supported segment count",
17787
+ "name": "highSegmentCount",
17788
+ "type": {
17789
+ "kind": "SCALAR",
17790
+ "name": "Boolean",
17791
+ "ofType": null
17792
+ }
17793
+ },
17794
+ {
17795
+ "defaultValue": null,
17796
+ "description": "The time aggregation for the monitor, if any. Determines the maximum number of segments.",
17797
+ "name": "aggregateBy",
17798
+ "type": {
17799
+ "kind": "SCALAR",
17800
+ "name": "String",
17801
+ "ofType": null
17802
+ }
17803
+ }
17804
+ ],
17706
17805
  "deprecationReason": null,
17707
- "description": "(experimental) Evaluates the provided metric monitor comparisons",
17806
+ "description": "(experimental) Evaluates the provided metric monitor alert conditions",
17708
17807
  "isDeprecated": false,
17709
- "name": "evaluateComparisons",
17808
+ "name": "evaluateAlertConditions",
17710
17809
  "type": {
17711
17810
  "kind": "OBJECT",
17712
17811
  "name": "ComparisonEvaluationResults",
@@ -123901,6 +124000,115 @@
123901
124000
  "name": "CustomComparisonMetricInput",
123902
124001
  "possibleTypes": null
123903
124002
  },
124003
+ {
124004
+ "description": null,
124005
+ "enumValues": null,
124006
+ "fields": null,
124007
+ "inputFields": [
124008
+ {
124009
+ "defaultValue": null,
124010
+ "description": null,
124011
+ "name": "metric",
124012
+ "type": {
124013
+ "kind": "SCALAR",
124014
+ "name": "String",
124015
+ "ofType": null
124016
+ }
124017
+ },
124018
+ {
124019
+ "defaultValue": null,
124020
+ "description": null,
124021
+ "name": "customMetric",
124022
+ "type": {
124023
+ "kind": "INPUT_OBJECT",
124024
+ "name": "CustomMetricInput",
124025
+ "ofType": null
124026
+ }
124027
+ },
124028
+ {
124029
+ "defaultValue": null,
124030
+ "description": null,
124031
+ "name": "fields",
124032
+ "type": {
124033
+ "kind": "LIST",
124034
+ "name": null,
124035
+ "ofType": {
124036
+ "kind": "NON_NULL",
124037
+ "name": null,
124038
+ "ofType": {
124039
+ "kind": "SCALAR",
124040
+ "name": "String",
124041
+ "ofType": null
124042
+ }
124043
+ }
124044
+ }
124045
+ },
124046
+ {
124047
+ "defaultValue": "\"threshold\"",
124048
+ "description": null,
124049
+ "name": "type",
124050
+ "type": {
124051
+ "kind": "SCALAR",
124052
+ "name": "String",
124053
+ "ofType": null
124054
+ }
124055
+ },
124056
+ {
124057
+ "defaultValue": null,
124058
+ "description": null,
124059
+ "name": "operator",
124060
+ "type": {
124061
+ "kind": "SCALAR",
124062
+ "name": "String",
124063
+ "ofType": null
124064
+ }
124065
+ },
124066
+ {
124067
+ "defaultValue": null,
124068
+ "description": null,
124069
+ "name": "thresholdValue",
124070
+ "type": {
124071
+ "kind": "SCALAR",
124072
+ "name": "Float",
124073
+ "ofType": null
124074
+ }
124075
+ },
124076
+ {
124077
+ "defaultValue": null,
124078
+ "description": null,
124079
+ "name": "lowerThreshold",
124080
+ "type": {
124081
+ "kind": "SCALAR",
124082
+ "name": "Float",
124083
+ "ofType": null
124084
+ }
124085
+ },
124086
+ {
124087
+ "defaultValue": null,
124088
+ "description": null,
124089
+ "name": "upperThreshold",
124090
+ "type": {
124091
+ "kind": "SCALAR",
124092
+ "name": "Float",
124093
+ "ofType": null
124094
+ }
124095
+ },
124096
+ {
124097
+ "defaultValue": null,
124098
+ "description": null,
124099
+ "name": "id",
124100
+ "type": {
124101
+ "kind": "SCALAR",
124102
+ "name": "String",
124103
+ "ofType": null
124104
+ }
124105
+ }
124106
+ ],
124107
+ "interfaces": null,
124108
+ "kind": "INPUT_OBJECT",
124109
+ "name": "MetricAlertConditionInput",
124110
+ "possibleTypes": null
124111
+ },
123904
124112
  {
123905
124113
  "description": "Describes a page of DeltaLog results",
123906
124114
  "enumValues": null,
@@ -172254,6 +172462,57 @@
172254
172462
  "ofType": null
172255
172463
  }
172256
172464
  },
172465
+ {
172466
+ "args": [
172467
+ {
172468
+ "defaultValue": null,
172469
+ "description": "Connection parameters.",
172470
+ "name": "connectionDetails",
172471
+ "type": {
172472
+ "kind": "NON_NULL",
172473
+ "name": null,
172474
+ "ofType": {
172475
+ "kind": "INPUT_OBJECT",
172476
+ "name": "DbtCloudConnectionDetails",
172477
+ "ofType": null
172478
+ }
172479
+ }
172480
+ },
172481
+ {
172482
+ "defaultValue": null,
172483
+ "description": "Common options for integration tests.",
172484
+ "name": "connectionOptions",
172485
+ "type": {
172486
+ "kind": "INPUT_OBJECT",
172487
+ "name": "ConnectionTestOptions",
172488
+ "ofType": null
172489
+ }
172490
+ },
172491
+ {
172492
+ "defaultValue": null,
172493
+ "description": "Name of the validation test that should be run.",
172494
+ "name": "validationName",
172495
+ "type": {
172496
+ "kind": "NON_NULL",
172497
+ "name": null,
172498
+ "ofType": {
172499
+ "kind": "SCALAR",
172500
+ "name": "String",
172501
+ "ofType": null
172502
+ }
172503
+ }
172504
+ }
172505
+ ],
172506
+ "deprecationReason": null,
172507
+ "description": "(experimental) Test dbt Cloud credentials",
172508
+ "isDeprecated": false,
172509
+ "name": "testDbtCloudCredentialsV2",
172510
+ "type": {
172511
+ "kind": "OBJECT",
172512
+ "name": "TestDbtCloudCredentialsV2",
172513
+ "ofType": null
172514
+ }
172515
+ },
172257
172516
  {
172258
172517
  "args": [
172259
172518
  {
@@ -185713,115 +185972,6 @@
185713
185972
  "name": "AggregateInput",
185714
185973
  "possibleTypes": null
185715
185974
  },
185716
- {
185717
- "description": null,
185718
- "enumValues": null,
185719
- "fields": null,
185720
- "inputFields": [
185721
- {
185722
- "defaultValue": null,
185723
- "description": null,
185724
- "name": "metric",
185725
- "type": {
185726
- "kind": "SCALAR",
185727
- "name": "String",
185728
- "ofType": null
185729
- }
185730
- },
185731
- {
185732
- "defaultValue": null,
185733
- "description": null,
185734
- "name": "customMetric",
185735
- "type": {
185736
- "kind": "INPUT_OBJECT",
185737
- "name": "CustomMetricInput",
185738
- "ofType": null
185739
- }
185740
- },
185741
- {
185742
- "defaultValue": null,
185743
- "description": null,
185744
- "name": "fields",
185745
- "type": {
185746
- "kind": "LIST",
185747
- "name": null,
185748
- "ofType": {
185749
- "kind": "NON_NULL",
185750
- "name": null,
185751
- "ofType": {
185752
- "kind": "SCALAR",
185753
- "name": "String",
185754
- "ofType": null
185755
- }
185756
- }
185757
- }
185758
- },
185759
- {
185760
- "defaultValue": "\"threshold\"",
185761
- "description": null,
185762
- "name": "type",
185763
- "type": {
185764
- "kind": "SCALAR",
185765
- "name": "String",
185766
- "ofType": null
185767
- }
185768
- },
185769
- {
185770
- "defaultValue": null,
185771
- "description": null,
185772
- "name": "operator",
185773
- "type": {
185774
- "kind": "SCALAR",
185775
- "name": "String",
185776
- "ofType": null
185777
- }
185778
- },
185779
- {
185780
- "defaultValue": null,
185781
- "description": null,
185782
- "name": "thresholdValue",
185783
- "type": {
185784
- "kind": "SCALAR",
185785
- "name": "Float",
185786
- "ofType": null
185787
- }
185788
- },
185789
- {
185790
- "defaultValue": null,
185791
- "description": null,
185792
- "name": "lowerThreshold",
185793
- "type": {
185794
- "kind": "SCALAR",
185795
- "name": "Float",
185796
- "ofType": null
185797
- }
185798
- },
185799
- {
185800
- "defaultValue": null,
185801
- "description": null,
185802
- "name": "upperThreshold",
185803
- "type": {
185804
- "kind": "SCALAR",
185805
- "name": "Float",
185806
- "ofType": null
185807
- }
185808
- },
185809
- {
185810
- "defaultValue": null,
185811
- "description": null,
185812
- "name": "id",
185813
- "type": {
185814
- "kind": "SCALAR",
185815
- "name": "String",
185816
- "ofType": null
185817
- }
185818
- }
185819
- ],
185820
- "interfaces": null,
185821
- "kind": "INPUT_OBJECT",
185822
- "name": "MetricAlertConditionInput",
185823
- "possibleTypes": null
185824
- },
185825
185975
  {
185826
185976
  "description": null,
185827
185977
  "enumValues": null,
@@ -193567,6 +193717,110 @@
193567
193717
  "name": "DecryptionServiceTypeEnum",
193568
193718
  "possibleTypes": null
193569
193719
  },
193720
+ {
193721
+ "description": "Test a dbt Cloud connection.",
193722
+ "enumValues": null,
193723
+ "fields": [
193724
+ {
193725
+ "args": [],
193726
+ "deprecationReason": null,
193727
+ "description": "Path to key for adding a connection. This key is only generated when calling the SAVE_CREDENTIALS validation.",
193728
+ "isDeprecated": false,
193729
+ "name": "key",
193730
+ "type": {
193731
+ "kind": "SCALAR",
193732
+ "name": "String",
193733
+ "ofType": null
193734
+ }
193735
+ },
193736
+ {
193737
+ "args": [],
193738
+ "deprecationReason": null,
193739
+ "description": "Result of the validation.",
193740
+ "isDeprecated": false,
193741
+ "name": "validationResult",
193742
+ "type": {
193743
+ "kind": "OBJECT",
193744
+ "name": "TestCredentialsV2Response",
193745
+ "ofType": null
193746
+ }
193747
+ }
193748
+ ],
193749
+ "inputFields": null,
193750
+ "interfaces": [],
193751
+ "kind": "OBJECT",
193752
+ "name": "TestDbtCloudCredentialsV2",
193753
+ "possibleTypes": null
193754
+ },
193755
+ {
193756
+ "description": null,
193757
+ "enumValues": null,
193758
+ "fields": null,
193759
+ "inputFields": [
193760
+ {
193761
+ "defaultValue": null,
193762
+ "description": "dbt Cloud API token",
193763
+ "name": "dbtCloudApiToken",
193764
+ "type": {
193765
+ "kind": "NON_NULL",
193766
+ "name": null,
193767
+ "ofType": {
193768
+ "kind": "SCALAR",
193769
+ "name": "String",
193770
+ "ofType": null
193771
+ }
193772
+ }
193773
+ },
193774
+ {
193775
+ "defaultValue": null,
193776
+ "description": "dbt Cloud account ID",
193777
+ "name": "dbtCloudAccountId",
193778
+ "type": {
193779
+ "kind": "NON_NULL",
193780
+ "name": null,
193781
+ "ofType": {
193782
+ "kind": "SCALAR",
193783
+ "name": "String",
193784
+ "ofType": null
193785
+ }
193786
+ }
193787
+ },
193788
+ {
193789
+ "defaultValue": null,
193790
+ "description": "dbt Cloud base URL",
193791
+ "name": "dbtCloudBaseUrl",
193792
+ "type": {
193793
+ "kind": "SCALAR",
193794
+ "name": "String",
193795
+ "ofType": null
193796
+ }
193797
+ },
193798
+ {
193799
+ "defaultValue": null,
193800
+ "description": "dbt Cloud webhook HMAC secret",
193801
+ "name": "dbtCloudWebhookHmacSecret",
193802
+ "type": {
193803
+ "kind": "SCALAR",
193804
+ "name": "String",
193805
+ "ofType": null
193806
+ }
193807
+ },
193808
+ {
193809
+ "defaultValue": null,
193810
+ "description": "dbt Cloud webhook ID",
193811
+ "name": "dbtCloudWebhookId",
193812
+ "type": {
193813
+ "kind": "SCALAR",
193814
+ "name": "String",
193815
+ "ofType": null
193816
+ }
193817
+ }
193818
+ ],
193819
+ "interfaces": null,
193820
+ "kind": "INPUT_OBJECT",
193821
+ "name": "DbtCloudConnectionDetails",
193822
+ "possibleTypes": null
193823
+ },
193570
193824
  {
193571
193825
  "description": "Uploads the result for a DAG run.",
193572
193826
  "enumValues": null,
@@ -6972,6 +6972,37 @@ class DbtArtifactsInput(sgqlc.types.Input):
6972
6972
  """logs file name"""
6973
6973
 
6974
6974
 
6975
+ class DbtCloudConnectionDetails(sgqlc.types.Input):
6976
+ __schema__ = schema
6977
+ __field_names__ = (
6978
+ "dbt_cloud_api_token",
6979
+ "dbt_cloud_account_id",
6980
+ "dbt_cloud_base_url",
6981
+ "dbt_cloud_webhook_hmac_secret",
6982
+ "dbt_cloud_webhook_id",
6983
+ )
6984
+ dbt_cloud_api_token = sgqlc.types.Field(
6985
+ sgqlc.types.non_null(String), graphql_name="dbtCloudApiToken"
6986
+ )
6987
+ """dbt Cloud API token"""
6988
+
6989
+ dbt_cloud_account_id = sgqlc.types.Field(
6990
+ sgqlc.types.non_null(String), graphql_name="dbtCloudAccountId"
6991
+ )
6992
+ """dbt Cloud account ID"""
6993
+
6994
+ dbt_cloud_base_url = sgqlc.types.Field(String, graphql_name="dbtCloudBaseUrl")
6995
+ """dbt Cloud base URL"""
6996
+
6997
+ dbt_cloud_webhook_hmac_secret = sgqlc.types.Field(
6998
+ String, graphql_name="dbtCloudWebhookHmacSecret"
6999
+ )
7000
+ """dbt Cloud webhook HMAC secret"""
7001
+
7002
+ dbt_cloud_webhook_id = sgqlc.types.Field(String, graphql_name="dbtCloudWebhookId")
7003
+ """dbt Cloud webhook ID"""
7004
+
7005
+
6975
7006
  class DbtCloudUpdateConnectionDetails(sgqlc.types.Input):
6976
7007
  __schema__ = schema
6977
7008
  __field_names__ = (
@@ -25458,6 +25489,7 @@ class Mutation(sgqlc.types.Type):
25458
25489
  "test_informatica_credentials",
25459
25490
  "test_azure_data_factory_credentials",
25460
25491
  "test_self_hosted_credentials_v2",
25492
+ "test_dbt_cloud_credentials_v2",
25461
25493
  "upload_airflow_dag_result",
25462
25494
  "upload_airflow_task_result",
25463
25495
  "upload_airflow_sla_misses",
@@ -41336,6 +41368,46 @@ class Mutation(sgqlc.types.Type):
41336
41368
  should be run.
41337
41369
  """
41338
41370
 
41371
+ test_dbt_cloud_credentials_v2 = sgqlc.types.Field(
41372
+ "TestDbtCloudCredentialsV2",
41373
+ graphql_name="testDbtCloudCredentialsV2",
41374
+ args=sgqlc.types.ArgDict(
41375
+ (
41376
+ (
41377
+ "connection_details",
41378
+ sgqlc.types.Arg(
41379
+ sgqlc.types.non_null(DbtCloudConnectionDetails),
41380
+ graphql_name="connectionDetails",
41381
+ default=None,
41382
+ ),
41383
+ ),
41384
+ (
41385
+ "connection_options",
41386
+ sgqlc.types.Arg(
41387
+ ConnectionTestOptions, graphql_name="connectionOptions", default=None
41388
+ ),
41389
+ ),
41390
+ (
41391
+ "validation_name",
41392
+ sgqlc.types.Arg(
41393
+ sgqlc.types.non_null(String), graphql_name="validationName", default=None
41394
+ ),
41395
+ ),
41396
+ )
41397
+ ),
41398
+ )
41399
+ """(experimental) Test dbt Cloud credentials
41400
+
41401
+ Arguments:
41402
+
41403
+ * `connection_details` (`DbtCloudConnectionDetails!`): Connection
41404
+ parameters.
41405
+ * `connection_options` (`ConnectionTestOptions`): Common options
41406
+ for integration tests.
41407
+ * `validation_name` (`String!`): Name of the validation test that
41408
+ should be run.
41409
+ """
41410
+
41339
41411
  upload_airflow_dag_result = sgqlc.types.Field(
41340
41412
  "UploadAirflowDagResult",
41341
41413
  graphql_name="uploadAirflowDagResult",
@@ -43864,6 +43936,7 @@ class Query(sgqlc.types.Type):
43864
43936
  "run_segment_count_query",
43865
43937
  "evaluate_comparison_monitor_alert_conditions",
43866
43938
  "evaluate_comparisons",
43939
+ "evaluate_alert_conditions",
43867
43940
  "get_delta_logs",
43868
43941
  "get_job_schedules",
43869
43942
  "get_collector_job_limits",
@@ -53918,7 +53991,8 @@ class Query(sgqlc.types.Type):
53918
53991
  )
53919
53992
  ),
53920
53993
  )
53921
- """(experimental) Evaluates the provided metric monitor comparisons
53994
+ """(experimental) DEPRECATED. Evaluates the provided metric monitor
53995
+ comparisons
53922
53996
 
53923
53997
  Arguments:
53924
53998
 
@@ -53937,6 +54011,63 @@ class Query(sgqlc.types.Type):
53937
54011
  if any. Determines the maximum number of segments.
53938
54012
  """
53939
54013
 
54014
+ evaluate_alert_conditions = sgqlc.types.Field(
54015
+ ComparisonEvaluationResults,
54016
+ graphql_name="evaluateAlertConditions",
54017
+ args=sgqlc.types.ArgDict(
54018
+ (
54019
+ ("connection_id", sgqlc.types.Arg(UUID, graphql_name="connectionId", default=None)),
54020
+ ("dw_id", sgqlc.types.Arg(UUID, graphql_name="dwId", default=None)),
54021
+ (
54022
+ "data_source",
54023
+ sgqlc.types.Arg(
54024
+ sgqlc.types.non_null(DataSourceUnionInput),
54025
+ graphql_name="dataSource",
54026
+ default=None,
54027
+ ),
54028
+ ),
54029
+ (
54030
+ "alert_conditions",
54031
+ sgqlc.types.Arg(
54032
+ sgqlc.types.non_null(
54033
+ sgqlc.types.list_of(sgqlc.types.non_null(MetricAlertConditionInput))
54034
+ ),
54035
+ graphql_name="alertConditions",
54036
+ default=None,
54037
+ ),
54038
+ ),
54039
+ (
54040
+ "validate_custom_sql",
54041
+ sgqlc.types.Arg(Boolean, graphql_name="validateCustomSql", default=True),
54042
+ ),
54043
+ (
54044
+ "high_segment_count",
54045
+ sgqlc.types.Arg(Boolean, graphql_name="highSegmentCount", default=False),
54046
+ ),
54047
+ ("aggregate_by", sgqlc.types.Arg(String, graphql_name="aggregateBy", default=None)),
54048
+ )
54049
+ ),
54050
+ )
54051
+ """(experimental) Evaluates the provided metric monitor alert
54052
+ conditions
54053
+
54054
+ Arguments:
54055
+
54056
+ * `connection_id` (`UUID`): Connection UUID
54057
+ * `dw_id` (`UUID`): Warehouse UUID
54058
+ * `data_source` (`DataSourceUnionInput!`): The data source
54059
+ * `alert_conditions` (`[MetricAlertConditionInput!]!`): Metric
54060
+ monitor alert conditions
54061
+ * `validate_custom_sql` (`Boolean`): Whether to validate the
54062
+ custom and generated SQL by running it against the data
54063
+ warehouse (default: `true`)
54064
+ * `high_segment_count` (`Boolean`): Flag to apply additional
54065
+ limits which increase the supported segment count (default:
54066
+ `false`)
54067
+ * `aggregate_by` (`String`): The time aggregation for the monitor,
54068
+ if any. Determines the maximum number of segments.
54069
+ """
54070
+
53940
54071
  get_delta_logs = sgqlc.types.Field(
53941
54072
  DeltaLogConnection,
53942
54073
  graphql_name="getDeltaLogs",
@@ -65009,6 +65140,22 @@ class TestDbtCloudCredentials(sgqlc.types.Type):
65009
65140
  """Indicates whether the operation was completed successfully"""
65010
65141
 
65011
65142
 
65143
+ class TestDbtCloudCredentialsV2(sgqlc.types.Type):
65144
+ """Test a dbt Cloud connection."""
65145
+
65146
+ __schema__ = schema
65147
+ __field_names__ = ("key", "validation_result")
65148
+ key = sgqlc.types.Field(String, graphql_name="key")
65149
+ """Path to key for adding a connection. This key is only generated
65150
+ when calling the SAVE_CREDENTIALS validation.
65151
+ """
65152
+
65153
+ validation_result = sgqlc.types.Field(
65154
+ TestCredentialsV2Response, graphql_name="validationResult"
65155
+ )
65156
+ """Result of the validation."""
65157
+
65158
+
65012
65159
  class TestFivetranCredentials(sgqlc.types.Type):
65013
65160
  """Test a Fivetran connection"""
65014
65161
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycarlo
3
- Version: 0.10.164
3
+ Version: 0.10.166
4
4
  Summary: Monte Carlo's Python SDK
5
5
  Home-page: https://www.montecarlodata.com/
6
6
  Author: Monte Carlo Data, Inc
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes