arthur-client 1.0.0__py3-none-any.whl → 1.2.0__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.
@@ -13,5 +13,4 @@ from . import model_groups
13
13
  from . import models
14
14
  from . import query
15
15
  from . import users
16
-
17
16
  # end import subpackages
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: admin.yaml
3
- # timestamp: 2024-01-09T15:45:36+00:00
3
+ # timestamp: 2024-01-19T17:36:04+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -25,8 +25,8 @@ class PermissionRequest(BaseModel):
25
25
 
26
26
 
27
27
  class UsageRollups(str, Enum):
28
- Organization = "organization"
29
- Model = "model"
28
+ Organization = 'organization'
29
+ Model = 'model'
30
30
 
31
31
 
32
32
  class RolesRequest(BaseModel):
@@ -41,11 +41,11 @@ class RolesRequest(BaseModel):
41
41
 
42
42
 
43
43
  class UsageCategory(Enum):
44
- Inferences = "inferences"
45
- Explanations = "explanations"
46
- Organization = "organization"
47
- GroundTruth = "ground_truth"
48
- ReferenceData = "reference_data"
44
+ Inferences = 'inferences'
45
+ Explanations = 'explanations'
46
+ Organization = 'organization'
47
+ GroundTruth = 'ground_truth'
48
+ ReferenceData = 'reference_data'
49
49
 
50
50
 
51
51
  class User(BaseModel):
@@ -92,7 +92,7 @@ class User(BaseModel):
92
92
 
93
93
 
94
94
  class UsageMetric(BaseModel):
95
- name: str = Field(..., example="record_counts")
95
+ name: str = Field(..., example='record_counts')
96
96
  """
97
97
  Name of the metric. For inferences, explanations, and ground_truth this will be either bytes or record_count. For organizational metrics this will be user_count and/or model_count.
98
98
  """
@@ -108,7 +108,7 @@ class LoginRequest(BaseModel):
108
108
 
109
109
 
110
110
  class LoginFailureResponse(BaseModel):
111
- error: Optional[str] = Field(None, example="unauthorized")
111
+ error: Optional[str] = Field(None, example='unauthorized')
112
112
  """
113
113
  Error message
114
114
  """
@@ -116,7 +116,7 @@ class LoginFailureResponse(BaseModel):
116
116
 
117
117
  class LoginLockoutResponse(BaseModel):
118
118
  error: Optional[str] = Field(
119
- None, example="User locked out, please try again after 10 minutes"
119
+ None, example='User locked out, please try again after 10 minutes'
120
120
  )
121
121
  """
122
122
  Error message
@@ -125,7 +125,7 @@ class LoginLockoutResponse(BaseModel):
125
125
 
126
126
  class OrganizationUsage(BaseModel):
127
127
  organization_id: Optional[UUID] = Field(
128
- None, example="12345678-90ab-cdef-1234-567890abcdef"
128
+ None, example='12345678-90ab-cdef-1234-567890abcdef'
129
129
  )
130
130
  """
131
131
  Unique UUID for the organization
@@ -202,12 +202,12 @@ class UsageData(BaseModel):
202
202
  explanations: Optional[List[UsageMetric]] = None
203
203
  organization: Optional[List[UsageMetric]] = None
204
204
  ground_truth: Optional[List[UsageMetric]] = None
205
- id: UUID = Field(..., example="19e2716a-02a0-4b52-9ff2-540c1e685be6")
205
+ id: UUID = Field(..., example='19e2716a-02a0-4b52-9ff2-540c1e685be6')
206
206
  """
207
207
  When rollup = "model", this will be the model id. When rollup = "organization", this will be the organization id.
208
208
  """
209
- name: str = Field(..., example="Model A")
210
- organization_id: UUID = Field(..., example="dc355b20-9163-4619-a0b8-4bf2cd8d62d7")
209
+ name: str = Field(..., example='Model A')
210
+ organization_id: UUID = Field(..., example='dc355b20-9163-4619-a0b8-4bf2cd8d62d7')
211
211
  """
212
212
  In the case where rollup = "model", this will be the organization id for the model referenced by "id". In the case where rollup = "organization", this will be the same value as the "id" field.
213
213
  """
