Skip to content

Commit 06e20f0

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/docs/katex-0.16.21
2 parents 2c4f58c + f5c7f6a commit 06e20f0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3470
-27
lines changed

docs/docs/guide/9-alerts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Consider configuring a "no queries submitted" alert to monitor system health. If
2424

2525
## Alert Mediums
2626

27-
Groundlight supports the following alerts via Email and Text Message (SMS), with webhook support coming soon.
27+
Groundlight supports the following alerts via Email, Text Message (SMS), and Webhooks.

generated/.openapi-generator/FILES

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ docs/ImageQueriesApi.md
2929
docs/ImageQuery.md
3030
docs/ImageQueryTypeEnum.md
3131
docs/InlineResponse200.md
32+
docs/InlineResponse2001.md
33+
docs/InlineResponse2001EvaluationResults.md
34+
docs/InlineResponse2002.md
35+
docs/InlineResponse200Summary.md
36+
docs/InlineResponse200SummaryClassCounts.md
3237
docs/LabelValue.md
3338
docs/LabelValueRequest.md
3439
docs/LabelsApi.md
@@ -42,6 +47,8 @@ docs/PaginatedDetectorList.md
4247
docs/PaginatedImageQueryList.md
4348
docs/PaginatedRuleList.md
4449
docs/PatchedDetectorRequest.md
50+
docs/PayloadTemplate.md
51+
docs/PayloadTemplateRequest.md
4552
docs/ROI.md
4653
docs/ROIRequest.md
4754
docs/ResultTypeEnum.md
@@ -50,6 +57,7 @@ docs/RuleRequest.md
5057
docs/SnoozeTimeUnitEnum.md
5158
docs/SourceEnum.md
5259
docs/StatusEnum.md
60+
docs/TextModeConfiguration.md
5361
docs/TextRecognitionResult.md
5462
docs/UserApi.md
5563
docs/VerbEnum.md
@@ -95,6 +103,11 @@ groundlight_openapi_client/model/escalation_type_enum.py
95103
groundlight_openapi_client/model/image_query.py
96104
groundlight_openapi_client/model/image_query_type_enum.py
97105
groundlight_openapi_client/model/inline_response200.py
106+
groundlight_openapi_client/model/inline_response2001.py
107+
groundlight_openapi_client/model/inline_response2001_evaluation_results.py
108+
groundlight_openapi_client/model/inline_response2002.py
109+
groundlight_openapi_client/model/inline_response200_summary.py
110+
groundlight_openapi_client/model/inline_response200_summary_class_counts.py
98111
groundlight_openapi_client/model/label_value.py
99112
groundlight_openapi_client/model/label_value_request.py
100113
groundlight_openapi_client/model/mode_enum.py
@@ -106,6 +119,8 @@ groundlight_openapi_client/model/paginated_detector_list.py
106119
groundlight_openapi_client/model/paginated_image_query_list.py
107120
groundlight_openapi_client/model/paginated_rule_list.py
108121
groundlight_openapi_client/model/patched_detector_request.py
122+
groundlight_openapi_client/model/payload_template.py
123+
groundlight_openapi_client/model/payload_template_request.py
109124
groundlight_openapi_client/model/result_type_enum.py
110125
groundlight_openapi_client/model/roi.py
111126
groundlight_openapi_client/model/roi_request.py
@@ -114,6 +129,7 @@ groundlight_openapi_client/model/rule_request.py
114129
groundlight_openapi_client/model/snooze_time_unit_enum.py
115130
groundlight_openapi_client/model/source_enum.py
116131
groundlight_openapi_client/model/status_enum.py
132+
groundlight_openapi_client/model/text_mode_configuration.py
117133
groundlight_openapi_client/model/text_recognition_result.py
118134
groundlight_openapi_client/model/verb_enum.py
119135
groundlight_openapi_client/model/webhook_action.py

