scope-client 1.4.808__py3-none-any.whl → 1.4.810__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.
@@ -33,7 +33,6 @@ class Alert(BaseModel):
33
33
  value: Union[StrictFloat, StrictInt] = Field(description="The value of the metric that triggered the alert.")
34
34
  threshold: Union[StrictFloat, StrictInt] = Field(description="The threshold that triggered the alert.")
35
35
  bound: AlertBound = Field(description="The bound of the alert.")
36
- metric_version: Optional[StrictInt]
37
36
  dimensions: Optional[Dict[str, Any]]
38
37
  alert_rule_id: StrictStr = Field(description="The alert rule id of the alert.")
39
38
  job_id: Optional[StrictStr] = None
@@ -44,7 +43,7 @@ class Alert(BaseModel):
44
43
  alert_rule_name: StrictStr = Field(description="The name of the alert rule.")
45
44
  alert_rule_metric_name: StrictStr = Field(description="The name of the metric returned by the alert rule query.")
46
45
  is_duplicate_of: Optional[StrictStr] = None
47
- __properties: ClassVar[List[str]] = ["description", "timestamp", "value", "threshold", "bound", "metric_version", "dimensions", "alert_rule_id", "job_id", "created_at", "updated_at", "id", "model_id", "alert_rule_name", "alert_rule_metric_name", "is_duplicate_of"]
46
+ __properties: ClassVar[List[str]] = ["description", "timestamp", "value", "threshold", "bound", "dimensions", "alert_rule_id", "job_id", "created_at", "updated_at", "id", "model_id", "alert_rule_name", "alert_rule_metric_name", "is_duplicate_of"]
48
47
 
49
48
  model_config = ConfigDict(
50
49
  populate_by_name=True,
@@ -90,11 +89,6 @@ class Alert(BaseModel):
90
89
  if self.description is None and "description" in self.model_fields_set:
91
90
  _dict['description'] = None
92
91
 
93
- # set to None if metric_version (nullable) is None
94
- # and model_fields_set contains the field
95
- if self.metric_version is None and "metric_version" in self.model_fields_set:
96
- _dict['metric_version'] = None
97
-
98
92
  # set to None if dimensions (nullable) is None
99
93
  # and model_fields_set contains the field
100
94
  if self.dimensions is None and "dimensions" in self.model_fields_set:
@@ -127,7 +121,6 @@ class Alert(BaseModel):
127
121
  "value": obj.get("value"),
128
122
  "threshold": obj.get("threshold"),
129
123
  "bound": obj.get("bound"),
130
- "metric_version": obj.get("metric_version"),
131
124
  "dimensions": obj.get("dimensions"),
132
125
  "alert_rule_id": obj.get("alert_rule_id"),
133
126
  "job_id": obj.get("job_id"),
@@ -18,7 +18,7 @@ import re # noqa: F401
18
18
  import json
19
19
 
20
20
  from datetime import datetime
21
- from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
22
22
  from typing import Any, ClassVar, Dict, List, Optional
23
23
  from typing import Optional, Set
24
24
  from typing_extensions import Self
@@ -31,8 +31,7 @@ class AlertCheckJobSpec(BaseModel):
31
31
  scope_model_id: StrictStr = Field(description="The id of the model to check alerts.")
32
32
  check_range_start_timestamp: datetime = Field(description="The start timestamp to use for checking the alerts on the data.")
33
33
  check_range_end_timestamp: datetime = Field(description="The end timestamp to use for checking the alerts on the data.")
34
- metric_version: Optional[StrictInt] = None
35
- __properties: ClassVar[List[str]] = ["job_type", "scope_model_id", "check_range_start_timestamp", "check_range_end_timestamp", "metric_version"]
34
+ __properties: ClassVar[List[str]] = ["job_type", "scope_model_id", "check_range_start_timestamp", "check_range_end_timestamp"]
36
35
 
37
36
  @field_validator('job_type')
38
37
  def job_type_validate_enum(cls, value):
@@ -83,11 +82,6 @@ class AlertCheckJobSpec(BaseModel):
83
82
  exclude=excluded_fields,
84
83
  exclude_none=True,
85
84
  )