@@ -215,12 +215,12 @@ class UsageData(BaseModel):
215
215
 
216
216
  class OrganizationLimits(BaseModel):
217
217
  organization_id: Optional[UUID] = Field(
218
- None, example="12345678-90ab-cdef-1234-567890abcdef"
218
+ None, example='12345678-90ab-cdef-1234-567890abcdef'
219
219
  )
220
220
  """
221
221
  Unique UUID for the organization
222
222
  """
223
- plan: Optional[str] = Field(None, example="enterprise")
223
+ plan: Optional[str] = Field(None, example='enterprise')
224
224
  """
225
225
  The organization's license plan for platform usage
226
226
  """
@@ -400,19 +400,19 @@ class UpdateOrganizationRequest(BaseModel):
400
400
 
401
401
 
402
402
  class OrgExpand(str, Enum):
403
- LicensePlan = "license_plan"
404
- Roles = "roles"
403
+ LicensePlan = 'license_plan'
404
+ Roles = 'roles'
405
405
 
406
406
 
407
407
  class Organization(BaseModel):
408
- id: UUID = Field(..., example="12345678-90ab-cdef-1234-567890abcdef")
408
+ id: UUID = Field(..., example='12345678-90ab-cdef-1234-567890abcdef')
409
409
  """
410
410
  Unique UUID for the organization
411
411
  """
412
412
  name: str
413
413
  bucket_name: Optional[str] = None
414
414
  bucket_url: Optional[str] = None
415
- plan: Optional[str] = Field(None, example="enterprise")
415
+ plan: Optional[str] = Field(None, example='enterprise')
416
416
  """
417
417
  The organization's license plan for platform usage
418
418
  """
@@ -441,7 +441,7 @@ class CustomRBACRequest(BaseModel):
441
441
  class PaginatedUsageResponse(BaseModel):
442
442
  data: List[UsageData]
443
443
  total_count: int
444
- rollup: str = Field(..., example="model")
444
+ rollup: str = Field(..., example='model')
445
445
  interval_start: datetime
446
446
  interval_end: datetime
447
447
 
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: alerts.yaml
3
- # timestamp: 2024-01-09T15:45:36+00:00
3
+ # timestamp: 2024-01-19T17:36:04+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -22,7 +22,7 @@ from pydantic import BaseModel, Field
22
22
 
23
23
 
24
24
  class Type(str, Enum):
25
- Email = "email"
25
+ Email = 'email'
26
26
 
27
27
 
28
28
  class NewAlertSummaryNotificationConfiguration(BaseModel):
@@ -42,8 +42,8 @@ class NewAlertSummaryNotificationConfiguration(BaseModel):
42
42
 
43
43
 
44
44
  class AlertPriority(str, Enum):
45
- Warning = "warning"
46
- Critical = "critical"
45
+ Warning = 'warning'
46
+ Critical = 'critical'
47
47
 
48
48
 
49
49
  class EmailNotificationBody(BaseModel):
@@ -58,7 +58,7 @@ class AlertNotificationConfiguration(BaseModel):
58
58
  Tells us where and how to deliver an alert notification
59
59
  """
60
60
 
61
- id: str = Field(..., example="418c6939-8765-40fa-b04e-11ba57b7f21c")
61
+ id: str = Field(..., example='418c6939-8765-40fa-b04e-11ba57b7f21c')
62
62
  """
63
63
  The unique UUID of this notification configuration
64
64
  """
@@ -86,10 +86,10 @@ class MetricType(str, Enum):
86
86
  The metric type/category
87
87
  """
88
88
 
89
- ModelOutputMetric = "model_output_metric"
90
- ModelPerformanceMetric = "model_performance_metric"
91
- ModelDataDriftMetric = "model_data_drift_metric"
92
- ModelDataBoundMetric = "model_data_bound_metric"
89
+ ModelOutputMetric = 'model_output_metric'
90
+ ModelPerformanceMetric = 'model_performance_metric'
91
+ ModelDataDriftMetric = 'model_data_drift_metric'
92
+ ModelDataBoundMetric = 'model_data_bound_metric'
93
93
 
