Monitors¶
23 operations in the Adverity Connect API. Replace {{INSTANCE}} and {{KEY}} in the examples with your instance and API key. How authentication works.
List custom monitors¶
GET/api/v1/monitors/
API key permissionMonitor: Read-onlymonitor:read
Returns the custom monitors in the API key's workspace family tree.
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.name__icontainsstringseveritystringworkspace_idarray of string · uuidpageintegerpage_sizeinteger
Responses
200OKapplication/json
Response schema
object PagedMonitorSummarySchema
itemsarray of objectrequiredItems · MonitorSummarySchema
idstring · uuidrequirednamestringrequiredseveritystringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
countintegerrequired
Create a custom monitor¶
POST/api/v1/monitors/
API key permissionMonitor: Writemonitor:write
Creates the monitor in workspace_id, which must be the API key's workspace or one below it. A datastream id the key cannot see, or one outside the monitor's workspace family, fails the request with 400 and nothing is created. A name already in use returns 409.
Request bodyrequired
application/json
Body schema
object MonitorCreateSchema
namestringrequiredworkspace_idstring · uuidrequiredseveritystringrequireddatastream_idsarray of string · uuidhas_target_columnsbooleanblocksarray of objectrequiredItems · BlocksSchema
keystring · uuidrequiredconditionone ofrequiredAttributes
OuterLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
OuterLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
representationstringnullableAttributes
RuleRepresentationType
null
Responses
201Createdapplication/json
Response schema
object MonitorDetailSchema
idstring · uuidrequirednamestringrequiredseveritystringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
datastream_idsarray of string · uuidrequiredhas_target_columnsbooleanrequiredblocksarray of objectrequiredItems · BlocksSchema
keystring · uuidrequiredconditionone ofrequiredAttributes
OuterLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
OuterLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
representationstringnullableAttributes
RuleRepresentationType
null
Delete custom monitors¶
DELETE/api/v1/monitors/
API key permissionMonitor: Writemonitor:write
Deletes the monitors listed in the body. The request is all-or-nothing: if one id is unknown or not visible to the API key, it fails with 400 and nothing is deleted.
Request bodyrequired
application/json
Body schema
array of string · uuid UUIDListSchema
Responses
204No Content
List columns common to the given datastreams¶
GET/api/v1/monitors/columns/
API key permissionMonitor: Read-onlymonitor:read
Returns the name and effective type of every column present in all the given datastreams that the API key can see. The effective type of a column mapped to a schema column is the schema column's type. A rule's column_type must be the effective type returned here, because validation checks the operator only against the declared column_type. A datastream id that is unknown or not visible to the API key has no columns, so the list is empty.
Query parameters
datastream_idarray of string · uuidrequired
Responses
200OKapplication/json
Response schema
array of object
namestringrequiredtypestringrequiredtype_idintegerrequired
Bulk assign monitors to datastreams¶
POST/api/v1/monitors/datastreams/
API key permissionMonitor: Writemonitor:write
Assigns the monitors in the body to the datastreams the filters select, where the datastream is in the monitor's workspace family. Without a datastream filter, every datastream the API key can see is selected. The response lists the datastreams that were assigned and those that were skipped.
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.
Request bodyrequired
application/json
Body schema
array of string · uuid UUIDListSchema
Responses
200OKapplication/json
Response schema
object BulkMonitorAssignmentResponseSchema
assigned_datastream_idsarray of string · uuidrequiredskipped_datastream_idsarray of string · uuidrequired
Bulk unassign monitors from datastreams¶
DELETE/api/v1/monitors/datastreams/
API key permissionMonitor: Writemonitor:write
Removes the given monitors from the datastreams the filters select.
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.
Request bodyrequired
application/json
Body schema
array of string · uuid UUIDListSchema
Responses
200OKapplication/json
Response schema
array of string · uuid UUIDListSchema
Discover monitors available for bulk datastream assignment¶
/api/v1/monitors/datastreams/
API key permissionMonitor: Read-onlymonitor:read
Without filters, returns all accessible monitors. With datastream filters (e.g. ?datastream_id=), returns only monitors whose workspace family covers all matched datastreams.
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.pageintegerpage_sizeinteger
Responses
200OKapplication/json
Response schema
object PagedMonitorSummarySchema
itemsarray of objectrequiredItems · MonitorSummarySchema
idstring · uuidrequirednamestringrequiredseveritystringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
countintegerrequired
List rule operators per column type¶
GET/api/v1/monitors/operators/
API key permissionMonitor: Read-onlymonitor:read
Returns the operators a rule may use for each column type. A rule's operation must be one of the operators listed for its column_type.
Responses
200OKapplication/json
Response schema
array of object
column_typeintegerrequiredcolumn_type_namestringrequiredoperatorsarray of objectrequiredItems · OperatorSchema
valueintegerrequiredlabelstringrequired
List schema columns mapped by all the given datastreams¶
GET/api/v1/monitors/target-columns/
API key permissionMonitor: Read-onlymonitor:read
Returns the schema columns that every given datastream, as visible to the API key, maps. A rule's column_type must be the effective type returned here, because validation checks the operator only against the declared column_type. A datastream id that is unknown or not visible to the API key maps no columns, so the list is empty.
Query parameters
datastream_idarray of string · uuidrequired
Responses
200OKapplication/json
Response schema
array of object
idstring · uuidrequirednamestringrequiredtypestringrequiredtype_idintegerrequiredusagestringrequired
List the universal monitors of a datastream¶
GET/api/v1/monitors/universal/datastreams/{datastream_id}/
API key permissionMonitor: Read-onlymonitor:read
Returns the four universal monitors of the datastream in a fixed order: row-duplicates, volumes, timeliness, schema_consistency. Monitors missing for the datastream are created from the workspace defaults first. Responds with 404 when the datastream is unknown, not visible to the API key, or pending deletion.
Path parameters
datastream_idstring · uuidrequired
Responses
200OKapplication/json
Response schema
array of one of
RowDuplicatesMonitorSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequiredAttributes · RowDuplicatesConfig
modestringcolumnsarray of stringnullableAttributes
array of string
null
VolumesMonitorSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequired
TimelinessMonitorSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequiredAttributes · TimelinessConfig
expected_deliveryobjectnullableAttributes
ExpectedDeliverySchema
timestring · timerequiredExpected delivery time of the day in UTC
offsetintegerrequiredOffset in days
null
SchemaConsistencyMonitorSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequiredAttributes · SchemaConsistencyConfig
auto_restore_enabledbooleancolumn_order_check_enabledboolean
Update one universal monitor of a datastream¶
PATCH/api/v1/monitors/universal/datastreams/{datastream_id}/
API key permissionMonitor: Writemonitor:write
The body's type selects the monitor. Omitted fields stay unchanged and an explicit null returns 422. A given type_config replaces the stored configuration as a whole. A timeliness type_config requires expected_delivery, and the severity of a timeliness monitor can only be warning. Monitors missing for the datastream are created first. Responds with 404 when the datastream is unknown, not visible to the API key, or pending deletion.
Path parameters
datastream_idstring · uuidrequired
Request bodyrequired
application/json
Body schema
one of UniversalMonitorPatchSchema
RowDuplicatesMonitorPatch
enabledbooleanseveritystringtypestringrequiredtype_configobjectAttributes · RowDuplicatesConfigInput
modestringcolumnsarray of stringnullableAttributes
array of string
null
VolumesMonitorPatch
enabledbooleanseveritystringtypestringrequired
TimelinessMonitorPatch
enabledbooleanseveritystringtypestringrequiredtype_configobjectAttributes · TimelinessConfigInput
expected_deliveryobjectrequiredAttributes · ExpectedDeliveryInput
timestring · timerequiredExpected delivery time of the day in UTC
offsetintegerrequiredOffset in days
SchemaConsistencyMonitorPatch
enabledbooleanseveritystringtypestringrequiredtype_configobjectAttributes · SchemaConsistencyConfigInput
auto_restore_enabledbooleanrequiredcolumn_order_check_enabledbooleanrequired
Responses
200OKapplication/json
Response schema
one of
RowDuplicatesMonitorSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequiredAttributes · RowDuplicatesConfig
modestringcolumnsarray of stringnullableAttributes
array of string
null
VolumesMonitorSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequired
TimelinessMonitorSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequiredAttributes · TimelinessConfig
expected_deliveryobjectnullableAttributes
ExpectedDeliverySchema
timestring · timerequiredExpected delivery time of the day in UTC
offsetintegerrequiredOffset in days
null
SchemaConsistencyMonitorSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequiredAttributes · SchemaConsistencyConfig
auto_restore_enabledbooleancolumn_order_check_enabledboolean
Get the baseline schema of a datastream¶
GET/api/v1/monitors/universal/datastreams/{datastream_id}/baseline-schema/
API key permissionMonitor: Read-onlymonitor:read
Responds with 404 when the datastream has no baseline schema, is unknown, not visible to the API key, or pending deletion. extract_id is null when the baseline was saved without an extract (through the API or the web app), when that extract was deleted, or when it has no uuid.
Path parameters
datastream_idstring · uuidrequired
Responses
200OKapplication/json
Response schema
object BaselineSchemaSchema
schema_columnsarray of stringrequiredextract_idstring · uuidrequirednullableThe uuid of the extract the baseline was taken from. It is null when the baseline was saved without an extract (through the API or the web app), when that extract was deleted, or when it has no uuid.
Attributes
string · uuid
null
updatedstring · date-timerequiredupdated_bystringrequirednullableAttributes
string
null
Create or replace the baseline schema of a datastream¶
PUT/api/v1/monitors/universal/datastreams/{datastream_id}/baseline-schema/
API key permissionMonitor: Writemonitor:write
The body is the list of column names, at most 5000; a longer list returns 422. A baseline saved through the API is not linked to an extract, so extract_id is null. Responds with 404 when the datastream is unknown, not visible to the API key, or pending deletion.
Path parameters
datastream_idstring · uuidrequired
Request bodyrequired
application/json
Body schema
array of string BaselineColumnsSchema
Responses
200OKapplication/json
Response schema
object BaselineSchemaSchema
schema_columnsarray of stringrequiredextract_idstring · uuidrequirednullableThe uuid of the extract the baseline was taken from. It is null when the baseline was saved without an extract (through the API or the web app), when that extract was deleted, or when it has no uuid.
Attributes
string · uuid
null
updatedstring · date-timerequiredupdated_bystringrequirednullableAttributes
string
null
Preview the difference between the baseline schema and a list of columns¶
POST/api/v1/monitors/universal/datastreams/{datastream_id}/baseline-schema/preview/
API key permissionMonitor: Read-onlymonitor:read
Nothing is saved. The body holds at most 5000 column names, as many as a baseline schema may hold; a longer list returns 422. Responds with 404 when the datastream has no baseline schema, is unknown, not visible to the API key, or pending deletion.
Path parameters
datastream_idstring · uuidrequired
Request bodyrequired
application/json
Body schema
array of string BaselineColumnsPreviewSchema
Responses
200OKapplication/json
Response schema
array of object
opstringrequiredvaluestringrequired
List the universal monitors of one type across workspaces¶
GET/api/v1/monitors/universal/{monitor_type}/
API key permissionMonitor: Read-onlymonitor:read
Returns the monitors of the given type for the datastreams the filters select, in a stable order by datastream creation. Datastreams pending deletion are left out. monitor_enabled and severity filter the monitors; enabled and the other filters select datastreams. A datastream without a row of this type is not listed: reading creates nothing.
Path parameters
monitor_typestringrequired
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.monitor_enabledbooleanseveritystringpageintegerpage_sizeinteger
Responses
200OKapplication/json
Response schema
object PagedUniversalMonitorListItemSchema
itemsarray of one ofrequiredItems
RowDuplicatesMonitorListItemSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequiredAttributes · RowDuplicatesConfig
modestringcolumnsarray of stringnullableAttributes
array of string
null
datastreamobjectrequiredAttributes · DatastreamSummarySchema
idstring · uuidrequirednamestringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
VolumesMonitorListItemSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequireddatastreamobjectrequiredAttributes · DatastreamSummarySchema
idstring · uuidrequirednamestringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
TimelinessMonitorListItemSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequiredAttributes · TimelinessConfig
expected_deliveryobjectnullableAttributes
ExpectedDeliverySchema
timestring · timerequiredExpected delivery time of the day in UTC
offsetintegerrequiredOffset in days
null
datastreamobjectrequiredAttributes · DatastreamSummarySchema
idstring · uuidrequirednamestringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
SchemaConsistencyMonitorListItemSchema
enabledbooleanrequiredseveritystringrequiredtypestringrequiredtype_configobjectrequiredAttributes · SchemaConsistencyConfig
auto_restore_enabledbooleancolumn_order_check_enabledboolean
datastreamobjectrequiredAttributes · DatastreamSummarySchema
idstring · uuidrequirednamestringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
countintegerrequired
Bulk update the universal monitors of one type¶
PATCH/api/v1/monitors/universal/{monitor_type}/
API key permissionMonitor: Writemonitor:write
Sets enabled and/or severity on the monitors that GET on the same path returns for the same query. At least one datastream filter such as workspace_id is required. The body accepts enabled and severity only, stricter than the web app: any type_config returns 422. A timeliness monitor's severity is always warning. Responds with the datastreams whose monitor changed, so a repeat changes nothing and returns an empty list.
Path parameters
monitor_typestringrequired
Query parameters
workspace_scopestringscope_from_workspace_idstring · uuidRequired only for
workspace_scopewhen multiple roots exist.datastream_idarray of string · uuidworkspace_idarray of string · uuidenabledbooleanactive_pulling_modestringscheduled_deletionbooleantagarray of stringTag name, ignoring case, matched in every workspace the key can see: the same name in two workspaces is two tags, and this matches both. Combine with
workspace_idto match the tag of one workspace. Repeatable.tag_matchstringany: carries at least one of the given tags.all: carries every one.monitor_enabledbooleanseveritystring
Request bodyrequired
application/json
Body schema
object UniversalMonitorBulkPatchSchema
enabledbooleanseveritystring
Responses
200OKapplication/json
Response schema
object BulkActionResponseSchema
affectedobjectrequiredAttributes · AffectedDatastreamsSchema
datastream_idsarray of string · uuidrequired
Get a custom monitor¶
GET/api/v1/monitors/{monitor_id}/
API key permissionMonitor: Read-onlymonitor:read
Returns the monitor with its rule blocks. datastream_ids lists only the assigned datastreams the API key can see. An unknown monitor, or one the API key cannot see, returns 404.
Path parameters
monitor_idstring · uuidrequired
Responses
200OKapplication/json
Response schema
object MonitorDetailSchema
idstring · uuidrequirednamestringrequiredseveritystringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
datastream_idsarray of string · uuidrequiredhas_target_columnsbooleanrequiredblocksarray of objectrequiredItems · BlocksSchema
keystring · uuidrequiredconditionone ofrequiredAttributes
OuterLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
OuterLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
representationstringnullableAttributes
RuleRepresentationType
null
Update a custom monitor¶
PATCH/api/v1/monitors/{monitor_id}/
API key permissionMonitor: Writemonitor:write
Changes only the fields in the body: an omitted field stays unchanged and an explicit null returns 422. datastream_ids replaces the assignments the API key can see; assignments it cannot see stay. Changing workspace_id without datastream_ids keeps the existing assignments, and returns 400 when one the API key can see lies outside the new workspace's family. A datastream id the key cannot see, or one outside the monitor's workspace family, fails the request with 400 and nothing changes. A name already in use returns 409. An unknown monitor, or one the API key cannot see, returns 404.
Path parameters
monitor_idstring · uuidrequired
Request bodyrequired
application/json
Body schema
object MonitorPatchSchema
namestringworkspace_idstring · uuidseveritystringdatastream_idsarray of string · uuidhas_target_columnsbooleanblocksarray of objectItems · BlocksSchema
keystring · uuidrequiredconditionone ofrequiredAttributes
OuterLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
OuterLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
representationstringnullableAttributes
RuleRepresentationType
null
Responses
200OKapplication/json
Response schema
object MonitorDetailSchema
idstring · uuidrequirednamestringrequiredseveritystringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
datastream_idsarray of string · uuidrequiredhas_target_columnsbooleanrequiredblocksarray of objectrequiredItems · BlocksSchema
keystring · uuidrequiredconditionone ofrequiredAttributes
OuterLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
OuterLogicalDisjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · InnerLogicalConjunctionSchema
keystring · uuidrequiredoperationstringrequiredconditionsarray of objectrequiredItems · ConditionalExpressionSchema
keystring · uuidrequiredcolumnstringrequiredcolumnTypeintegerrequiredoperationintegerrequiredvalueone ofrequiredAttributes
integer
number
string
string · date
string · date-time
caseSensitiveboolean
representationstringnullableAttributes
RuleRepresentationType
null
Delete a custom monitor¶
DELETE/api/v1/monitors/{monitor_id}/
API key permissionMonitor: Writemonitor:write
Deletes the monitor. Returns 404 when it is unknown or not visible to the API key.
Path parameters
monitor_idstring · uuidrequired
Responses
204No Content
List datastreams assigned to a monitor¶
GET/api/v1/monitors/{monitor_id}/datastreams/
API key permissionMonitor: Read-onlymonitor:read
Returns the datastreams assigned to the monitor that the API key can see. An unknown monitor, or one the API key cannot see, returns 404.
Path parameters
monitor_idstring · uuidrequired
Query parameters
pageintegerpage_sizeinteger
Responses
200OKapplication/json
Response schema
object PagedDatastreamSummarySchema
itemsarray of objectrequiredItems · DatastreamSummarySchema
idstring · uuidrequirednamestringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
countintegerrequired
Extend current list of assignments with the given datastreams¶
POST/api/v1/monitors/{monitor_id}/datastreams/
API key permissionMonitor: Writemonitor:write
Adds the datastreams to the monitor's assignments. A datastream id the key cannot see, or one outside the monitor's workspace family, fails the request with 400 and nothing is assigned. An unknown monitor, or one the API key cannot see, returns 404.
Path parameters
monitor_idstring · uuidrequired
Request bodyrequired
application/json
Body schema
array of string · uuid UUIDListSchema
Responses
200OKapplication/json
Response schema
array of string · uuid UUIDListSchema
Unassign datastreams from a monitor¶
DELETE/api/v1/monitors/{monitor_id}/datastreams/
API key permissionMonitor: Writemonitor:write
Removes the datastreams from the monitor's assignments. A datastream id the key cannot see fails the request with 400 and nothing is removed. An unknown monitor, or one the API key cannot see, returns 404.
Path parameters
monitor_idstring · uuidrequired
Request bodyrequired
application/json
Body schema
array of string · uuid UUIDListSchema
Responses
200OKapplication/json
Response schema
array of string · uuid UUIDListSchema
Discover datastreams assignable to a monitor¶
/api/v1/monitors/{monitor_id}/datastreams/
API key permissionMonitor: Read-onlymonitor:read
Returns the datastreams in the monitor's workspace family that the API key can see and that are not assigned yet. An unknown monitor, or one the API key cannot see, returns 404.
Path parameters
monitor_idstring · uuidrequired
Query parameters
pageintegerpage_sizeinteger
Responses
200OKapplication/json
Response schema
object PagedDatastreamSummarySchema
itemsarray of objectrequiredItems · DatastreamSummarySchema
idstring · uuidrequirednamestringrequiredworkspaceobjectrequiredAttributes · WorkspaceMinimalSchema
idstring · uuidrequirednamestringrequired
countintegerrequired