- 28 Nov 2024
- 2 Minutes to read
- Print
- DarkLight
Applications - Types
- Updated on 28 Nov 2024
- 2 Minutes to read
- Print
- DarkLight
The Application Events endpoint returns records of changes that have occurred related to the given application.
Application Type Object
Field | Example | Definition |
---|---|---|
application_type | network_camera | Type identifier string |
name | 'Camera Capture' | Descriptive name |
description | 'Capture media from network cameras and associate with the camera subject. Deprecated. Please create Camera Capture V2 applications' | Application description |
production | True or False | The flag ‘production‘ shows if the application type is available in production. |
output_only | True or False | Some applications do not have input subjects; this flag shows if the application type can have input subjects. |
deprecated | True or False | The field 'deprecated' is associated with 'production'. When 'deprecated' is set to True, 'production' must be False. |
feedback | True or False | allows the user to check if they can provide feedback for the specified application. |
default_detection_threshold | 0.0 | initial value, which is set to the detection threshold which the user does not set |
cogniac_model | True or False | This field (if it is True) shows if the user can train models. |
max_output_subjects | 30 | represents the maximum number of output subjects for a specified app. |
app_data_types | [] | lists all the data types that can be submitted as labels. |
support_detection_threshold | True or False | Shows if the application supports detection threshold. |
valid_consensus_types | [] | This field shows the supported consensus types. |
tenant_ids | [] | If this is present, then the app types are available only to the listed tenants. |
default_release_metrics | None | Initial value that is not set by the users for the release metrics. this is the default metrics (evaluation metrics) the app has assigned |
valid_release_metrics | [] | all the release metrics also called 'evaluation metrics’ supported by an app. |
input_focus_app_data_types | [u'box_set', u'segment_list'] | Shows what application data type can be converted to focus by the current application. |
execution_targets | [u'CloudCore'] | Shows where this Model can be applied. |
The application type endpoint:
GET /1/applications/all/types
Host: https://api.cogniac.io
Example: Retrieve Application Events
import requests
import json
url_prefix = 'https://api.cogniac.io'
api_version = "1"
token = '' # add your token here
headers = {'Authorization': f'Bearer {token}'}
url = f'{url_prefix}/{api_version}/applications/all/types'
response = requests.get(url, headers=headers)
if response.status_code == 200:
formatted_json = json.dumps(response.json(), indent=2)
print(formatted_json)
else:
print(f"Error: {response.status_code}")
print(response.content)