94
94
 
95
95
  class LastUpdatedByType(str, Enum):
@@ -97,21 +97,21 @@ class LastUpdatedByType(str, Enum):
97
97
  Type of user that created or last updated this alert rule. Null if the rule was auto-generated by Arthur.
98
98
  """
99
99
 
100
- ServiceAccount = "service-account"
101
- ArthurManaged = "arthur-managed"
102
- IDPManaged = "idp-managed"
100
+ ServiceAccount = 'service-account'
101
+ ArthurManaged = 'arthur-managed'
102
+ IDPManaged = 'idp-managed'
103
103
 
104
104
 
105
105
  class AlertRulesSort(str, Enum):
106
- Name = "name"
107
- Severity = "severity"
108
- MetricID = "metric_id"
109
- MetricName = "metric_name"
110
- MetricType = "metric_type"
111
- SubsequentAlertWaitTime = "subsequent_alert_wait_time"
112
- LastUpdatedAt = "last_updated_at"
113
- LastUpdatedBy = "last_updated_by"
114
- Enabled = "enabled"
106
+ Name = 'name'
107
+ Severity = 'severity'
108
+ MetricID = 'metric_id'
109
+ MetricName = 'metric_name'
110
+ MetricType = 'metric_type'
111
+ SubsequentAlertWaitTime = 'subsequent_alert_wait_time'
112
+ LastUpdatedAt = 'last_updated_at'
113
+ LastUpdatedBy = 'last_updated_by'
114
+ Enabled = 'enabled'
115
115
 
116
116
 
117
117
  class AlertCounts(BaseModel):
@@ -125,8 +125,8 @@ class AlertCounts(BaseModel):
125
125
 
126
126
 
127
127
  class Bound(str, Enum):
128
- Upper = "upper"
129
- Lower = "lower"
128
+ Upper = 'upper'
129
+ Lower = 'lower'
130
130
 
131
131
 
132
132
  class Severity(str, Enum):
@@ -134,8 +134,8 @@ class Severity(str, Enum):
134
134
  Priority of the alert rule which triggered this alert.
135
135
  """
136
136
 
137
- warning = "warning"
138
- critical = "critical"
137
+ warning = 'warning'
138
+ critical = 'critical'
139
139
 
140
140
 
141
141
  class AlertRuleRequest(BaseModel):
@@ -195,8 +195,8 @@ class Frequency(str, Enum):
195
195
  The cadence on which to send out the alert summary to subscribers
196
196
  """
197
197
 
198
- Daily = "daily"
199
- Weekly = "weekly"
198
+ Daily = 'daily'
199
+ Weekly = 'weekly'
200
200
 
201
201
 
202
202
  class SendDayOfWeek(str, Enum):
@@ -204,13 +204,13 @@ class SendDayOfWeek(str, Enum):
204
204
  The day of the week to send the alert summary to subscribers. Only required if frequency is Weekly.
205
205
  """
206
206
 
207
- Monday = "Monday"
208
- Tuesday = "Tuesday"
209
- Wednesday = "Wednesday"
210
- Thursday = "Thursday"
211
- Friday = "Friday"
212
- Saturday = "Saturday"
213
- Sunday = "Sunday"
207
+ Monday = 'Monday'
208
+ Tuesday = 'Tuesday'
209
+ Wednesday = 'Wednesday'
210
+ Thursday = 'Thursday'
211
+ Friday = 'Friday'
212
+ Saturday = 'Saturday'
213
+ Sunday = 'Sunday'
214
214
 
215
215
 
216
216
  class NewAlertSummaryConfiguration(BaseModel):
@@ -230,7 +230,7 @@ class NewAlertSummaryConfiguration(BaseModel):
230
230
  """
231
231
  The day of the week to send the alert summary to subscribers. Only required if frequency is Weekly.
232
232
  """
233
- send_time_of_day: str = Field(..., example="09:00")
233
+ send_time_of_day: str = Field(..., example='09:00')
234
234
  """
235
235
  The time on a given day to send the alert summary to subscribers in the format "00:00".
236
236
  """
