scope-client 1.4.768__py3-none-any.whl → 1.4.770__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.
@@ -43,7 +43,8 @@ class Alert(BaseModel):
43
43
  model_id: StrictStr = Field(description="The model id of the alert.")
44
44
  alert_rule_name: StrictStr = Field(description="The name of the alert rule.")
45
45
  alert_rule_metric_name: StrictStr = Field(description="The name of the metric returned by the alert rule query.")
46
- __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"]
46
+ 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"]
47
48
 
48
49
  model_config = ConfigDict(
49
50
  populate_by_name=True,
@@ -104,6 +105,11 @@ class Alert(BaseModel):
104
105
  if self.job_id is None and "job_id" in self.model_fields_set:
105
106
  _dict['job_id'] = None
106
107
 
108
+ # set to None if is_duplicate_of (nullable) is None
109
+ # and model_fields_set contains the field
110
+ if self.is_duplicate_of is None and "is_duplicate_of" in self.model_fields_set:
111
+ _dict['is_duplicate_of'] = None
112
+
107
113
  return _dict
108
114
 
109
115
  @classmethod
@@ -130,7 +136,8 @@ class Alert(BaseModel):
130
136
  "id": obj.get("id"),
131
137
  "model_id": obj.get("model_id"),
132
138
  "alert_rule_name": obj.get("alert_rule_name"),
133
- "alert_rule_metric_name": obj.get("alert_rule_metric_name")
139
+ "alert_rule_metric_name": obj.get("alert_rule_metric_name"),
140
+ "is_duplicate_of": obj.get("is_duplicate_of")
134
141
  })
135
142
  return _obj
136
143
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: scope_client
3
- Version: 1.4.768
3
+ Version: 1.4.770
4
4
  Summary: Arthur Python API Client Library
5
5
  Author-email: Arthur <info@arthur.ai>
6
6
  License: MIT
@@ -34,7 +34,7 @@ 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=U-PGKGT_YLySv8rpK0ArCZCFfmL6kqPAbNcoR5gVxjc,5452
37
+ scope_client/api_bindings/models/alert.py,sha256=fBIcRWpZsz_m_OUEgS_i6OOFm2ztkRkhnxjsfvgOI_M,5821
38
38
  scope_client/api_bindings/models/alert_bound.py,sha256=iobunYuV7vKLg6EryqI3MftCkYrmeJtRC7ATONCfztU,768
39
39
  scope_client/api_bindings/models/alert_check_job_spec.py,sha256=4PBBCnxz23OJGG-3xUxCwDPPH4PmghHC8TwfYL4DMw8,3967
40
40
  scope_client/api_bindings/models/alert_rule.py,sha256=5wyqL4Wugx1tP6iegseWRZ4SHoBMn3GIrMq1j3my4xw,5727
@@ -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.768.dist-info/METADATA,sha256=9-OwlYjMX7IrFlPE85tz9wUil-2rZKiyJSboy97CnaM,1776
274
- scope_client-1.4.768.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
275
- scope_client-1.4.768.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
276
- scope_client-1.4.768.dist-info/RECORD,,
273
+ scope_client-1.4.770.dist-info/METADATA,sha256=8kDJQXH8B7b2bet3-E4EY6Z27aB7UfKPLYrC9vhOGnk,1776
274
+ scope_client-1.4.770.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
275
+ scope_client-1.4.770.dist-info/top_level.txt,sha256=x6MngS09hi-TUDoUGb3SLzmnf8_cf8IVAVNPSqtTzAY,13
276
+ scope_client-1.4.770.dist-info/RECORD,,