Event service#
An Event is an annotated moment or time range. The Event Service is responsible for creating and retrieving events for a particular data source.
OpenAPI file: EventService.json
Endpoints#
Create event#
POST /event/v1/events
Creates an event.
Body
assetRidsarray of string (RID)Must contain at least one asset rid.
originsarray ofEventOriginIf empty, will default to set<EventOrigin.api>.
Set
typeto"workbook".workbookWorkbookEventOriginThis event was created in this workbook
Fields of
WorkbookEventOriginridstring (RID) required
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Set
typeto"timeSeriesChannel".timeSeriesChannelTimeSeriesChannelAssociation
Fields of
TimeSeriesChannelAssociationvariableNamestring required
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Set
typeto"template".templateTemplateEventOriginThis event was created in this template
Fields of
TemplateEventOriginridstring (RID) required
Set
typeto"api".apiApiEventOriginThis event was created programmatically via the API
Set
typeto"dataReview".dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
Fields of
DataReviewEventOrigindataReviewRidstring (RID) required
checkMetadataCheckOriginMetadatarequiredMetadata about the check that created this event.
Fields of
CheckOriginMetadatacheckEvaluationRidstring (RID) required
checkRidstring (RID) required
checkLineageRidstring (RID) required
implementationIndexinteger
Set
typeto"procedure".procedureProcedureEventOriginThis event was created automatically from a procedure execution.
Fields of
ProcedureEventOriginprocedureExecutionRidstring (RID) required
procedureRidstring (RID) required
stepIdstring required
Set
typeto"streamingChecklist".streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
Fields of
StreamingChecklistEventOriginchecklistRidstring (RID) required
checkMetadataStreamingCheckOriginMetadatarequiredMetadata about the check that created this event.
Fields of
StreamingCheckOriginMetadatacheckRidstring (RID) required
checkLineageRidstring (RID) required
implementationIndexinteger
timestampTimestamprequired
Fields of
Timestampsecondsinteger (int64) required
nanosinteger (int64) required
durationDurationrequired
Fields of
Durationsecondsinteger (int64) required
nanosinteger (int64) required
namestring required
descriptionstringIf not provided, will default to an empty string.
typeEventTyperequired
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
dispositionEventDisposition
Fields of
EventDispositionpriorityPriorityrequired
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionStaterequired
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID) required
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID) required
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID) required
assigneesarray of string (RID)
Response
uuidstring (UUID) deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID)
assetRidsarray of string (RID)A set of asset rids associated with the event.
originsarray ofEventOriginA set of origins associated with the event.
Set
typeto"workbook".workbookWorkbookEventOriginThis event was created in this workbook
Fields of
WorkbookEventOriginridstring (RID)
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Set
typeto"timeSeriesChannel".timeSeriesChannelTimeSeriesChannelAssociation
Fields of
TimeSeriesChannelAssociationvariableNamestring
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Set
typeto"template".templateTemplateEventOriginThis event was created in this template
Fields of
TemplateEventOriginridstring (RID)
Set
typeto"api".apiApiEventOriginThis event was created programmatically via the API
Set
typeto"dataReview".dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
Fields of
DataReviewEventOrigindataReviewRidstring (RID)
checkMetadataCheckOriginMetadataMetadata about the check that created this event.
Fields of
CheckOriginMetadatacheckEvaluationRidstring (RID)
checkRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
Set
typeto"procedure".procedureProcedureEventOriginThis event was created automatically from a procedure execution.
Fields of
ProcedureEventOriginprocedureExecutionRidstring (RID)
procedureRidstring (RID)
stepIdstring
Set
typeto"streamingChecklist".streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
Fields of
StreamingChecklistEventOriginchecklistRidstring (RID)
checkMetadataStreamingCheckOriginMetadataMetadata about the check that created this event.
Fields of
StreamingCheckOriginMetadatacheckRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
timestampTimestamp
Fields of
Timestampsecondsinteger (int64)
nanosinteger (int64)
durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
isArchivedboolean
createdBystring (RID)The user who created the event. This field may be missing for legacy events.
dispositionEventDisposition
Fields of
EventDispositionpriorityPriority
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionState
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID)
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID)
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID)
assigneesarray of string (RID)
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/events" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"timestamp": {
"seconds": 1,
"nanos": 1
},
"duration": {
"seconds": 1,
"nanos": 1
},
"name": "<name>",
"type": "INFO"
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/events",
headers={"Authorization": "Bearer <api key>"},
json={
"timestamp": {"seconds": 1, "nanos": 1},
"duration": {"seconds": 1, "nanos": 1},
"name": "<name>",
"type": "INFO",
},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/events",
headers={"Authorization": "Bearer <api key>"},
json={
"timestamp": {"seconds": 1, "nanos": 1},
"duration": {"seconds": 1, "nanos": 1},
"name": "<name>",
"type": "INFO",
},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/events",
headers={"Authorization": "Bearer <api key>"},
json={
"timestamp": {"seconds": 1, "nanos": 1},
"duration": {"seconds": 1, "nanos": 1},
"name": "<name>",
"type": "INFO",
},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"uuid": "<uuid>",
"rid": "<event rid>",
"assetRids": [
"<asset rid>"
],
"origins": [
{
"type": "workbook",
"workbook": {
"rid": "<notebook rid>",
"data": [
{
"type": "timeSeriesChannel",
"timeSeriesChannel": {
"variableName": "<variable name>",
"tags": {
"<key>": "<value>"
}
}
}
]
}
}
],
"timestamp": {
"seconds": 1,
"nanos": 1
},
"duration": {
"seconds": 1,
"nanos": 1
},
"name": "<name>",
"description": "<description>",
"type": "INFO",
"labels": [
"<label>"
],
"properties": {
"<key>": "<property value>"
},
"typedProperties": {
"<key>": {
"type": "stringValue",
"stringValue": "<property value>"
}
},
"isArchived": true,
"createdBy": "<user rid>",
"disposition": {
"priority": "P0",
"state": {
"type": "pendingReview",
"pendingReview": {
"openedBy": "<user rid>"
}
},
"assignees": [
"<user rid>"
]
}
}
Get events#
POST /event/v1/get-events
Deprecated: This endpoint is deprecated. Use the batchGetEvents endpoint instead.
Gets a set of events by UUIDs
Body
uuidsarray of string (UUID)
Response
The body is an array of Event.
Fields of Event
uuidstring (UUID) deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID)
assetRidsarray of string (RID)A set of asset rids associated with the event.
originsarray ofEventOriginA set of origins associated with the event.
Set
typeto"workbook".workbookWorkbookEventOriginThis event was created in this workbook
Fields of
WorkbookEventOriginridstring (RID)
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Set
typeto"timeSeriesChannel".timeSeriesChannelTimeSeriesChannelAssociation
Fields of
TimeSeriesChannelAssociationvariableNamestring
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Set
typeto"template".templateTemplateEventOriginThis event was created in this template
Fields of
TemplateEventOriginridstring (RID)
Set
typeto"api".apiApiEventOriginThis event was created programmatically via the API
Set
typeto"dataReview".dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
Fields of
DataReviewEventOrigindataReviewRidstring (RID)
checkMetadataCheckOriginMetadataMetadata about the check that created this event.
Fields of
CheckOriginMetadatacheckEvaluationRidstring (RID)
checkRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
Set
typeto"procedure".procedureProcedureEventOriginThis event was created automatically from a procedure execution.
Fields of
ProcedureEventOriginprocedureExecutionRidstring (RID)
procedureRidstring (RID)
stepIdstring
Set
typeto"streamingChecklist".streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
Fields of
StreamingChecklistEventOriginchecklistRidstring (RID)
checkMetadataStreamingCheckOriginMetadataMetadata about the check that created this event.
Fields of
StreamingCheckOriginMetadatacheckRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
timestampTimestamp
Fields of
Timestampsecondsinteger (int64)
nanosinteger (int64)
durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
isArchivedboolean
createdBystring (RID)The user who created the event. This field may be missing for legacy events.
dispositionEventDisposition
Fields of
EventDispositionpriorityPriority
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionState
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID)
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID)
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID)
assigneesarray of string (RID)
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/get-events" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"uuids": [
"<uuids>"
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/get-events",
headers={"Authorization": "Bearer <api key>"},
json={"uuids": ["<uuids>"]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/get-events",
headers={"Authorization": "Bearer <api key>"},
json={"uuids": ["<uuids>"]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/get-events",
headers={"Authorization": "Bearer <api key>"},
json={"uuids": ["<uuids>"]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
[
{
"uuid": "<uuid>",
"rid": "<event rid>",
"assetRids": [
"<asset rid>"
],
"origins": [
{
"type": "workbook",
"workbook": {
"rid": "<notebook rid>",
"data": [
{
"type": "timeSeriesChannel",
"timeSeriesChannel": {
"variableName": "<variable name>",
"tags": {
"<key>": "<value>"
}
}
}
]
}
}
],
"timestamp": {
"seconds": 1,
"nanos": 1
},
"duration": {
"seconds": 1,
"nanos": 1
},
"name": "<name>",
"description": "<description>",
"type": "INFO",
"labels": [
"<label>"
],
"properties": {
"<key>": "<property value>"
},
"typedProperties": {
"<key>": {
"type": "stringValue",
"stringValue": "<property value>"
}
},
"isArchived": true,
"createdBy": "<user rid>",
"disposition": {
"priority": "P0",
"state": {
"type": "pendingReview",
"pendingReview": {
"openedBy": "<user rid>"
}
},
"assignees": [
"<user rid>"
]
}
}
]
Batch get events#
POST /event/v1/events/batch-get
Gets a set of events by RID.
Body
The body is an array of string (RID).
Response
The body is an array of Event.
Fields of Event
uuidstring (UUID) deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID)
assetRidsarray of string (RID)A set of asset rids associated with the event.
originsarray ofEventOriginA set of origins associated with the event.
Set
typeto"workbook".workbookWorkbookEventOriginThis event was created in this workbook
Fields of
WorkbookEventOriginridstring (RID)
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Set
typeto"timeSeriesChannel".timeSeriesChannelTimeSeriesChannelAssociation
Fields of
TimeSeriesChannelAssociationvariableNamestring
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Set
typeto"template".templateTemplateEventOriginThis event was created in this template
Fields of
TemplateEventOriginridstring (RID)
Set
typeto"api".apiApiEventOriginThis event was created programmatically via the API
Set
typeto"dataReview".dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
Fields of
DataReviewEventOrigindataReviewRidstring (RID)
checkMetadataCheckOriginMetadataMetadata about the check that created this event.
Fields of
CheckOriginMetadatacheckEvaluationRidstring (RID)
checkRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
Set
typeto"procedure".procedureProcedureEventOriginThis event was created automatically from a procedure execution.
Fields of
ProcedureEventOriginprocedureExecutionRidstring (RID)
procedureRidstring (RID)
stepIdstring
Set
typeto"streamingChecklist".streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
Fields of
StreamingChecklistEventOriginchecklistRidstring (RID)
checkMetadataStreamingCheckOriginMetadataMetadata about the check that created this event.
Fields of
StreamingCheckOriginMetadatacheckRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
timestampTimestamp
Fields of
Timestampsecondsinteger (int64)
nanosinteger (int64)
durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
isArchivedboolean
createdBystring (RID)The user who created the event. This field may be missing for legacy events.
dispositionEventDisposition
Fields of
EventDispositionpriorityPriority
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionState
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID)
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID)
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID)
assigneesarray of string (RID)
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/events/batch-get" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '[
"<event rid>"
]'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/events/batch-get",
headers={"Authorization": "Bearer <api key>"},
json=["<event rid>"],
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/events/batch-get",
headers={"Authorization": "Bearer <api key>"},
json=["<event rid>"],
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/events/batch-get",
headers={"Authorization": "Bearer <api key>"},
json=["<event rid>"],
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
[
{
"uuid": "<uuid>",
"rid": "<event rid>",
"assetRids": [
"<asset rid>"
],
"origins": [
{
"type": "workbook",
"workbook": {
"rid": "<notebook rid>",
"data": [
{
"type": "timeSeriesChannel",
"timeSeriesChannel": {
"variableName": "<variable name>",
"tags": {
"<key>": "<value>"
}
}
}
]
}
}
],
"timestamp": {
"seconds": 1,
"nanos": 1
},
"duration": {
"seconds": 1,
"nanos": 1
},
"name": "<name>",
"description": "<description>",
"type": "INFO",
"labels": [
"<label>"
],
"properties": {
"<key>": "<property value>"
},
"typedProperties": {
"<key>": {
"type": "stringValue",
"stringValue": "<property value>"
}
},
"isArchived": true,
"createdBy": "<user rid>",
"disposition": {
"priority": "P0",
"state": {
"type": "pendingReview",
"pendingReview": {
"openedBy": "<user rid>"
}
},
"assignees": [
"<user rid>"
]
}
}
]
Batch filter events#
POST /event/v1/events/batch-filter-get
Gets a filtered set of events by RID and search filters.
Body
eventRidsarray of string (RID)
filterQuerySearchQueryrequired
Set
typeto"archived".archivedboolean
Set
typeto"searchText".searchTextstringSearch text to perform fuzzy searching against.
Set
typeto"exactMatch".exactMatchstringSearch text to perform exact matching against on the event name and description.
Set
typeto"after".afterTimestampFilters to events after this timestamp, exclusive. This includes events that start before, but end after this time.
Fields of
Timestampsecondsinteger (int64) required
nanosinteger (int64) required
Set
typeto"before".beforeTimestampFilters to events before this timestamp, exclusive. This includes events that start before, but end after this time.
Set
typeto"advancedTimeFilter".advancedTimeFilterEventTimeFilter
Fields of
EventTimeFiltertimestampTimestamprequired
timestampConditionEventTimeFilterConditionrequired
Values of
EventTimeFilterConditionSTART_TIME_BEFORE_INCLUSIVE
START_TIME_BEFORE_EXCLUSIVE
START_TIME_AFTER_INCLUSIVE
START_TIME_AFTER_EXCLUSIVE
END_TIME_BEFORE_INCLUSIVE
END_TIME_BEFORE_EXCLUSIVE
END_TIME_AFTER_INCLUSIVE
END_TIME_AFTER_EXCLUSIVE
Set
typeto"asset".assetstring (RID) deprecatedDeprecated: use assetRids
Set
typeto"assets".assetsAssetsFilter
Fields of
AssetsFilteroperatorSetOperatorrequired
Values of
SetOperatorAND
OR
assetsarray of string (RID)
Set
typeto"template".templatestring (RID)
Set
typeto"workbook".workbookstring (RID)
Set
typeto"dataReview".dataReviewstring (RID) deprecatedDeprecated: use dataReviews instead
Set
typeto"dataReviews".dataReviewsDataReviewsFilter
Fields of
DataReviewsFilterdataReviewsarray of string (RID)
Set
typeto"originType".originTypeSearchEventOriginTypedeprecatedDeprecated: use originTypes instead
Values of
SearchEventOriginTypeWORKBOOK
TEMPLATE
API
DATA_REVIEW
PROCEDURE
STREAMING_CHECKLIST
Set
typeto"originTypes".originTypesOriginTypesFilter
Fields of
OriginTypesFilteroperatorSetOperatorrequired
originTypesarray ofSearchEventOriginType
Set
typeto"dataReviewCheck".dataReviewCheckstring (RID) deprecatedDeprecated: use dataReviewChecks instead
Set
typeto"dataReviewChecks".dataReviewChecksDataReviewChecksFilter
Fields of
DataReviewChecksFilterdataReviewChecksarray of string (RID)
Set
typeto"dispositionStatus".dispositionStatusEventDispositionStatusdeprecatedDeprecated: use dispositionStatuses instead
Values of
EventDispositionStatusPENDING_REVIEW
CLOSED_IGNORED
CLOSED_REQUIRES_FURTHER_ACTION
NO_DISPOSITION
Set
typeto"dispositionStatuses".dispositionStatusesarray ofEventDispositionStatus
Set
typeto"priority".priorityPrioritydeprecatedDeprecated: use priorities instead
Values of
PriorityP0
P1
P2
P3
P4
Set
typeto"priorities".prioritiesarray ofPriority
Set
typeto"assignee".assigneestring (RID) deprecatedDeprecated: use assignees instead
Set
typeto"assignees".assigneesAssigneesFilter
Fields of
AssigneesFilteroperatorSetOperatorrequired
assigneesarray of string (RID)
Set
typeto"eventType".eventTypeEventTypedeprecatedDeprecated: use eventTypes instead
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
Set
typeto"eventTypes".eventTypesarray ofEventType
Set
typeto"createdBy".createdBystring (RID)
Set
typeto"createdByAnyOf".createdByAnyOfarray of string (RID)
Set
typeto"label".labelstring deprecatedDeprecated: use labels instead
Set
typeto"labels".labelsLabelsFilter
Fields of
LabelsFilteroperatorSetOperatorrequired
labelsarray of string
Set
typeto"property".propertyPropertydeprecatedDeprecated: use properties instead
Fields of
Propertynamestring required
valuestring required
Set
typeto"properties".propertiesPropertiesFilter
Fields of
PropertiesFilternamestring required
valuesarray of string
Set
typeto"and".andarray ofSearchQuery
Set
typeto"or".orarray ofSearchQuery
Set
typeto"not".notSearchQuery
Set
typeto"workspace".workspacestring (RID)
Set
typeto"procedure".procedurestring (RID)
Set
typeto"procedureExecution".procedureExecutionstring (RID)
Set
typeto"stepId".stepIdstring
Set
typeto"streamingChecklist".streamingCheckliststring (RID)Filters to events created from a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.
Set
typeto"streamingCheck".streamingCheckstring (RID)Filters to events created from the check of a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.
Set
typeto"numericProperty".numericPropertyNumericPropertyPredicateMatches events using a numeric property comparison.
Fields of
NumericPropertyPredicatenamestring required
valuenumber required
operatorPropertyComparisonOperatorrequired
Values of
PropertyComparisonOperatorEQ
NEQ
GT
GTE
LT
LTE
Set
typeto"numericPropertyRange".numericPropertyRangeNumericPropertyRangePredicateMatches events using an inclusive numeric property range.
Fields of
NumericPropertyRangePredicatenamestring required
minnumber
maxnumber
operatorNumericPropertyRangeOperatorrequired
Values of
NumericPropertyRangeOperatorBETWEEN
NOT_BETWEEN
Response
The body is an array of Event.
Fields of Event
uuidstring (UUID) deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID)
assetRidsarray of string (RID)A set of asset rids associated with the event.
originsarray ofEventOriginA set of origins associated with the event.
Set
typeto"workbook".workbookWorkbookEventOriginThis event was created in this workbook
Fields of
WorkbookEventOriginridstring (RID)
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Set
typeto"timeSeriesChannel".timeSeriesChannelTimeSeriesChannelAssociation
Fields of
TimeSeriesChannelAssociationvariableNamestring
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Set
typeto"template".templateTemplateEventOriginThis event was created in this template
Fields of
TemplateEventOriginridstring (RID)
Set
typeto"api".apiApiEventOriginThis event was created programmatically via the API
Set
typeto"dataReview".dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
Fields of
DataReviewEventOrigindataReviewRidstring (RID)
checkMetadataCheckOriginMetadataMetadata about the check that created this event.
Fields of
CheckOriginMetadatacheckEvaluationRidstring (RID)
checkRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
Set
typeto"procedure".procedureProcedureEventOriginThis event was created automatically from a procedure execution.
Fields of
ProcedureEventOriginprocedureExecutionRidstring (RID)
procedureRidstring (RID)
stepIdstring
Set
typeto"streamingChecklist".streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
Fields of
StreamingChecklistEventOriginchecklistRidstring (RID)
checkMetadataStreamingCheckOriginMetadataMetadata about the check that created this event.
Fields of
StreamingCheckOriginMetadatacheckRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
timestampTimestamp
Fields of
Timestampsecondsinteger (int64)
nanosinteger (int64)
durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
isArchivedboolean
createdBystring (RID)The user who created the event. This field may be missing for legacy events.
dispositionEventDisposition
Fields of
EventDispositionpriorityPriority
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionState
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID)
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID)
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID)
assigneesarray of string (RID)
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/events/batch-filter-get" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"filterQuery": {
"type": "archived",
"archived": true
}
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/events/batch-filter-get",
headers={"Authorization": "Bearer <api key>"},
json={"filterQuery": {"type": "archived", "archived": True}},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/events/batch-filter-get",
headers={"Authorization": "Bearer <api key>"},
json={"filterQuery": {"type": "archived", "archived": True}},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/events/batch-filter-get",
headers={"Authorization": "Bearer <api key>"},
json={"filterQuery": {"type": "archived", "archived": True}},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
[
{
"uuid": "<uuid>",
"rid": "<event rid>",
"assetRids": [
"<asset rid>"
],
"origins": [
{
"type": "workbook",
"workbook": {
"rid": "<notebook rid>",
"data": [
{
"type": "timeSeriesChannel",
"timeSeriesChannel": {
"variableName": "<variable name>",
"tags": {
"<key>": "<value>"
}
}
}
]
}
}
],
"timestamp": {
"seconds": 1,
"nanos": 1
},
"duration": {
"seconds": 1,
"nanos": 1
},
"name": "<name>",
"description": "<description>",
"type": "INFO",
"labels": [
"<label>"
],
"properties": {
"<key>": "<property value>"
},
"typedProperties": {
"<key>": {
"type": "stringValue",
"stringValue": "<property value>"
}
},
"isArchived": true,
"createdBy": "<user rid>",
"disposition": {
"priority": "P0",
"state": {
"type": "pendingReview",
"pendingReview": {
"openedBy": "<user rid>"
}
},
"assignees": [
"<user rid>"
]
}
}
]
Update event#
POST /event/v1/update-event
Deprecated: This endpoint is deprecated. Use the batchUpdateEvent endpoint instead.
Updates the fields of an event. Empty fields are left unchanged.
Body
uuidstring (UUID) required deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID)The unique identifier for the event. This field is required if the uuid field is not provided.
assetRidsarray of string (RID)If provided, will replace the existing asset rids. If provided, must contain at least one asset rid.
timestampTimestamp
Fields of
Timestampsecondsinteger (int64) required
nanosinteger (int64) required
durationDuration
Fields of
Durationsecondsinteger (int64) required
nanosinteger (int64) required
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
Response
uuidstring (UUID) deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID)
assetRidsarray of string (RID)A set of asset rids associated with the event.
originsarray ofEventOriginA set of origins associated with the event.
Set
typeto"workbook".workbookWorkbookEventOriginThis event was created in this workbook
Fields of
WorkbookEventOriginridstring (RID)
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Set
typeto"timeSeriesChannel".timeSeriesChannelTimeSeriesChannelAssociation
Fields of
TimeSeriesChannelAssociationvariableNamestring
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Set
typeto"template".templateTemplateEventOriginThis event was created in this template
Fields of
TemplateEventOriginridstring (RID)
Set
typeto"api".apiApiEventOriginThis event was created programmatically via the API
Set
typeto"dataReview".dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
Fields of
DataReviewEventOrigindataReviewRidstring (RID)
checkMetadataCheckOriginMetadataMetadata about the check that created this event.
Fields of
CheckOriginMetadatacheckEvaluationRidstring (RID)
checkRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
Set
typeto"procedure".procedureProcedureEventOriginThis event was created automatically from a procedure execution.
Fields of
ProcedureEventOriginprocedureExecutionRidstring (RID)
procedureRidstring (RID)
stepIdstring
Set
typeto"streamingChecklist".streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
Fields of
StreamingChecklistEventOriginchecklistRidstring (RID)
checkMetadataStreamingCheckOriginMetadataMetadata about the check that created this event.
Fields of
StreamingCheckOriginMetadatacheckRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
timestampTimestamp
Fields of
Timestampsecondsinteger (int64)
nanosinteger (int64)
durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
isArchivedboolean
createdBystring (RID)The user who created the event. This field may be missing for legacy events.
dispositionEventDisposition
Fields of
EventDispositionpriorityPriority
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionState
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID)
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID)
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID)
assigneesarray of string (RID)
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/update-event" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"uuid": "<uuid>"
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/update-event",
headers={"Authorization": "Bearer <api key>"},
json={"uuid": "<uuid>"},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/update-event",
headers={"Authorization": "Bearer <api key>"},
json={"uuid": "<uuid>"},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/update-event",
headers={"Authorization": "Bearer <api key>"},
json={"uuid": "<uuid>"},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"uuid": "<uuid>",
"rid": "<event rid>",
"assetRids": [
"<asset rid>"
],
"origins": [
{
"type": "workbook",
"workbook": {
"rid": "<notebook rid>",
"data": [
{
"type": "timeSeriesChannel",
"timeSeriesChannel": {
"variableName": "<variable name>",
"tags": {
"<key>": "<value>"
}
}
}
]
}
}
],
"timestamp": {
"seconds": 1,
"nanos": 1
},
"duration": {
"seconds": 1,
"nanos": 1
},
"name": "<name>",
"description": "<description>",
"type": "INFO",
"labels": [
"<label>"
],
"properties": {
"<key>": "<property value>"
},
"typedProperties": {
"<key>": {
"type": "stringValue",
"stringValue": "<property value>"
}
},
"isArchived": true,
"createdBy": "<user rid>",
"disposition": {
"priority": "P0",
"state": {
"type": "pendingReview",
"pendingReview": {
"openedBy": "<user rid>"
}
},
"assignees": [
"<user rid>"
]
}
}
Batch update event#
POST /event/v1/events/batch-update
Updates the fields of an event specified by each request in the batch. Empty fields in the UpdateEventRequest are left unchanged.
Body
requestsarray ofUpdateEventRequest
Fields of
UpdateEventRequestridstring (RID) required
assetRidsarray of string (RID)If provided, will replace the existing asset rids. If provided, must contain at least one asset rid.
timestampTimestamp
Fields of
Timestampsecondsinteger (int64) required
nanosinteger (int64) required
durationDuration
Fields of
Durationsecondsinteger (int64) required
nanosinteger (int64) required
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
Response
eventsarray ofEvent
Fields of
Eventuuidstring (UUID) deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID)
assetRidsarray of string (RID)A set of asset rids associated with the event.
originsarray ofEventOriginA set of origins associated with the event.
Set
typeto"workbook".workbookWorkbookEventOriginThis event was created in this workbook
Fields of
WorkbookEventOriginridstring (RID)
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Set
typeto"timeSeriesChannel".timeSeriesChannelTimeSeriesChannelAssociation
Fields of
TimeSeriesChannelAssociationvariableNamestring
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Set
typeto"template".templateTemplateEventOriginThis event was created in this template
Fields of
TemplateEventOriginridstring (RID)
Set
typeto"api".apiApiEventOriginThis event was created programmatically via the API
Set
typeto"dataReview".dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
Fields of
DataReviewEventOrigindataReviewRidstring (RID)
checkMetadataCheckOriginMetadataMetadata about the check that created this event.
Fields of
CheckOriginMetadatacheckEvaluationRidstring (RID)
checkRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
Set
typeto"procedure".procedureProcedureEventOriginThis event was created automatically from a procedure execution.
Fields of
ProcedureEventOriginprocedureExecutionRidstring (RID)
procedureRidstring (RID)
stepIdstring
Set
typeto"streamingChecklist".streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
Fields of
StreamingChecklistEventOriginchecklistRidstring (RID)
checkMetadataStreamingCheckOriginMetadataMetadata about the check that created this event.
Fields of
StreamingCheckOriginMetadatacheckRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
timestampTimestamp
Fields of
Timestampsecondsinteger (int64)
nanosinteger (int64)
durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
isArchivedboolean
createdBystring (RID)The user who created the event. This field may be missing for legacy events.
dispositionEventDisposition
Fields of
EventDispositionpriorityPriority
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionState
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID)
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID)
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID)
assigneesarray of string (RID)
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/events/batch-update" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"requests": [
{
"rid": "<event rid>"
}
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/events/batch-update",
headers={"Authorization": "Bearer <api key>"},
json={"requests": [{"rid": "<event rid>"}]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/events/batch-update",
headers={"Authorization": "Bearer <api key>"},
json={"requests": [{"rid": "<event rid>"}]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/events/batch-update",
headers={"Authorization": "Bearer <api key>"},
json={"requests": [{"rid": "<event rid>"}]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"events": [
{
"uuid": "<uuid>",
"rid": "<event rid>",
"assetRids": [
"<asset rid>"
],
"origins": [
{
"type": "workbook",
"workbook": {
"rid": "<notebook rid>",
"data": [
{
"type": "timeSeriesChannel",
"timeSeriesChannel": {
"variableName": "<variable name>",
"tags": {
"<key>": "<value>"
}
}
}
]
}
}
],
"timestamp": {
"seconds": 1,
"nanos": 1
},
"duration": {
"seconds": 1,
"nanos": 1
},
"name": "<name>",
"description": "<description>",
"type": "INFO",
"labels": [
"<label>"
],
"properties": {
"<key>": "<property value>"
},
"typedProperties": {
"<key>": {
"type": "stringValue",
"stringValue": "<property value>"
}
},
"isArchived": true,
"createdBy": "<user rid>",
"disposition": {
"priority": "P0",
"state": {
"type": "pendingReview",
"pendingReview": {
"openedBy": "<user rid>"
}
},
"assignees": [
"<user rid>"
]
}
}
]
}
Batch update disposition#
POST /event/v1/update-disposition
Updates the disposition of an event.
Body
requestsarray ofUpdateDispositionRequest
Fields of
UpdateDispositionRequestridstring (RID) required
dispositionEventDispositionThe new disposition for the event. If empty, will remove the disposition from the event.
Fields of
EventDispositionpriorityPriorityrequired
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionStaterequired
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID) required
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID) required
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID) required
assigneesarray of string (RID)
Response
eventsarray ofEvent
Fields of
Eventuuidstring (UUID) deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID)
assetRidsarray of string (RID)A set of asset rids associated with the event.
originsarray ofEventOriginA set of origins associated with the event.
Set
typeto"workbook".workbookWorkbookEventOriginThis event was created in this workbook
Fields of
WorkbookEventOriginridstring (RID)
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Set
typeto"timeSeriesChannel".timeSeriesChannelTimeSeriesChannelAssociation
Fields of
TimeSeriesChannelAssociationvariableNamestring
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Set
typeto"template".templateTemplateEventOriginThis event was created in this template
Fields of
TemplateEventOriginridstring (RID)
Set
typeto"api".apiApiEventOriginThis event was created programmatically via the API
Set
typeto"dataReview".dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
Fields of
DataReviewEventOrigindataReviewRidstring (RID)
checkMetadataCheckOriginMetadataMetadata about the check that created this event.
Fields of
CheckOriginMetadatacheckEvaluationRidstring (RID)
checkRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
Set
typeto"procedure".procedureProcedureEventOriginThis event was created automatically from a procedure execution.
Fields of
ProcedureEventOriginprocedureExecutionRidstring (RID)
procedureRidstring (RID)
stepIdstring
Set
typeto"streamingChecklist".streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
Fields of
StreamingChecklistEventOriginchecklistRidstring (RID)
checkMetadataStreamingCheckOriginMetadataMetadata about the check that created this event.
Fields of
StreamingCheckOriginMetadatacheckRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
timestampTimestamp
Fields of
Timestampsecondsinteger (int64)
nanosinteger (int64)
durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
isArchivedboolean
createdBystring (RID)The user who created the event. This field may be missing for legacy events.
dispositionEventDisposition
Fields of
EventDispositionpriorityPriority
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionState
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID)
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID)
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID)
assigneesarray of string (RID)
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/update-disposition" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"requests": [
{
"rid": "<event rid>"
}
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/update-disposition",
headers={"Authorization": "Bearer <api key>"},
json={"requests": [{"rid": "<event rid>"}]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/update-disposition",
headers={"Authorization": "Bearer <api key>"},
json={"requests": [{"rid": "<event rid>"}]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/update-disposition",
headers={"Authorization": "Bearer <api key>"},
json={"requests": [{"rid": "<event rid>"}]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"events": [
{
"uuid": "<uuid>",
"rid": "<event rid>",
"assetRids": [
"<asset rid>"
],
"origins": [
{
"type": "workbook",
"workbook": {
"rid": "<notebook rid>",
"data": [
{
"type": "timeSeriesChannel",
"timeSeriesChannel": {
"variableName": "<variable name>",
"tags": {
"<key>": "<value>"
}
}
}
]
}
}
],
"timestamp": {
"seconds": 1,
"nanos": 1
},
"duration": {
"seconds": 1,
"nanos": 1
},
"name": "<name>",
"description": "<description>",
"type": "INFO",
"labels": [
"<label>"
],
"properties": {
"<key>": "<property value>"
},
"typedProperties": {
"<key>": {
"type": "stringValue",
"stringValue": "<property value>"
}
},
"isArchived": true,
"createdBy": "<user rid>",
"disposition": {
"priority": "P0",
"state": {
"type": "pendingReview",
"pendingReview": {
"openedBy": "<user rid>"
}
},
"assignees": [
"<user rid>"
]
}
}
]
}
Archive event#
POST /event/v1/archive-event
Deprecated: This endpoint is deprecated. Use the batchArchiveEvents endpoint instead.
Archives an event
Body
uuidstring (UUID) required
Response
No content (HTTP 204).
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/archive-event" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"uuid": "<uuid>"
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/archive-event",
headers={"Authorization": "Bearer <api key>"},
json={"uuid": "<uuid>"},
)
response.raise_for_status()
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/archive-event",
headers={"Authorization": "Bearer <api key>"},
json={"uuid": "<uuid>"},
)
response.raise_for_status()
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/archive-event",
headers={"Authorization": "Bearer <api key>"},
json={"uuid": "<uuid>"},
) as response:
response.raise_for_status()
asyncio.run(main())
Response: 204
No content.
Batch archive event#
POST /event/v1/batch-archive-events
Archives a set of events
Body
The body is an array of string (RID).
Response
No content (HTTP 204).
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/batch-archive-events" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '[
"<event rid>"
]'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/batch-archive-events",
headers={"Authorization": "Bearer <api key>"},
json=["<event rid>"],
)
response.raise_for_status()
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/batch-archive-events",
headers={"Authorization": "Bearer <api key>"},
json=["<event rid>"],
)
response.raise_for_status()
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/batch-archive-events",
headers={"Authorization": "Bearer <api key>"},
json=["<event rid>"],
) as response:
response.raise_for_status()
asyncio.run(main())
Response: 204
No content.
Batch unarchive event#
POST /event/v1/batch-unarchive-events
Unarchives a set of events
Body
The body is an array of string (RID).
Response
No content (HTTP 204).
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/batch-unarchive-events" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '[
"<event rid>"
]'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/batch-unarchive-events",
headers={"Authorization": "Bearer <api key>"},
json=["<event rid>"],
)
response.raise_for_status()
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/batch-unarchive-events",
headers={"Authorization": "Bearer <api key>"},
json=["<event rid>"],
)
response.raise_for_status()
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/batch-unarchive-events",
headers={"Authorization": "Bearer <api key>"},
json=["<event rid>"],
) as response:
response.raise_for_status()
asyncio.run(main())
Response: 204
No content.
Search events#
POST /event/v1/search-events
Searches for events that match the given filters.
Body
sortSortOptionsrequired
Fields of
SortOptionsisDescendingboolean required
fieldSortFieldrequired
Values of
SortFieldSTART_TIME
END_TIME
DURATION
DISPOSITION_STATUS
PRIORITY
EVENT_NAME
pageSizeinteger requiredWill reject page sizes greater than 10k.
nextPageTokenstring
querySearchQueryrequired
Set
typeto"archived".archivedboolean
Set
typeto"searchText".searchTextstringSearch text to perform fuzzy searching against.
Set
typeto"exactMatch".exactMatchstringSearch text to perform exact matching against on the event name and description.
Set
typeto"after".afterTimestampFilters to events after this timestamp, exclusive. This includes events that start before, but end after this time.
Fields of
Timestampsecondsinteger (int64) required
nanosinteger (int64) required
Set
typeto"before".beforeTimestampFilters to events before this timestamp, exclusive. This includes events that start before, but end after this time.
Set
typeto"advancedTimeFilter".advancedTimeFilterEventTimeFilter
Fields of
EventTimeFiltertimestampTimestamprequired
timestampConditionEventTimeFilterConditionrequired
Values of
EventTimeFilterConditionSTART_TIME_BEFORE_INCLUSIVE
START_TIME_BEFORE_EXCLUSIVE
START_TIME_AFTER_INCLUSIVE
START_TIME_AFTER_EXCLUSIVE
END_TIME_BEFORE_INCLUSIVE
END_TIME_BEFORE_EXCLUSIVE
END_TIME_AFTER_INCLUSIVE
END_TIME_AFTER_EXCLUSIVE
Set
typeto"asset".assetstring (RID) deprecatedDeprecated: use assetRids
Set
typeto"assets".assetsAssetsFilter
Fields of
AssetsFilteroperatorSetOperatorrequired
Values of
SetOperatorAND
OR
assetsarray of string (RID)
Set
typeto"template".templatestring (RID)
Set
typeto"workbook".workbookstring (RID)
Set
typeto"dataReview".dataReviewstring (RID) deprecatedDeprecated: use dataReviews instead
Set
typeto"dataReviews".dataReviewsDataReviewsFilter
Fields of
DataReviewsFilterdataReviewsarray of string (RID)
Set
typeto"originType".originTypeSearchEventOriginTypedeprecatedDeprecated: use originTypes instead
Values of
SearchEventOriginTypeWORKBOOK
TEMPLATE
API
DATA_REVIEW
PROCEDURE
STREAMING_CHECKLIST
Set
typeto"originTypes".originTypesOriginTypesFilter
Fields of
OriginTypesFilteroperatorSetOperatorrequired
originTypesarray ofSearchEventOriginType
Set
typeto"dataReviewCheck".dataReviewCheckstring (RID) deprecatedDeprecated: use dataReviewChecks instead
Set
typeto"dataReviewChecks".dataReviewChecksDataReviewChecksFilter
Fields of
DataReviewChecksFilterdataReviewChecksarray of string (RID)
Set
typeto"dispositionStatus".dispositionStatusEventDispositionStatusdeprecatedDeprecated: use dispositionStatuses instead
Values of
EventDispositionStatusPENDING_REVIEW
CLOSED_IGNORED
CLOSED_REQUIRES_FURTHER_ACTION
NO_DISPOSITION
Set
typeto"dispositionStatuses".dispositionStatusesarray ofEventDispositionStatus
Set
typeto"priority".priorityPrioritydeprecatedDeprecated: use priorities instead
Values of
PriorityP0
P1
P2
P3
P4
Set
typeto"priorities".prioritiesarray ofPriority
Set
typeto"assignee".assigneestring (RID) deprecatedDeprecated: use assignees instead
Set
typeto"assignees".assigneesAssigneesFilter
Fields of
AssigneesFilteroperatorSetOperatorrequired
assigneesarray of string (RID)
Set
typeto"eventType".eventTypeEventTypedeprecatedDeprecated: use eventTypes instead
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
Set
typeto"eventTypes".eventTypesarray ofEventType
Set
typeto"createdBy".createdBystring (RID)
Set
typeto"createdByAnyOf".createdByAnyOfarray of string (RID)
Set
typeto"label".labelstring deprecatedDeprecated: use labels instead
Set
typeto"labels".labelsLabelsFilter
Fields of
LabelsFilteroperatorSetOperatorrequired
labelsarray of string
Set
typeto"property".propertyPropertydeprecatedDeprecated: use properties instead
Fields of
Propertynamestring required
valuestring required
Set
typeto"properties".propertiesPropertiesFilter
Fields of
PropertiesFilternamestring required
valuesarray of string
Set
typeto"and".andarray ofSearchQuery
Set
typeto"or".orarray ofSearchQuery
Set
typeto"not".notSearchQuery
Set
typeto"workspace".workspacestring (RID)
Set
typeto"procedure".procedurestring (RID)
Set
typeto"procedureExecution".procedureExecutionstring (RID)
Set
typeto"stepId".stepIdstring
Set
typeto"streamingChecklist".streamingCheckliststring (RID)Filters to events created from a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.
Set
typeto"streamingCheck".streamingCheckstring (RID)Filters to events created from the check of a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.
Set
typeto"numericProperty".numericPropertyNumericPropertyPredicateMatches events using a numeric property comparison.
Fields of
NumericPropertyPredicatenamestring required
valuenumber required
operatorPropertyComparisonOperatorrequired
Values of
PropertyComparisonOperatorEQ
NEQ
GT
GTE
LT
LTE
Set
typeto"numericPropertyRange".numericPropertyRangeNumericPropertyRangePredicateMatches events using an inclusive numeric property range.
Fields of
NumericPropertyRangePredicatenamestring required
minnumber
maxnumber
operatorNumericPropertyRangeOperatorrequired
Values of
NumericPropertyRangeOperatorBETWEEN
NOT_BETWEEN
archivedStatusesarray ofArchivedStatusDefault search status is NOT_ARCHIVED if none are provided. Allows for including archived events in search.
Values of
ArchivedStatusNOT_ARCHIVED
ARCHIVED
Response
resultsarray ofEvent
Fields of
Eventuuidstring (UUID) deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID)
assetRidsarray of string (RID)A set of asset rids associated with the event.
originsarray ofEventOriginA set of origins associated with the event.
Set
typeto"workbook".workbookWorkbookEventOriginThis event was created in this workbook
Fields of
WorkbookEventOriginridstring (RID)
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Set
typeto"timeSeriesChannel".timeSeriesChannelTimeSeriesChannelAssociation
Fields of
TimeSeriesChannelAssociationvariableNamestring
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Set
typeto"template".templateTemplateEventOriginThis event was created in this template
Fields of
TemplateEventOriginridstring (RID)
Set
typeto"api".apiApiEventOriginThis event was created programmatically via the API
Set
typeto"dataReview".dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
Fields of
DataReviewEventOrigindataReviewRidstring (RID)
checkMetadataCheckOriginMetadataMetadata about the check that created this event.
Fields of
CheckOriginMetadatacheckEvaluationRidstring (RID)
checkRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
Set
typeto"procedure".procedureProcedureEventOriginThis event was created automatically from a procedure execution.
Fields of
ProcedureEventOriginprocedureExecutionRidstring (RID)
procedureRidstring (RID)
stepIdstring
Set
typeto"streamingChecklist".streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
Fields of
StreamingChecklistEventOriginchecklistRidstring (RID)
checkMetadataStreamingCheckOriginMetadataMetadata about the check that created this event.
Fields of
StreamingCheckOriginMetadatacheckRidstring (RID)
checkLineageRidstring (RID)
implementationIndexinteger
timestampTimestamp
Fields of
Timestampsecondsinteger (int64)
nanosinteger (int64)
durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
namestring
descriptionstring
typeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
Set
typeto"stringValue".stringValuestring
Set
typeto"numericValue".numericValuenumber
isArchivedboolean
createdBystring (RID)The user who created the event. This field may be missing for legacy events.
dispositionEventDisposition
Fields of
EventDispositionpriorityPriority
Values of
PriorityP0
P1
P2
P3
P4
stateDispositionState
Set
typeto"pendingReview".pendingReviewPendingReviewDispositionState
Fields of
PendingReviewDispositionStateopenedBystring (RID)
Set
typeto"closedWithFurtherAction".closedWithFurtherActionClosedWithFurtherActionDispositionState
Fields of
ClosedWithFurtherActionDispositionStateclosedBystring (RID)
Set
typeto"closedWithIgnore".closedWithIgnoreClosedWithIgnoreDispositionState
Fields of
ClosedWithIgnoreDispositionStateclosedBystring (RID)
assigneesarray of string (RID)
nextPageTokenstring
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/search-events" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"sort": {
"isDescending": true,
"field": "START_TIME"
},
"pageSize": 1,
"query": {
"type": "archived",
"archived": true
}
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/search-events",
headers={"Authorization": "Bearer <api key>"},
json={
"sort": {"isDescending": True, "field": "START_TIME"},
"pageSize": 1,
"query": {"type": "archived", "archived": True},
},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/search-events",
headers={"Authorization": "Bearer <api key>"},
json={
"sort": {"isDescending": True, "field": "START_TIME"},
"pageSize": 1,
"query": {"type": "archived", "archived": True},
},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/search-events",
headers={"Authorization": "Bearer <api key>"},
json={
"sort": {"isDescending": True, "field": "START_TIME"},
"pageSize": 1,
"query": {"type": "archived", "archived": True},
},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"results": [
{
"uuid": "<uuid>",
"rid": "<event rid>",
"assetRids": [
"<asset rid>"
],
"origins": [
{
"type": "workbook",
"workbook": {
"rid": "<notebook rid>",
"data": [
{
"type": "timeSeriesChannel",
"timeSeriesChannel": {
"variableName": "<variable name>",
"tags": {
"<key>": "<value>"
}
}
}
]
}
}
],
"timestamp": {
"seconds": 1,
"nanos": 1
},
"duration": {
"seconds": 1,
"nanos": 1
},
"name": "<name>",
"description": "<description>",
"type": "INFO",
"labels": [
"<label>"
],
"properties": {
"<key>": "<property value>"
},
"typedProperties": {
"<key>": {
"type": "stringValue",
"stringValue": "<property value>"
}
},
"isArchived": true,
"createdBy": "<user rid>",
"disposition": {
"priority": "P0",
"state": {
"type": "pendingReview",
"pendingReview": {
"openedBy": "<user rid>"
}
},
"assignees": [
"<user rid>"
]
}
}
],
"nextPageToken": "<token>"
}
Aggregate events#
POST /event/v1/aggregate-events
Searches for events matching the given filter and aggregates them based on the requested functions.
Body
querySearchQueryrequired
Set
typeto"archived".archivedboolean
Set
typeto"searchText".searchTextstringSearch text to perform fuzzy searching against.
Set
typeto"exactMatch".exactMatchstringSearch text to perform exact matching against on the event name and description.
Set
typeto"after".afterTimestampFilters to events after this timestamp, exclusive. This includes events that start before, but end after this time.
Fields of
Timestampsecondsinteger (int64) required
nanosinteger (int64) required
Set
typeto"before".beforeTimestampFilters to events before this timestamp, exclusive. This includes events that start before, but end after this time.
Set
typeto"advancedTimeFilter".advancedTimeFilterEventTimeFilter
Fields of
EventTimeFiltertimestampTimestamprequired
timestampConditionEventTimeFilterConditionrequired
Values of
EventTimeFilterConditionSTART_TIME_BEFORE_INCLUSIVE
START_TIME_BEFORE_EXCLUSIVE
START_TIME_AFTER_INCLUSIVE
START_TIME_AFTER_EXCLUSIVE
END_TIME_BEFORE_INCLUSIVE
END_TIME_BEFORE_EXCLUSIVE
END_TIME_AFTER_INCLUSIVE
END_TIME_AFTER_EXCLUSIVE
Set
typeto"asset".assetstring (RID) deprecatedDeprecated: use assetRids
Set
typeto"assets".assetsAssetsFilter
Fields of
AssetsFilteroperatorSetOperatorrequired
Values of
SetOperatorAND
OR
assetsarray of string (RID)
Set
typeto"template".templatestring (RID)
Set
typeto"workbook".workbookstring (RID)
Set
typeto"dataReview".dataReviewstring (RID) deprecatedDeprecated: use dataReviews instead
Set
typeto"dataReviews".dataReviewsDataReviewsFilter
Fields of
DataReviewsFilterdataReviewsarray of string (RID)
Set
typeto"originType".originTypeSearchEventOriginTypedeprecatedDeprecated: use originTypes instead
Values of
SearchEventOriginTypeWORKBOOK
TEMPLATE
API
DATA_REVIEW
PROCEDURE
STREAMING_CHECKLIST
Set
typeto"originTypes".originTypesOriginTypesFilter
Fields of
OriginTypesFilteroperatorSetOperatorrequired
originTypesarray ofSearchEventOriginType
Set
typeto"dataReviewCheck".dataReviewCheckstring (RID) deprecatedDeprecated: use dataReviewChecks instead
Set
typeto"dataReviewChecks".dataReviewChecksDataReviewChecksFilter
Fields of
DataReviewChecksFilterdataReviewChecksarray of string (RID)
Set
typeto"dispositionStatus".dispositionStatusEventDispositionStatusdeprecatedDeprecated: use dispositionStatuses instead
Values of
EventDispositionStatusPENDING_REVIEW
CLOSED_IGNORED
CLOSED_REQUIRES_FURTHER_ACTION
NO_DISPOSITION
Set
typeto"dispositionStatuses".dispositionStatusesarray ofEventDispositionStatus
Set
typeto"priority".priorityPrioritydeprecatedDeprecated: use priorities instead
Values of
PriorityP0
P1
P2
P3
P4
Set
typeto"priorities".prioritiesarray ofPriority
Set
typeto"assignee".assigneestring (RID) deprecatedDeprecated: use assignees instead
Set
typeto"assignees".assigneesAssigneesFilter
Fields of
AssigneesFilteroperatorSetOperatorrequired
assigneesarray of string (RID)
Set
typeto"eventType".eventTypeEventTypedeprecatedDeprecated: use eventTypes instead
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
Set
typeto"eventTypes".eventTypesarray ofEventType
Set
typeto"createdBy".createdBystring (RID)
Set
typeto"createdByAnyOf".createdByAnyOfarray of string (RID)
Set
typeto"label".labelstring deprecatedDeprecated: use labels instead
Set
typeto"labels".labelsLabelsFilter
Fields of
LabelsFilteroperatorSetOperatorrequired
labelsarray of string
Set
typeto"property".propertyPropertydeprecatedDeprecated: use properties instead
Fields of
Propertynamestring required
valuestring required
Set
typeto"properties".propertiesPropertiesFilter
Fields of
PropertiesFilternamestring required
valuesarray of string
Set
typeto"and".andarray ofSearchQuery
Set
typeto"or".orarray ofSearchQuery
Set
typeto"not".notSearchQuery
Set
typeto"workspace".workspacestring (RID)
Set
typeto"procedure".procedurestring (RID)
Set
typeto"procedureExecution".procedureExecutionstring (RID)
Set
typeto"stepId".stepIdstring
Set
typeto"streamingChecklist".streamingCheckliststring (RID)Filters to events created from a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.
Set
typeto"streamingCheck".streamingCheckstring (RID)Filters to events created from the check of a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.
Set
typeto"numericProperty".numericPropertyNumericPropertyPredicateMatches events using a numeric property comparison.
Fields of
NumericPropertyPredicatenamestring required
valuenumber required
operatorPropertyComparisonOperatorrequired
Values of
PropertyComparisonOperatorEQ
NEQ
GT
GTE
LT
LTE
Set
typeto"numericPropertyRange".numericPropertyRangeNumericPropertyRangePredicateMatches events using an inclusive numeric property range.
Fields of
NumericPropertyRangePredicatenamestring required
minnumber
maxnumber
operatorNumericPropertyRangeOperatorrequired
Values of
NumericPropertyRangeOperatorBETWEEN
NOT_BETWEEN
aggregateTypesarray ofAggregateType
Values of
AggregateTypeTOTAL_DURATION
TOTAL_COUNT
Response
valuesmap of string toAggregateValue
Set
typeto"duration".durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
Set
typeto"count".countinteger
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/aggregate-events" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"query": {
"type": "archived",
"archived": true
}
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/aggregate-events",
headers={"Authorization": "Bearer <api key>"},
json={"query": {"type": "archived", "archived": True}},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/aggregate-events",
headers={"Authorization": "Bearer <api key>"},
json={"query": {"type": "archived", "archived": True}},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/aggregate-events",
headers={"Authorization": "Bearer <api key>"},
json={"query": {"type": "archived", "archived": True}},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"values": {
"<key>": {
"type": "duration",
"duration": {
"seconds": 1,
"nanos": 1
}
}
}
}
Batch aggregate events#
POST /event/v1/aggregate-events/batch
Searches for events matching the given filter and aggregates them based on the requested functions. Returns a list of responses in same order as the batched requests.
Body
requestsarray ofAggregateEventsRequest
Fields of
AggregateEventsRequestquerySearchQueryrequired
Set
typeto"archived".archivedboolean
Set
typeto"searchText".searchTextstringSearch text to perform fuzzy searching against.
Set
typeto"exactMatch".exactMatchstringSearch text to perform exact matching against on the event name and description.
Set
typeto"after".afterTimestampFilters to events after this timestamp, exclusive. This includes events that start before, but end after this time.
Fields of
Timestampsecondsinteger (int64) required
nanosinteger (int64) required
Set
typeto"before".beforeTimestampFilters to events before this timestamp, exclusive. This includes events that start before, but end after this time.
Set
typeto"advancedTimeFilter".advancedTimeFilterEventTimeFilter
Fields of
EventTimeFiltertimestampTimestamprequired
timestampConditionEventTimeFilterConditionrequired
Values of
EventTimeFilterConditionSTART_TIME_BEFORE_INCLUSIVE
START_TIME_BEFORE_EXCLUSIVE
START_TIME_AFTER_INCLUSIVE
START_TIME_AFTER_EXCLUSIVE
END_TIME_BEFORE_INCLUSIVE
END_TIME_BEFORE_EXCLUSIVE
END_TIME_AFTER_INCLUSIVE
END_TIME_AFTER_EXCLUSIVE
Set
typeto"asset".assetstring (RID) deprecatedDeprecated: use assetRids
Set
typeto"assets".assetsAssetsFilter
Fields of
AssetsFilteroperatorSetOperatorrequired
Values of
SetOperatorAND
OR
assetsarray of string (RID)
Set
typeto"template".templatestring (RID)
Set
typeto"workbook".workbookstring (RID)
Set
typeto"dataReview".dataReviewstring (RID) deprecatedDeprecated: use dataReviews instead
Set
typeto"dataReviews".dataReviewsDataReviewsFilter
Fields of
DataReviewsFilterdataReviewsarray of string (RID)
Set
typeto"originType".originTypeSearchEventOriginTypedeprecatedDeprecated: use originTypes instead
Values of
SearchEventOriginTypeWORKBOOK
TEMPLATE
API
DATA_REVIEW
PROCEDURE
STREAMING_CHECKLIST
Set
typeto"originTypes".originTypesOriginTypesFilter
Fields of
OriginTypesFilteroperatorSetOperatorrequired
originTypesarray ofSearchEventOriginType
Set
typeto"dataReviewCheck".dataReviewCheckstring (RID) deprecatedDeprecated: use dataReviewChecks instead
Set
typeto"dataReviewChecks".dataReviewChecksDataReviewChecksFilter
Fields of
DataReviewChecksFilterdataReviewChecksarray of string (RID)
Set
typeto"dispositionStatus".dispositionStatusEventDispositionStatusdeprecatedDeprecated: use dispositionStatuses instead
Values of
EventDispositionStatusPENDING_REVIEW
CLOSED_IGNORED
CLOSED_REQUIRES_FURTHER_ACTION
NO_DISPOSITION
Set
typeto"dispositionStatuses".dispositionStatusesarray ofEventDispositionStatus
Set
typeto"priority".priorityPrioritydeprecatedDeprecated: use priorities instead
Values of
PriorityP0
P1
P2
P3
P4
Set
typeto"priorities".prioritiesarray ofPriority
Set
typeto"assignee".assigneestring (RID) deprecatedDeprecated: use assignees instead
Set
typeto"assignees".assigneesAssigneesFilter
Fields of
AssigneesFilteroperatorSetOperatorrequired
assigneesarray of string (RID)
Set
typeto"eventType".eventTypeEventTypedeprecatedDeprecated: use eventTypes instead
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
Set
typeto"eventTypes".eventTypesarray ofEventType
Set
typeto"createdBy".createdBystring (RID)
Set
typeto"createdByAnyOf".createdByAnyOfarray of string (RID)
Set
typeto"label".labelstring deprecatedDeprecated: use labels instead
Set
typeto"labels".labelsLabelsFilter
Fields of
LabelsFilteroperatorSetOperatorrequired
labelsarray of string
Set
typeto"property".propertyPropertydeprecatedDeprecated: use properties instead
Fields of
Propertynamestring required
valuestring required
Set
typeto"properties".propertiesPropertiesFilter
Fields of
PropertiesFilternamestring required
valuesarray of string
Set
typeto"and".andarray ofSearchQuery
Set
typeto"or".orarray ofSearchQuery
Set
typeto"not".notSearchQuery
Set
typeto"workspace".workspacestring (RID)
Set
typeto"procedure".procedurestring (RID)
Set
typeto"procedureExecution".procedureExecutionstring (RID)
Set
typeto"stepId".stepIdstring
Set
typeto"streamingChecklist".streamingCheckliststring (RID)Filters to events created from a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.
Set
typeto"streamingCheck".streamingCheckstring (RID)Filters to events created from the check of a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.
Set
typeto"numericProperty".numericPropertyNumericPropertyPredicateMatches events using a numeric property comparison.
Fields of
NumericPropertyPredicatenamestring required
valuenumber required
operatorPropertyComparisonOperatorrequired
Values of
PropertyComparisonOperatorEQ
NEQ
GT
GTE
LT
LTE
Set
typeto"numericPropertyRange".numericPropertyRangeNumericPropertyRangePredicateMatches events using an inclusive numeric property range.
Fields of
NumericPropertyRangePredicatenamestring required
minnumber
maxnumber
operatorNumericPropertyRangeOperatorrequired
Values of
NumericPropertyRangeOperatorBETWEEN
NOT_BETWEEN
aggregateTypesarray ofAggregateType
Values of
AggregateTypeTOTAL_DURATION
TOTAL_COUNT
Response
responsesarray ofAggregateEventsResponse
Fields of
AggregateEventsResponsevaluesmap of string toAggregateValue
Set
typeto"duration".durationDuration
Fields of
Durationsecondsinteger (int64)
nanosinteger (int64)
Set
typeto"count".countinteger
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/aggregate-events/batch" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"requests": [
{
"query": {
"type": "archived",
"archived": true
}
}
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/aggregate-events/batch",
headers={"Authorization": "Bearer <api key>"},
json={"requests": [{"query": {"type": "archived", "archived": True}}]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/aggregate-events/batch",
headers={"Authorization": "Bearer <api key>"},
json={"requests": [{"query": {"type": "archived", "archived": True}}]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/aggregate-events/batch",
headers={"Authorization": "Bearer <api key>"},
json={"requests": [{"query": {"type": "archived", "archived": True}}]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"responses": [
{
"values": {
"<key>": {
"type": "duration",
"duration": {
"seconds": 1,
"nanos": 1
}
}
}
}
]
}
Get events histogram#
POST /event/v1/histogram
Gets a histogram of events that match the given filters.
Body
startInclusiveTimestamprequired
Fields of
Timestampsecondsinteger (int64) required
nanosinteger (int64) required
endExclusiveTimestamprequired
filterQueryHistogramFilterQueryThe query to filter the events to be included in the histogram.
Set
typeto"searchText".searchTextstring
Set
typeto"asset".assetstring (RID)
Set
typeto"template".templatestring (RID)
Set
typeto"workbook".workbookstring (RID)
Set
typeto"dataReview".dataReviewstring (RID)
Set
typeto"originType".originTypeSearchEventOriginType
Values of
SearchEventOriginTypeWORKBOOK
TEMPLATE
API
DATA_REVIEW
PROCEDURE
STREAMING_CHECKLIST
Set
typeto"dataReviewCheck".dataReviewCheckstring (RID)
Set
typeto"dispositionStatus".dispositionStatusEventDispositionStatus
Values of
EventDispositionStatusPENDING_REVIEW
CLOSED_IGNORED
CLOSED_REQUIRES_FURTHER_ACTION
NO_DISPOSITION
Set
typeto"priority".priorityPriority
Values of
PriorityP0
P1
P2
P3
P4
Set
typeto"assignee".assigneestring (RID)
Set
typeto"eventType".eventTypeEventType
Values of
EventTypeINFO
FLAG
ERROR
SUCCESS
Set
typeto"createdBy".createdBystring (RID)
Set
typeto"label".labelstring
Set
typeto"property".propertyProperty
Fields of
Propertynamestring required
valuestring required
Set
typeto"and".andarray ofHistogramFilterQuery
Set
typeto"or".orarray ofHistogramFilterQuery
Set
typeto"not".notHistogramFilterQuery
Set
typeto"workspace".workspacestring (RID)
Set
typeto"procedure".procedurestring (RID)
Set
typeto"procedureExecution".procedureExecutionstring (RID)
Set
typeto"stepId".stepIdstring
archivedStatusesarray ofArchivedStatusFilters search on check alerts based on the archived statuses provided. Default is NOT_ARCHIVED only if none are provided.
Values of
ArchivedStatusNOT_ARCHIVED
ARCHIVED
numBinsintegerDefaults to 100. Throws if larger than 1_000. The resulting histogram may have fewer bins than requested if the requested time window is too small.
eventLimitintegerLimits the number of events to be included in the histogram. Defaults to 1_000. Throws if larger than 10_000.
Response
bucketsarray ofEventsHistogramBucket
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/histogram" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"startInclusive": {
"seconds": 1,
"nanos": 1
},
"endExclusive": {
"seconds": 1,
"nanos": 1
}
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/histogram",
headers={"Authorization": "Bearer <api key>"},
json={
"startInclusive": {"seconds": 1, "nanos": 1},
"endExclusive": {"seconds": 1, "nanos": 1},
},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/histogram",
headers={"Authorization": "Bearer <api key>"},
json={
"startInclusive": {"seconds": 1, "nanos": 1},
"endExclusive": {"seconds": 1, "nanos": 1},
},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/histogram",
headers={"Authorization": "Bearer <api key>"},
json={
"startInclusive": {"seconds": 1, "nanos": 1},
"endExclusive": {"seconds": 1, "nanos": 1},
},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"buckets": [
{
"startInclusive": {
"seconds": 1,
"nanos": 1
},
"endExclusive": {
"seconds": 1,
"nanos": 1
},
"count": 1
}
]
}
List properties and labels#
POST /event/v1/list-properties-labels
Lists the properties and labels of active events in the provided workspaces. Returns up to 500 of the most-used labels, and up to 500 of the most-used values for each property key. Property keys are not capped. Response maps and sets are unordered.
Body
workspacesarray of string (RID)If omitted, results will come from all workspaces the user belongs to.
Response
propertiesmap ofPropertyNameto array of string deprecatedLegacy string-only property values. Deprecated: Use the paginated searchPropertyKeys and searchPropertyValues methods instead.
labelsarray of string
Request
curl -X POST "https://api.gov.nominal.io/api/event/v1/list-properties-labels" \
-H "Authorization: Bearer <api key>" \
-H "Content-Type: application/json" \
--data '{
"workspaces": [
"<workspace rid>"
]
}'
import requests
response = requests.post(
"https://api.gov.nominal.io/api/event/v1/list-properties-labels",
headers={"Authorization": "Bearer <api key>"},
json={"workspaces": ["<workspace rid>"]},
)
response.raise_for_status()
print(response.json())
import httpx
response = httpx.post(
"https://api.gov.nominal.io/api/event/v1/list-properties-labels",
headers={"Authorization": "Bearer <api key>"},
json={"workspaces": ["<workspace rid>"]},
)
response.raise_for_status()
print(response.json())
import asyncio
import aiohttp
async def main() -> None:
async with aiohttp.ClientSession() as session:
async with session.post(
"https://api.gov.nominal.io/api/event/v1/list-properties-labels",
headers={"Authorization": "Bearer <api key>"},
json={"workspaces": ["<workspace rid>"]},
) as response:
response.raise_for_status()
print(await response.json())
asyncio.run(main())
Response: 200
{
"properties": {
"<key>": [
"<property value>"
]
},
"labels": [
"<label>"
]
}
Errors#
Errors shows how these errors are sent.
Each error’s errorName is Scout: followed by its name below.
Status |
Name |
Notes |
|---|---|---|
400 |
|
|
400 |
|
|
400 |
|
|
404 |
|
|
404 |
|
|
404 |
|
Types#
AggregateEventsRequest#
querySearchQueryrequired
aggregateTypesarray ofAggregateType
AggregateEventsResponse#
valuesmap of string toAggregateValue
AggregateType#
TOTAL_DURATION
TOTAL_COUNT
AggregateValue#
Set type to the name of one of the other fields, and set only that field.
durationDuration
countinteger
ApiEventOrigin#
An empty JSON object, {}.
ArchivedStatus#
NOT_ARCHIVED
ARCHIVED
AssetsFilter#
operatorSetOperatorrequired
assetsarray of string (RID)
AssigneesFilter#
operatorSetOperatorrequired
assigneesarray of string (RID)
CheckOriginMetadata#
checkEvaluationRidstring (RID) required
checkRidstring (RID) required
checkLineageRidstring (RID) required
implementationIndexinteger
ClosedWithFurtherActionDispositionState#
closedBystring (RID) required
ClosedWithIgnoreDispositionState#
closedBystring (RID) required
DataReviewChecksFilter#
dataReviewChecksarray of string (RID)
DataReviewEventOrigin#
dataReviewRidstring (RID) required
checkMetadataCheckOriginMetadatarequiredMetadata about the check that created this event.
DataReviewsFilter#
dataReviewsarray of string (RID)
DispositionState#
Set type to the name of one of the other fields, and set only that field.
pendingReviewPendingReviewDispositionState
closedWithFurtherActionClosedWithFurtherActionDispositionState
closedWithIgnoreClosedWithIgnoreDispositionState
Duration#
secondsinteger (int64) required
nanosinteger (int64) required
Event#
uuidstring (UUID) required deprecatedDeprecated: This field is deprecated. Use the rid field instead.
ridstring (RID) required
assetRidsarray of string (RID)A set of asset rids associated with the event.
originsarray ofEventOriginA set of origins associated with the event.
timestampTimestamprequired
durationDurationrequired
namestring required
descriptionstring required
typeEventTyperequired
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
isArchivedboolean required
createdBystring (RID)The user who created the event. This field may be missing for legacy events.
dispositionEventDisposition
EventDisposition#
Describes the review status for an event. This is used to track the disposition status of an event.
priorityPriorityrequired
stateDispositionStaterequired
assigneesarray of string (RID)
EventDispositionStatus#
PENDING_REVIEW
CLOSED_IGNORED
CLOSED_REQUIRES_FURTHER_ACTION
NO_DISPOSITION
EventOrigin#
Describes where an event came from.
Set type to the name of one of the other fields, and set only that field.
workbookWorkbookEventOriginThis event was created in this workbook
templateTemplateEventOriginThis event was created in this template
apiApiEventOriginThis event was created programmatically via the API
dataReviewDataReviewEventOriginThis event was created automatically from a checklist execution.
procedureProcedureEventOriginThis event was created automatically from a procedure execution.
streamingChecklistStreamingChecklistEventOriginThis event was created automatically from the execution of a streaming checklist.
EventsHistogramBucket#
EventTimeFilter#
timestampTimestamprequired
timestampConditionEventTimeFilterConditionrequired
EventTimeFilterCondition#
START_TIME_BEFORE_INCLUSIVE
START_TIME_BEFORE_EXCLUSIVE
START_TIME_AFTER_INCLUSIVE
START_TIME_AFTER_EXCLUSIVE
END_TIME_BEFORE_INCLUSIVE
END_TIME_BEFORE_EXCLUSIVE
END_TIME_AFTER_INCLUSIVE
END_TIME_AFTER_EXCLUSIVE
EventType#
INFO
FLAG
ERROR
SUCCESS
HistogramFilterQuery#
Set type to the name of one of the other fields, and set only that field.
searchTextstring
assetstring (RID)
templatestring (RID)
workbookstring (RID)
dataReviewstring (RID)
originTypeSearchEventOriginType
dataReviewCheckstring (RID)
dispositionStatusEventDispositionStatus
priorityPriority
assigneestring (RID)
eventTypeEventType
createdBystring (RID)
labelstring
propertyProperty
andarray ofHistogramFilterQuery
orarray ofHistogramFilterQuery
notHistogramFilterQuery
workspacestring (RID)
procedurestring (RID)
procedureExecutionstring (RID)
stepIdstring
LabelsFilter#
operatorSetOperatorrequired
labelsarray of string
NumericPropertyPredicate#
Matches resources that have a numeric value for the named property and whose value satisfies the operator. NEQ excludes resources that lack the property or store a string value under the same name.
namestring required
valuenumber required
operatorPropertyComparisonOperatorrequired
NumericPropertyRangeOperator#
BETWEEN
NOT_BETWEEN
NumericPropertyRangePredicate#
Inclusive range on a numeric property. At least one bound is required. BETWEEN: min <= x <= max. An absent bound is unbounded on that side. NOT_BETWEEN: x < min OR x > max. An absent bound drops that side. Both operators require a numeric value for name. Missing properties and string values never match. Bounds are closed [min, max] to match the number chip (is between / is not between), not half-open.
namestring required
minnumber
maxnumber
operatorNumericPropertyRangeOperatorrequired
OriginTypesFilter#
operatorSetOperatorrequired
originTypesarray ofSearchEventOriginType
PendingReviewDispositionState#
openedBystring (RID) required
Priority#
P0
P1
P2
P3
P4
ProcedureEventOrigin#
procedureExecutionRidstring (RID) required
procedureRidstring (RID) required
stepIdstring required
PropertiesFilter#
namestring required
valuesarray of string
Property#
namestring required
valuestring required
PropertyComparisonOperator#
EQ
NEQ
GT
GTE
LT
LTE
SearchEventOriginType#
WORKBOOK
TEMPLATE
API
DATA_REVIEW
PROCEDURE
STREAMING_CHECKLIST
SearchQuery#
Set type to the name of one of the other fields, and set only that field.
archivedboolean
searchTextstringSearch text to perform fuzzy searching against.
exactMatchstringSearch text to perform exact matching against on the event name and description.
afterTimestampFilters to events after this timestamp, exclusive. This includes events that start before, but end after this time.
beforeTimestampFilters to events before this timestamp, exclusive. This includes events that start before, but end after this time.
advancedTimeFilterEventTimeFilter
assetstring (RID) deprecatedDeprecated: use assetRids
assetsAssetsFilter
templatestring (RID)
workbookstring (RID)
dataReviewstring (RID) deprecatedDeprecated: use dataReviews instead
dataReviewsDataReviewsFilter
originTypeSearchEventOriginTypedeprecatedDeprecated: use originTypes instead
originTypesOriginTypesFilter
dataReviewCheckstring (RID) deprecatedDeprecated: use dataReviewChecks instead
dataReviewChecksDataReviewChecksFilter
dispositionStatusEventDispositionStatusdeprecatedDeprecated: use dispositionStatuses instead
dispositionStatusesarray ofEventDispositionStatus
priorityPrioritydeprecatedDeprecated: use priorities instead
prioritiesarray ofPriority
assigneestring (RID) deprecatedDeprecated: use assignees instead
assigneesAssigneesFilter
eventTypeEventTypedeprecatedDeprecated: use eventTypes instead
eventTypesarray ofEventType
createdBystring (RID)
createdByAnyOfarray of string (RID)
labelstring deprecatedDeprecated: use labels instead
labelsLabelsFilter
propertyPropertydeprecatedDeprecated: use properties instead
propertiesPropertiesFilter
andarray ofSearchQuery
orarray ofSearchQuery
notSearchQuery
workspacestring (RID)
procedurestring (RID)
procedureExecutionstring (RID)
stepIdstring
streamingCheckliststring (RID)Filters to events created from a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.streamingCheckstring (RID)Filters to events created from the check of a checklist executing in streaming. Use
assetsto further filter to a specific streaming checklist instance.numericPropertyNumericPropertyPredicateMatches events using a numeric property comparison.
numericPropertyRangeNumericPropertyRangePredicateMatches events using an inclusive numeric property range.
SetOperator#
AND
OR
SortField#
START_TIME
END_TIME
DURATION
DISPOSITION_STATUS
PRIORITY
EVENT_NAME
SortOptions#
isDescendingboolean required
fieldSortFieldrequired
StreamingChecklistEventOrigin#
checklistRidstring (RID) required
checkMetadataStreamingCheckOriginMetadatarequiredMetadata about the check that created this event.
StreamingCheckOriginMetadata#
checkRidstring (RID) required
checkLineageRidstring (RID) required
implementationIndexinteger
TemplateEventOrigin#
ridstring (RID) required
TimeSeriesChannelAssociation#
A singular time series to associate the event with.
variableNamestring required
tagsmap of string to stringIf this variable is grouped, the tags within the groupings this event should associate with
Timestamp#
Deprecated for new APIs. Use google.protobuf.Timestamp for absolute instants in proto APIs.
This legacy nanosecond precision timestamp type is represented by an epoch time in seconds and a nanosecond offset. The nanosecond offset is from the start of the epoch second, so must be less than 1 billion.
secondsinteger (int64) required
nanosinteger (int64) required
TypedPropertyValue#
Typed metadata value. Additional variants may be added as property types expand.
Set type to the name of one of the other fields, and set only that field.
stringValuestring
numericValuenumber
UpdateDispositionRequest#
ridstring (RID) required
dispositionEventDispositionThe new disposition for the event. If empty, will remove the disposition from the event.
UpdateEventRequest#
ridstring (RID) required
assetRidsarray of string (RID)If provided, will replace the existing asset rids. If provided, must contain at least one asset rid.
timestampTimestamp
durationDuration
namestring
descriptionstring
typeEventType
labelsarray of string
propertiesmap ofPropertyNameto string deprecatedDeprecated: use typedProperties
typedPropertiesmap ofPropertyNametoTypedPropertyValue
WorkbookDataAssociation#
Set type to the name of one of the other fields, and set only that field.
timeSeriesChannelTimeSeriesChannelAssociation
WorkbookEventOrigin#
ridstring (RID) required
dataarray ofWorkbookDataAssociationData visualizations to associate this event with
Page design based on Scalar, MIT License.