generated/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ rule_request = RuleRequest(
9494
WebhookActionRequest(
9595
url="url_example",
9696
include_image=True,
97+
payload_template=None,
9798
),
9899
],
99100
) # RuleRequest |
@@ -122,6 +123,8 @@ Class | Method | HTTP request | Description
122123
*DetectorsApi* | [**create_detector**](docs/DetectorsApi.md#create_detector) | **POST** /v1/detectors |
123124
*DetectorsApi* | [**delete_detector**](docs/DetectorsApi.md#delete_detector) | **DELETE** /v1/detectors/{id} |
124125
*DetectorsApi* | [**get_detector**](docs/DetectorsApi.md#get_detector) | **GET** /v1/detectors/{id} |
126+
*DetectorsApi* | [**get_detector_evaluation**](docs/DetectorsApi.md#get_detector_evaluation) | **GET** /v1/detectors/{id}/evaluation |
127+
*DetectorsApi* | [**get_detector_metrics**](docs/DetectorsApi.md#get_detector_metrics) | **GET** /v1/detectors/{detector_id}/metrics |
125128
*DetectorsApi* | [**list_detectors**](docs/DetectorsApi.md#list_detectors) | **GET** /v1/detectors |
126129
*DetectorsApi* | [**update_detector**](docs/DetectorsApi.md#update_detector) | **PATCH** /v1/detectors/{id} |
127130
*EdgeApi* | [**get_model_urls**](docs/EdgeApi.md#get_model_urls) | **GET** /v1/edge/fetch-model-urls/{detector_id}/ |
@@ -160,6 +163,11 @@ Class | Method | HTTP request | Description
160163
- [ImageQuery](docs/ImageQuery.md)
161164
- [ImageQueryTypeEnum](docs/ImageQueryTypeEnum.md)
162165
- [InlineResponse200](docs/InlineResponse200.md)
166+
- [InlineResponse2001](docs/InlineResponse2001.md)
167+
- [InlineResponse2001EvaluationResults](docs/InlineResponse2001EvaluationResults.md)
168+
- [InlineResponse2002](docs/InlineResponse2002.md)
169+
- [InlineResponse200Summary](docs/InlineResponse200Summary.md)
170+
- [InlineResponse200SummaryClassCounts](docs/InlineResponse200SummaryClassCounts.md)
163171
- [LabelValue](docs/LabelValue.md)
164172
- [LabelValueRequest](docs/LabelValueRequest.md)
165173
- [ModeEnum](docs/ModeEnum.md)
@@ -171,6 +179,8 @@ Class | Method | HTTP request | Description
171179
- [PaginatedImageQueryList](docs/PaginatedImageQueryList.md)
172180
- [PaginatedRuleList](docs/PaginatedRuleList.md)
173181
- [PatchedDetectorRequest](docs/PatchedDetectorRequest.md)
182+
- [PayloadTemplate](docs/PayloadTemplate.md)
183+
- [PayloadTemplateRequest](docs/PayloadTemplateRequest.md)
174184
- [ROI](docs/ROI.md)
175185
- [ROIRequest](docs/ROIRequest.md)
176186
- [ResultTypeEnum](docs/ResultTypeEnum.md)
@@ -179,6 +189,7 @@ Class | Method | HTTP request | Description
179189
- [SnoozeTimeUnitEnum](docs/SnoozeTimeUnitEnum.md)
180190
- [SourceEnum](docs/SourceEnum.md)
181191
- [StatusEnum](docs/StatusEnum.md)
192+
- [TextModeConfiguration](docs/TextModeConfiguration.md)
182193
- [TextRecognitionResult](docs/TextRecognitionResult.md)
183194
- [VerbEnum](docs/VerbEnum.md)
184195
- [WebhookAction](docs/WebhookAction.md)

generated/docs/ActionsApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ with groundlight_openapi_client.ApiClient(configuration) as api_client:
6969
WebhookActionRequest(
7070
url="url_example",
7171
include_image=True,
72+
payload_template=None,
7273
),
7374
],
7475
) # RuleRequest |

generated/docs/DetectorsApi.md

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Method | HTTP request | Description
77
[**create_detector**](DetectorsApi.md#create_detector) | **POST** /v1/detectors |
88
[**delete_detector**](DetectorsApi.md#delete_detector) | **DELETE** /v1/detectors/{id} |
99
[**get_detector**](DetectorsApi.md#get_detector) | **GET** /v1/detectors/{id} |
10+
[**get_detector_evaluation**](DetectorsApi.md#get_detector_evaluation) | **GET** /v1/detectors/{id}/evaluation |
11+
[**get_detector_metrics**](DetectorsApi.md#get_detector_metrics) | **GET** /v1/detectors/{detector_id}/metrics |
1012
[**list_detectors**](DetectorsApi.md#list_detectors) | **GET** /v1/detectors |
1113
[**update_detector**](DetectorsApi.md#update_detector) | **PATCH** /v1/detectors/{id} |
1214

@@ -243,6 +245,160 @@ Name | Type | Description | Notes
243245
- **Accept**: application/json
244246

245247

248+
### HTTP response details
249+
250+
| Status code | Description | Response headers |
251+
|-------------|-------------|------------------|
252+
**200** | | - |
253+
254+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
255+
256+
# **get_detector_evaluation**
257+
> InlineResponse2001 get_detector_evaluation(id)
258+
259+
260+
261+
Get Detector evaluation results. The result is null if there isn't enough ground truth data to evaluate the detector. Returns the time of the evaulation, total ground truth labels, the ml based kfold accuracies, and the system accuracies at different confidence thresholds
262+
263+
### Example
264+
265+
* Api Key Authentication (ApiToken):
266+
267+
```python
268+
import time
269+
import groundlight_openapi_client
270+
from groundlight_openapi_client.api import detectors_api
271+
from groundlight_openapi_client.model.inline_response2001 import InlineResponse2001
272+
from pprint import pprint
273+
# Defining the host is optional and defaults to https://api.groundlight.ai/device-api
274+
# See configuration.py for a list of all supported configuration parameters.
275+
configuration = groundlight_openapi_client.Configuration(
276+
host = "https://api.groundlight.ai/device-api"
277+
)
278+
279+
# The client must configure the authentication and authorization parameters
280+
# in accordance with the API server security policy.
281+
# Examples for each auth method are provided below, use the example that
282+
# satisfies your auth use case.
283+
284+
# Configure API key authorization: ApiToken
285+
configuration.api_key['ApiToken'] = 'YOUR_API_KEY'
286+
287+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
288+
# configuration.api_key_prefix['ApiToken'] = 'Bearer'
289+
290+
# Enter a context with an instance of the API client
291+
with groundlight_openapi_client.ApiClient(configuration) as api_client:
292+
# Create an instance of the API class
293+
api_instance = detectors_api.DetectorsApi(api_client)
294+
id = "id_example" # str |
295+
296+
# example passing only required values which don't have defaults set
297+
try:
298+
api_response = api_instance.get_detector_evaluation(id)
299+
pprint(api_response)
300+
except groundlight_openapi_client.ApiException as e:
301+
print("Exception when calling DetectorsApi->get_detector_evaluation: %s\n" % e)
302+
```
303+
304+
305+
### Parameters
306+
307+
Name | Type | Description | Notes
308+
------------- | ------------- | ------------- | -------------
309+
**id** | **str**| |
310+
311+
### Return type
312+
313+
[**InlineResponse2001**](InlineResponse2001.md)
314+
315+
### Authorization
316+
317+
[ApiToken](../README.md#ApiToken)
318+
319+
### HTTP request headers
320+
321+
- **Content-Type**: Not defined
322+
- **Accept**: application/json
323+
324+
325+
### HTTP response details
326+
327+
| Status code | Description | Response headers |
328+
|-------------|-------------|------------------|
329+
**200** | | - |
330+
331+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
332+
333+
# **get_detector_metrics**
334+
> InlineResponse200 get_detector_metrics(detector_id)
335+
336+
337+
338+
Get Detector metrics, primarily the counts of different types of labels
339+
340+
### Example
341+
342+
* Api Key Authentication (ApiToken):
343+
344+
```python
345+
import time
346+
import groundlight_openapi_client
347+
from groundlight_openapi_client.api import detectors_api
348+
from groundlight_openapi_client.model.inline_response200 import InlineResponse200
349+
from pprint import pprint
350+
# Defining the host is optional and defaults to https://api.groundlight.ai/device-api
351+
# See configuration.py for a list of all supported configuration parameters.
352+
configuration = groundlight_openapi_client.Configuration(
353+
host = "https://api.groundlight.ai/device-api"
354+
)
355+
356+
# The client must configure the authentication and authorization parameters
357+
# in accordance with the API server security policy.
358+
# Examples for each auth method are provided below, use the example that
359+
# satisfies your auth use case.
360+
361+
# Configure API key authorization: ApiToken
362+
configuration.api_key['ApiToken'] = 'YOUR_API_KEY'
363+
364+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
365+
# configuration.api_key_prefix['ApiToken'] = 'Bearer'
366+
367+
# Enter a context with an instance of the API client
368+
with groundlight_openapi_client.ApiClient(configuration) as api_client:
369+
# Create an instance of the API class
370+
api_instance = detectors_api.DetectorsApi(api_client)
371+
detector_id = "detector_id_example" # str |
372+
373+
# example passing only required values which don't have defaults set
374+
try:
375+
api_response = api_instance.get_detector_metrics(detector_id)
376+
pprint(api_response)
377+
except groundlight_openapi_client.ApiException as e:
378+
print("Exception when calling DetectorsApi->get_detector_metrics: %s\n" % e)
379+
```
380+
381+
382+
### Parameters
383+
384+
Name | Type | Description | Notes
385+
------------- | ------------- | ------------- | -------------
386+
**detector_id** | **str**| |
387+
388+
### Return type
389+
390+
[**InlineResponse200**](InlineResponse200.md)
391+
392+
### Authorization
393+
394+
[ApiToken](../README.md#ApiToken)
395+
396+
### HTTP request headers
397+
398+
- **Content-Type**: Not defined
399+
- **Accept**: application/json
400+
401+
246402
### HTTP response details
247403

248404
| Status code | Description | Response headers |

generated/docs/InlineResponse200.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**username** | **str** | The user's username | [optional]
7+
**summary** | [**InlineResponse200Summary**](InlineResponse200Summary.md) | | [optional]
88
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
99

1010
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# InlineResponse2001
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**evaluation_results** | [**InlineResponse2001EvaluationResults**](InlineResponse2001EvaluationResults.md) | | [optional]
8+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# InlineResponse2001EvaluationResults
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**eval_timestamp** | **datetime** | | [optional]
8+
**total_ground_truth_examples** | **int, none_type** | | [optional]
9+
**kfold_pooled__balanced_accuracy** | **float** | | [optional]
10+
**kfold_pooled__positive_accuracy** | **float** | | [optional]
11+
**kfold_pooled__negative_accuracy** | **float** | | [optional]
12+
**balanced_system_accuracies** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
13+
**positive_system_accuracies** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
14+
**negative_system_accuracies** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
15+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
16+
17+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18+
19+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# InlineResponse2002
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**username** | **str** | The user's username | [optional]
8+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# InlineResponse200Summary
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**num_ground_truth** | **int** | | [optional]
8+
**num_current_source_human** | **int** | | [optional]
9+
**class_counts** | [**InlineResponse200SummaryClassCounts**](InlineResponse200SummaryClassCounts.md) | | [optional]
10+
**unconfident_counts** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
11+
**total_iqs** | **int** | | [optional]
12+
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

0 commit comments

Comments
 (0)