@@ -245,9 +245,9 @@ class NewAlertSummaryConfiguration(BaseModel):
245
245
 
246
246
 
247
247
  class Type2(str, Enum):
248
- Email = "email"
249
- PagerDuty = "pagerduty"
250
- ServiceNow = "servicenow"
248
+ Email = 'email'
249
+ PagerDuty = 'pagerduty'
250
+ ServiceNow = 'servicenow'
251
251
 
252
252
 
253
253
  class NewAlertNotificationConfiguration(BaseModel):
@@ -290,8 +290,8 @@ class Status(str, Enum):
290
290
  Whether the alert has been resolved or not.
291
291
  """
292
292
 
293
- New = "new"
294
- Resolved = "resolved"
293
+ New = 'new'
294
+ Resolved = 'resolved'
295
295
 
296
296
 
297
297
  class AlertNotificationConfigurationUpdate(BaseModel):
@@ -322,7 +322,7 @@ class AlertSummaryConfigurationUpdate(BaseModel):
322
322
  """
323
323
  The day of the week to send the alert summary to subscribers. Only required if frequency is Weekly.
324
324
  """
325
- send_time_of_day: Optional[str] = Field(None, example="09:00")
325
+ send_time_of_day: Optional[str] = Field(None, example='09:00')
326
326
  """
327
327
  The time on a given day to send the alert summary to subscribers in the format "00:00".
328
328
  """
@@ -341,8 +341,8 @@ class Severity1(str, Enum):
341
341
  Priority of the alert rule which triggered this alert.
342
342
  """
343
343
 
344
- Warning = "warning"
345
- Critical = "critical"
344
+ Warning = 'warning'
345
+ Critical = 'critical'
346
346
 
347
347
 
348
348
  class AlertRulePatch(BaseModel):
@@ -378,8 +378,8 @@ class Status1(str, Enum):
378
378
  Status to update alert with
379
379
  """
380
380
 
381
- Resolved = "resolved"
382
- Acknowledged = "acknowledged"
381
+ Resolved = 'resolved'
382
+ Acknowledged = 'acknowledged'
383
383
 
384
384
 
385
385
  class AlertRequest(BaseModel):
@@ -457,7 +457,7 @@ class AlertSummaryConfiguration(BaseModel):
457
457
  Specify the contents of an alert summary as well as when and where to send it
458
458
  """
459
459
 
460
- id: str = Field(..., example="418c6939-8765-40fa-b04e-11ba57b7f21c")
460
+ id: str = Field(..., example='418c6939-8765-40fa-b04e-11ba57b7f21c')
461
461
  """
462
462
  The unique UUID of this alert summary configuration
463
463
  """
@@ -481,7 +481,7 @@ class AlertSummaryConfiguration(BaseModel):
481
481
  """
482
482
  The day of the week to send the alert summary to subscribers. Only required if frequency is Weekly.
483
483
  """
484
- send_time_of_day: str = Field(..., example="09:00")
484
+ send_time_of_day: str = Field(..., example='09:00')
485
485
  """
486
486
  The time on a given day to send the alert summary to subscribers in the format "00:00".
487
487
  """
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: bench.yaml
3
- # timestamp: 2024-01-09T15:45:36+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -24,7 +24,6 @@ from arthur.client.rest.model_groups.client import ArthurModelGroupsClient
24
24
  from arthur.client.rest.models.client import ArthurModelsClient
25
25
  from arthur.client.rest.query.client import ArthurQueryClient
26
26
  from arthur.client.rest.users.client import ArthurUsersClient
27
-
28
27
  # end import sub-clients
29
28
 
30
29
  UNKNOWN_ORG_ID = "unknown-org"
@@ -1,6 +1,6 @@
1
1
  # generated by datamodel-codegen:
2
2
  # filename: common.yaml
3
- # timestamp: 2024-01-09T15:45:36+00:00
3
+ # timestamp: 2024-01-19T17:36:03+00:00
4
4
 
5
5
  from __future__ import annotations
6
6
 