86
- # set to None if metric_version (nullable) is None
87
- # and model_fields_set contains the field
88
- if self.metric_version is None and "metric_version" in self.model_fields_set:
89
- _dict['metric_version'] = None
90
-
91
85
  return _dict
92
86
 
93
87
  @classmethod
@@ -103,8 +97,7 @@ class AlertCheckJobSpec(BaseModel):
103
97
  "job_type": obj.get("job_type") if obj.get("job_type") is not None else 'alert_check',
104
98
  "scope_model_id": obj.get("scope_model_id"),
105
99
  "check_range_start_timestamp": obj.get("check_range_start_timestamp"),
106
- "check_range_end_timestamp": obj.get("check_range_end_timestamp"),
107
- "metric_version": obj.get("metric_version")
100
+ "check_range_end_timestamp": obj.get("check_range_end_timestamp")
108
101
  })
109
102
  return _obj
110
103
 
@@ -33,11 +33,10 @@ class PostAlert(BaseModel):
33
33
  value: Union[StrictFloat, StrictInt] = Field(description="The value of the metric that triggered the alert.")
34
34
  threshold: Union[StrictFloat, StrictInt] = Field(description="The threshold that triggered the alert.")
35
35
  bound: AlertBound = Field(description="The bound of the alert.")
36
- metric_version: Optional[StrictInt]
37
36
  dimensions: Optional[Dict[str, Any]]
38
37
  alert_rule_id: StrictStr = Field(description="The alert rule id of the alert.")
39
38
  job_id: Optional[StrictStr] = None
40
- __properties: ClassVar[List[str]] = ["description", "timestamp", "value", "threshold", "bound", "metric_version", "dimensions", "alert_rule_id", "job_id"]
39
+ __properties: ClassVar[List[str]] = ["description", "timestamp", "value", "threshold", "bound", "dimensions", "alert_rule_id", "job_id"]
41
40
 
42
41
  model_config = ConfigDict(
43
42
  populate_by_name=True,
@@ -83,11 +82,6 @@ class PostAlert(BaseModel):
83
82
  if self.description is None and "description" in self.model_fields_set:
84
83
  _dict['description'] = None
85
84
 
86
- # set to None if metric_version (nullable) is None
87
- # and model_fields_set contains the field
88
- if self.metric_version is None and "metric_version" in self.model_fields_set:
89
- _dict['metric_version'] = None
90
-
91
85
  # set to None if dimensions (nullable) is None
92
86
  # and model_fields_set contains the field
93
87
  if self.dimensions is None and "dimensions" in self.model_fields_set:
@@ -115,7 +109,6 @@ class PostAlert(BaseModel):
115
109
  "value": obj.get("value"),
116
110
  "threshold": obj.get("threshold"),
117
111
  "bound": obj.get("bound"),
118
- "metric_version": obj.get("metric_version"),
119
112
  "dimensions": obj.get("dimensions"),
120
113
  "alert_rule_id": obj.get("alert_rule_id"),
121
114
  "job_id": obj.get("job_id")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: scope_client
3
- Version: 1.4.808
3
+ Version: 1.4.810
4
4
  Summary: Arthur Python API Client Library
5
5
  Author-email: Arthur <info@arthur.ai>
6
6
  License: MIT
@@ -34,9 +34,9 @@ scope_client/api_bindings/models/aggregation_metric_type.py,sha256=USKpDqhX4TQ4l
34
34
  scope_client/api_bindings/models/aggregation_spec.py,sha256=gWFTgLqxNdiIw4iXwbNqKAnAwDpbcgeoFfQ_7VxtKOQ,4109
35
35
  scope_client/api_bindings/models/aggregation_spec_schema.py,sha256=MHGlB9eF8NfOasOHiqj1ZzYiBaIl8y8J2SmQysoSWVU,4624
36
36
  scope_client/api_bindings/models/aggregation_spec_schema_init_args_inner.py,sha256=r_dYE8Ew3wrmDfJFwK7btFxiyI_y2HjCs9BZEhRrM6E,7536
37
- scope_client/api_bindings/models/alert.py,sha256=fBIcRWpZsz_m_OUEgS_i6OOFm2ztkRkhnxjsfvgOI_M,5821
37
+ scope_client/api_bindings/models/alert.py,sha256=sxkjaKtuWJIfu8PMKR9fRmyVUq6xuzRLaeAKTF2u-zM,5467
38
38
  scope_client/api_bindings/models/alert_bound.py,sha256=iobunYuV7vKLg6EryqI3MftCkYrmeJtRC7ATONCfztU,768
39
- scope_client/api_bindings/models/alert_check_job_spec.py,sha256=4PBBCnxz23OJGG-3xUxCwDPPH4PmghHC8TwfYL4DMw8,3967
39
+ scope_client/api_bindings/models/alert_check_job_spec.py,sha256=dJnsLFbfvdM9AYUWAubMoOQ79dU4FhFtHHyy3Ux1WtY,3595
40
40
  scope_client/api_bindings/models/alert_rule.py,sha256=5wyqL4Wugx1tP6iegseWRZ4SHoBMn3GIrMq1j3my4xw,5727
41
41
  scope_client/api_bindings/models/alert_rule_notification_webhook.py,sha256=Oi6c_34jdVqT_WU76wrs8kla3-kNdD7rVEZDouSHaAc,2669
42
42
  scope_client/api_bindings/models/alert_rule_sort.py,sha256=ewtr9F3cttc4VpoCZcgOLd18zQUanhV18D0D0RLbmaQ,761
@@ -173,7 +173,7 @@ scope_client/api_bindings/models/permission_request_item.py,sha256=czzZsHDgvFOyZ
173
173
  scope_client/api_bindings/models/permission_response_item.py,sha256=7D0mG1etQeYIYE9U6if8zIgJh0JEQOruk5aH6TtiNtw,3262
174
174
  scope_client/api_bindings/models/permissions_request.py,sha256=dbh_2kJdTzuZzZ8UjQAdfxnDtOXwFeDIzvdflOaU_3A,3311
175
175
  scope_client/api_bindings/models/permissions_response.py,sha256=NJxrhABuGXAJ03o-QQohf6xSH44QSDYDVZjbyFEWDvY,3082
176
- scope_client/api_bindings/models/post_alert.py,sha256=Me1X6OQ81WU1Mqx9Cc6f66zehqPXJdjKZYR_hO9Ez4M,4584
176
+ scope_client/api_bindings/models/post_alert.py,sha256=DYsLeD_zDPpcjROUPThBQn9I8p5Qr2KiDb4dNArPZGo,4230
177
177
  scope_client/api_bindings/models/post_alert_rule.py,sha256=V2jGigltR2X58JbwTcyVmy9RV9YBEklK71KBK_0vLzg,3847
178
178
  scope_client/api_bindings/models/post_alerts.py,sha256=6Jd3p9Pi04BK9tq8DR4o8TZ0e8I1hfRQUV7gJ5wANEE,3065
179
179
  scope_client/api_bindings/models/post_connector_spec.py,sha256=tCtEBCLSXXLse7x-kD3OWrkCpD0_TuHx2LNDEc8VysU,3917
@@ -270,7 +270,7 @@ scope_client/auth/device_authorizer.py,sha256=bJMIZRjkwQwoSWTLEp7OoXM2MytO3ADSD9
270
270
  scope_client/auth/discovery.py,sha256=hR0MglzRWHdwyi72If5hTnjO50fDJhquP_DD7OzjIQQ,1188
271
271
  scope_client/auth/oauth_api_config.py,sha256=wcEslusOFKr0oTzW0Ku2MhM1mvc-nm4BEJU8LHo1uXA,1347
272
272
  scope_client/auth/session.py,sha256=wCriib5ajfm1e1WTL_QXVCJmEOrGwQg_0v91e5qrC6g,2649
273
- scope_client-1.4.808.dist-info/METADATA,sha256=uPzWxX7U1OE4hA0F9kF6VUtMZMF8ARA8Nhc2sVy5SjA,1776
274
- scope_client-1.4.808.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
275
- scope_client-1.4.808.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
276
- scope_client-1.4.808.dist-info/RECORD,,
273
+ scope_client-1.4.810.dist-info/METADATA,sha256=RI-qw94D_2gACu0Tx37cldy8Hnq33-4FTOAy6kQqmGE,1776
274
+ scope_client-1.4.810.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
275
+ scope_client-1.4.810.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
276
+ scope_client-1.4.810.dist-info/RECORD,,