@@ -15,12 +15,12 @@ class Rollup(str, Enum):
15
15
  An optional parameter that will aggregate the calculated data drift value by the supported dimension.
16
16
  """
17
17
 
18
- Minute = "minute"
19
- Hour = "hour"
20
- Day = "day"
21
- Month = "month"
22
- Year = "year"
23
- BatchID = "batch_id"
18
+ Minute = 'minute'
19
+ Hour = 'hour'
20
+ Day = 'day'
21
+ Month = 'month'
22
+ Year = 'year'
23
+ BatchID = 'batch_id'
24
24
 
25
25
 
26
26
  class Source(str, Enum):
@@ -28,8 +28,8 @@ class Source(str, Enum):
28
28
  Location of the data (inference or reference)
29
29
  """
30
30
 
31
- Inference = "inference"
32
- Reference = "reference"
31
+ Inference = 'inference'
32
+ Reference = 'reference'
33
33
 
34
34
 
35
35
  class KeyValueObject(BaseModel):
@@ -63,13 +63,13 @@ class Comparator(str, Enum):
63
63
  gt = greater than, gte = greater than or equal, lt = less than, lte = less than or equal, eq = equal, like = used for text search
64
64
  """
65
65
 
66
- GreaterThan = "gt"
67
- GreaterThanOrEqual = "gte"
68
- LessThan = "lt"
69
- LessThanOrEqual = "lte"
70
- Equal = "eq"
71
- In = "in"
72
- Like = "like"
66
+ GreaterThan = 'gt'
67
+ GreaterThanOrEqual = 'gte'
68
+ LessThan = 'lt'
69
+ LessThanOrEqual = 'lte'
70
+ Equal = 'eq'
71
+ In = 'in'
72
+ Like = 'like'
73
73
 
74
74
 
75
75
  class QueryFilter(BaseModel):
@@ -127,9 +127,9 @@ class From(str, Enum):
127
127
  Data to query. Inferences are the raw inferences sent to the platform. Enriched includes the raw inferences, plus enriched properties like explanations and anomaly scores. Reference is the reference data set uploaded to the platform. The default is 'inference'.
128
128
  """
129
129
 
130
- Inference = "inference"
131
- Enriched = "enriched"
132
- Reference = "reference"
130
+ Inference = 'inference'
131
+ Enriched = 'enriched'
132
+ Reference = 'reference'
133
133
 
134
134
 
135
135
  class Sort(BaseModel):
@@ -177,9 +177,9 @@ class From1(str, Enum):
177
177
  Data to query. Inferences are the raw inferences sent to the platform. Enriched includes the raw inferences, plus enriched properties like explanations and anomaly scores. Reference is the reference data set uploaded to the platform. The default is 'inference'.
178
178
  """
179
179
 
180
- inference = "inference"
181
- enriched = "enriched"
182
- reference = "reference"
180
+ inference = 'inference'
181
+ enriched = 'enriched'
182
+ reference = 'reference'
183
183
 
184
184
 
185
185
  class AnyArray(BaseModel):
@@ -242,7 +242,7 @@ class NestedParameterReference(BaseModel):
242
242
 
243
243
  class QueryRequest(BaseModel):
244
244
  filter: Optional[QueryFilters] = None
245
- from_: Optional[From] = Field(None, alias="from")
245
+ from_: Optional[From] = Field(None, alias='from')
246
246
  """
247
247
  Data to query. Inferences are the raw inferences sent to the platform. Enriched includes the raw inferences, plus enriched properties like explanations and anomaly scores. Reference is the reference data set uploaded to the platform. The default is 'inference'.
248
248
  """
@@ -302,7 +302,7 @@ class MetricQuery(BaseModel):
302
302
  """
303
303
 
304
304
  select: Optional[QuerySelect] = None
305
- from_: Optional[From1] = Field(None, alias="from")
305
+ from_: Optional[From1] = Field(None, alias='from')
306
306
  """
307
307
  Data to query. Inferences are the raw inferences sent to the platform. Enriched includes the raw inferences, plus enriched properties like explanations and anomaly scores. Reference is the reference data set uploaded to the platform. The default is 'inference'.
308
308
  """