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: nominal.event.v2.json

Endpoints#

Create event#

POST /event/v2/events

Creates an event.

Body

assetRids array of string

Must contain at least one asset rid.

origins array of EventOrigin

If empty, defaults to a single API origin.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

If not provided, defaults to an empty string.

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue required

​

stringValue string

​

numericValue number

​

Response

event Event

​

Fields of Event
uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue

​

stringValue string

​

numericValue number

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "assetRids": [
    "<asset rids>"
  ],
  "origins": [
    {
      "workbook": {
        "rid": "<rid>",
        "data": [
          {
            "timeSeriesChannel": {
              "variableName": "<variable name>",
              "tags": {
                "<key>": "<value>"
              }
            }
          }
        ]
      }
    }
  ],
  "timestamp": {
    "seconds": "1",
    "nanos": "1"
  },
  "duration": {
    "seconds": "1",
    "nanos": "1"
  },
  "name": "<name>",
  "description": "<description>",
  "type": "INFO",
  "labels": [
    "<labels>"
  ],
  "properties": {
    "<key>": "<value>"
  },
  "disposition": {
    "priority": "P0",
    "state": {
      "pendingReview": {
        "openedBy": "<opened by>"
      }
    },
    "assignees": [
      "<assignees>"
    ]
  },
  "typedProperties": {
    "<key>": {
      "stringValue": "<string value>"
    }
  }
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "assetRids": ["<asset rids>"],
        "origins": [
            {
                "workbook": {
                    "rid": "<rid>",
                    "data": [
                        {
                            "timeSeriesChannel": {
                                "variableName": "<variable name>",
                                "tags": {"<key>": "<value>"},
                            },
                        },
                    ],
                },
            },
        ],
        "timestamp": {"seconds": "1", "nanos": "1"},
        "duration": {"seconds": "1", "nanos": "1"},
        "name": "<name>",
        "description": "<description>",
        "type": "INFO",
        "labels": ["<labels>"],
        "properties": {"<key>": "<value>"},
        "disposition": {
            "priority": "P0",
            "state": {"pendingReview": {"openedBy": "<opened by>"}},
            "assignees": ["<assignees>"],
        },
        "typedProperties": {"<key>": {"stringValue": "<string value>"}},
    },
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "assetRids": ["<asset rids>"],
        "origins": [
            {
                "workbook": {
                    "rid": "<rid>",
                    "data": [
                        {
                            "timeSeriesChannel": {
                                "variableName": "<variable name>",
                                "tags": {"<key>": "<value>"},
                            },
                        },
                    ],
                },
            },
        ],
        "timestamp": {"seconds": "1", "nanos": "1"},
        "duration": {"seconds": "1", "nanos": "1"},
        "name": "<name>",
        "description": "<description>",
        "type": "INFO",
        "labels": ["<labels>"],
        "properties": {"<key>": "<value>"},
        "disposition": {
            "priority": "P0",
            "state": {"pendingReview": {"openedBy": "<opened by>"}},
            "assignees": ["<assignees>"],
        },
        "typedProperties": {"<key>": {"stringValue": "<string value>"}},
    },
)
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/v2/events",
            headers={"Authorization": "Bearer <api key>"},
            json={
                "assetRids": ["<asset rids>"],
                "origins": [
                    {
                        "workbook": {
                            "rid": "<rid>",
                            "data": [
                                {
                                    "timeSeriesChannel": {
                                        "variableName": "<variable name>",
                                        "tags": {"<key>": "<value>"},
                                    },
                                },
                            ],
                        },
                    },
                ],
                "timestamp": {"seconds": "1", "nanos": "1"},
                "duration": {"seconds": "1", "nanos": "1"},
                "name": "<name>",
                "description": "<description>",
                "type": "INFO",
                "labels": ["<labels>"],
                "properties": {"<key>": "<value>"},
                "disposition": {
                    "priority": "P0",
                    "state": {"pendingReview": {"openedBy": "<opened by>"}},
                    "assignees": ["<assignees>"],
                },
                "typedProperties": {"<key>": {"stringValue": "<string value>"}},
            },
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "event": {
    "uuid": "<uuid>",
    "rid": "<rid>",
    "assetRids": [
      "<asset rids>"
    ],
    "origins": [
      {
        "workbook": {
          "rid": "<rid>",
          "data": [
            {
              "timeSeriesChannel": {
                "variableName": "<variable name>",
                "tags": {
                  "<key>": "<value>"
                }
              }
            }
          ]
        }
      }
    ],
    "timestamp": {
      "seconds": "1",
      "nanos": "1"
    },
    "duration": {
      "seconds": "1",
      "nanos": "1"
    },
    "name": "<name>",
    "description": "<description>",
    "type": "INFO",
    "labels": [
      "<labels>"
    ],
    "properties": {
      "<key>": "<value>"
    },
    "isArchived": true,
    "createdBy": "<created by>",
    "disposition": {
      "priority": "P0",
      "state": {
        "pendingReview": {
          "openedBy": "<opened by>"
        }
      },
      "assignees": [
        "<assignees>"
      ]
    },
    "typedProperties": {
      "<key>": {
        "stringValue": "<string value>"
      }
    }
  }
}

Aggregate events#

POST /event/v2/events/aggregate

Searches for events matching the given filter and aggregates them based on the requested functions.

Body

query SearchQuery

​

Fields of SearchQuery
one of 41 fields

​

archived boolean

​

searchText string

Search text to perform fuzzy searching against.

exactMatch string

Search text to perform exact matching against on the event name and description.

after Timestamp

Filters to events after this timestamp, exclusive.

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

before Timestamp

Filters to events before this timestamp, exclusive.

advancedTimeFilter EventTimeFilter

​

Fields of EventTimeFilter
timestamp Timestamp

​

timestampCondition EventTimeFilterCondition

​

Values of EventTimeFilterCondition
EVENT_TIME_FILTER_CONDITION_UNSPECIFIED

​

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

​

asset string

​

assets AssetsFilter

​

Fields of AssetsFilter
operator SetOperator

​

Values of SetOperator
SET_OPERATOR_UNSPECIFIED

​

AND

​

OR

​

assets array of string

​

template string

​

workbook string

​

dataReview string

​

dataReviews DataReviewsFilter

​

Fields of DataReviewsFilter
dataReviews array of string

​

originType SearchEventOriginType

​

Values of SearchEventOriginType
SEARCH_EVENT_ORIGIN_TYPE_UNSPECIFIED

​

WORKBOOK

​

TEMPLATE

​

API

​

DATA_REVIEW

​

PROCEDURE

​

STREAMING_CHECKLIST

​

originTypes OriginTypesFilter

​

Fields of OriginTypesFilter
operator SetOperator

​

originTypes array of SearchEventOriginType

​

dataReviewCheck string

​

dataReviewChecks DataReviewChecksFilter

​

Fields of DataReviewChecksFilter
dataReviewChecks array of string

​

dispositionStatus EventDispositionStatus

​

Values of EventDispositionStatus
EVENT_DISPOSITION_STATUS_UNSPECIFIED

​

PENDING_REVIEW

​

CLOSED_IGNORED

​

CLOSED_REQUIRES_FURTHER_ACTION

​

NO_DISPOSITION

​

dispositionStatuses EventDispositionStatusList

​

Fields of EventDispositionStatusList
values array of EventDispositionStatus

​

priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

priorities PriorityList

​

Fields of PriorityList
values array of Priority

​

assignee string

​

assignees AssigneesFilter

​

Fields of AssigneesFilter
operator SetOperator

​

assignees array of string

​

eventType EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

eventTypes EventTypeList

​

Fields of EventTypeList
values array of EventType

​

createdBy string

​

createdByAnyOf UserRidList

​

Fields of UserRidList
values array of string

​

label string

​

labels LabelsFilter

​

Fields of LabelsFilter
operator SetOperator

​

labels array of string

​

property Property

​

Fields of Property
name string

​

value string

​

properties PropertiesFilter

​

Fields of PropertiesFilter
name string

​

values array of string

​

and SearchQueryList

​

Fields of SearchQueryList
queries array of SearchQuery

​

not SearchQuery

​

workspace string

​

procedure string

​

procedureExecution string

​

stepId string

​

streamingChecklist string

Filters to events created from a checklist executing in streaming.

streamingCheck string

Filters to events created from the check of a checklist executing in streaming.

numericProperty NumericPropertyPredicate

Matches events using a numeric property comparison.

Fields of NumericPropertyPredicate
name string

​

value number

​

operator PropertyComparisonOperator

​

Values of PropertyComparisonOperator
PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED

​

EQ

​

NEQ

​

GT

​

GTE

​

LT

​

LTE

​

numericPropertyRange NumericPropertyRangePredicate

Matches events using an inclusive numeric property range.

Fields of NumericPropertyRangePredicate
name string

​

min number

​

max number

​

operator NumericPropertyRangeOperator

​

Values of NumericPropertyRangeOperator
NUMERIC_PROPERTY_RANGE_OPERATOR_UNSPECIFIED

​

BETWEEN

​

NOT_BETWEEN

​

aggregateTypes array of AggregateType

​

Values of AggregateType
AGGREGATE_TYPE_UNSPECIFIED

​

TOTAL_DURATION

​

TOTAL_COUNT

​

Response

values map of string to AggregateValue

Keyed by AggregateType enum value name (proto3 forbids enum map keys).

Fields of AggregateValue
one of duration, count

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

count integer

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/aggregate" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "query": {
    "archived": true
  },
  "aggregateTypes": [
    "TOTAL_DURATION"
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/aggregate",
    headers={"Authorization": "Bearer <api key>"},
    json={"query": {"archived": True}, "aggregateTypes": ["TOTAL_DURATION"]},
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/aggregate",
    headers={"Authorization": "Bearer <api key>"},
    json={"query": {"archived": True}, "aggregateTypes": ["TOTAL_DURATION"]},
)
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/v2/events/aggregate",
            headers={"Authorization": "Bearer <api key>"},
            json={"query": {"archived": True}, "aggregateTypes": ["TOTAL_DURATION"]},
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "values": {
    "<key>": {
      "duration": {
        "seconds": "1",
        "nanos": "1"
      }
    }
  }
}

Archive event#

POST /event/v2/events/archive

Archives an event.

Body

uuid string

​

Response

An empty JSON object, {}.

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/archive" \
  -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/v2/events/archive",
    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/v2/events/archive",
    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/v2/events/archive",
            headers={"Authorization": "Bearer <api key>"},
            json={"uuid": "<uuid>"},
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{}

Batch aggregate events#

POST /event/v2/events/batch-aggregate

Aggregates each batched request and returns responses in the same order.

Body

requests array of AggregateEventsRequest

​

Fields of AggregateEventsRequest
query SearchQuery

​

Fields of SearchQuery
one of 41 fields

​

archived boolean

​

searchText string

Search text to perform fuzzy searching against.

exactMatch string

Search text to perform exact matching against on the event name and description.

after Timestamp

Filters to events after this timestamp, exclusive.

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

before Timestamp

Filters to events before this timestamp, exclusive.

advancedTimeFilter EventTimeFilter

​

Fields of EventTimeFilter
timestamp Timestamp

​

timestampCondition EventTimeFilterCondition

​

Values of EventTimeFilterCondition
EVENT_TIME_FILTER_CONDITION_UNSPECIFIED

​

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

​

asset string

​

assets AssetsFilter

​

Fields of AssetsFilter
operator SetOperator

​

Values of SetOperator
SET_OPERATOR_UNSPECIFIED

​

AND

​

OR

​

assets array of string

​

template string

​

workbook string

​

dataReview string

​

dataReviews DataReviewsFilter

​

Fields of DataReviewsFilter
dataReviews array of string

​

originType SearchEventOriginType

​

Values of SearchEventOriginType
SEARCH_EVENT_ORIGIN_TYPE_UNSPECIFIED

​

WORKBOOK

​

TEMPLATE

​

API

​

DATA_REVIEW

​

PROCEDURE

​

STREAMING_CHECKLIST

​

originTypes OriginTypesFilter

​

Fields of OriginTypesFilter
operator SetOperator

​

originTypes array of SearchEventOriginType

​

dataReviewCheck string

​

dataReviewChecks DataReviewChecksFilter

​

Fields of DataReviewChecksFilter
dataReviewChecks array of string

​

dispositionStatus EventDispositionStatus

​

Values of EventDispositionStatus
EVENT_DISPOSITION_STATUS_UNSPECIFIED

​

PENDING_REVIEW

​

CLOSED_IGNORED

​

CLOSED_REQUIRES_FURTHER_ACTION

​

NO_DISPOSITION

​

dispositionStatuses EventDispositionStatusList

​

Fields of EventDispositionStatusList
values array of EventDispositionStatus

​

priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

priorities PriorityList

​

Fields of PriorityList
values array of Priority

​

assignee string

​

assignees AssigneesFilter

​

Fields of AssigneesFilter
operator SetOperator

​

assignees array of string

​

eventType EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

eventTypes EventTypeList

​

Fields of EventTypeList
values array of EventType

​

createdBy string

​

createdByAnyOf UserRidList

​

Fields of UserRidList
values array of string

​

label string

​

labels LabelsFilter

​

Fields of LabelsFilter
operator SetOperator

​

labels array of string

​

property Property

​

Fields of Property
name string

​

value string

​

properties PropertiesFilter

​

Fields of PropertiesFilter
name string

​

values array of string

​

and SearchQueryList

​

Fields of SearchQueryList
queries array of SearchQuery

​

not SearchQuery

​

workspace string

​

procedure string

​

procedureExecution string

​

stepId string

​

streamingChecklist string

Filters to events created from a checklist executing in streaming.

streamingCheck string

Filters to events created from the check of a checklist executing in streaming.

numericProperty NumericPropertyPredicate

Matches events using a numeric property comparison.

Fields of NumericPropertyPredicate
name string

​

value number

​

operator PropertyComparisonOperator

​

Values of PropertyComparisonOperator
PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED

​

EQ

​

NEQ

​

GT

​

GTE

​

LT

​

LTE

​

numericPropertyRange NumericPropertyRangePredicate

Matches events using an inclusive numeric property range.

Fields of NumericPropertyRangePredicate
name string

​

min number

​

max number

​

operator NumericPropertyRangeOperator

​

Values of NumericPropertyRangeOperator
NUMERIC_PROPERTY_RANGE_OPERATOR_UNSPECIFIED

​

BETWEEN

​

NOT_BETWEEN

​

aggregateTypes array of AggregateType

​

Values of AggregateType
AGGREGATE_TYPE_UNSPECIFIED

​

TOTAL_DURATION

​

TOTAL_COUNT

​

Response

responses array of AggregateEventsResponse

​

Fields of AggregateEventsResponse
values map of string to AggregateValue

Keyed by AggregateType enum value name (proto3 forbids enum map keys).

Fields of AggregateValue
one of duration, count

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

count integer

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/batch-aggregate" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "requests": [
    {
      "query": {
        "archived": true
      },
      "aggregateTypes": [
        "TOTAL_DURATION"
      ]
    }
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-aggregate",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "requests": [
            {"query": {"archived": True}, "aggregateTypes": ["TOTAL_DURATION"]},
        ],
    },
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-aggregate",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "requests": [
            {"query": {"archived": True}, "aggregateTypes": ["TOTAL_DURATION"]},
        ],
    },
)
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/v2/events/batch-aggregate",
            headers={"Authorization": "Bearer <api key>"},
            json={
                "requests": [
                    {"query": {"archived": True}, "aggregateTypes": ["TOTAL_DURATION"]},
                ],
            },
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "responses": [
    {
      "values": {
        "<key>": {
          "duration": {
            "seconds": "1",
            "nanos": "1"
          }
        }
      }
    }
  ]
}

Batch archive event#

POST /event/v2/events/batch-archive

Archives a set of events.

Body

eventRids array of string

​

Response

An empty JSON object, {}.

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/batch-archive" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "eventRids": [
    "<event rids>"
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-archive",
    headers={"Authorization": "Bearer <api key>"},
    json={"eventRids": ["<event rids>"]},
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-archive",
    headers={"Authorization": "Bearer <api key>"},
    json={"eventRids": ["<event rids>"]},
)
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/v2/events/batch-archive",
            headers={"Authorization": "Bearer <api key>"},
            json={"eventRids": ["<event rids>"]},
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{}

Batch filter events#

POST /event/v2/events/batch-filter-get

Gets a filtered set of events by RID and search filters.

Body

eventRids array of string

​

filterQuery SearchQuery

​

Fields of SearchQuery
one of 41 fields

​

archived boolean

​

searchText string

Search text to perform fuzzy searching against.

exactMatch string

Search text to perform exact matching against on the event name and description.

after Timestamp

Filters to events after this timestamp, exclusive.

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

before Timestamp

Filters to events before this timestamp, exclusive.

advancedTimeFilter EventTimeFilter

​

Fields of EventTimeFilter
timestamp Timestamp

​

timestampCondition EventTimeFilterCondition

​

Values of EventTimeFilterCondition
EVENT_TIME_FILTER_CONDITION_UNSPECIFIED

​

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

​

asset string

​

assets AssetsFilter

​

Fields of AssetsFilter
operator SetOperator

​

Values of SetOperator
SET_OPERATOR_UNSPECIFIED

​

AND

​

OR

​

assets array of string

​

template string

​

workbook string

​

dataReview string

​

dataReviews DataReviewsFilter

​

Fields of DataReviewsFilter
dataReviews array of string

​

originType SearchEventOriginType

​

Values of SearchEventOriginType
SEARCH_EVENT_ORIGIN_TYPE_UNSPECIFIED

​

WORKBOOK

​

TEMPLATE

​

API

​

DATA_REVIEW

​

PROCEDURE

​

STREAMING_CHECKLIST

​

originTypes OriginTypesFilter

​

Fields of OriginTypesFilter
operator SetOperator

​

originTypes array of SearchEventOriginType

​

dataReviewCheck string

​

dataReviewChecks DataReviewChecksFilter

​

Fields of DataReviewChecksFilter
dataReviewChecks array of string

​

dispositionStatus EventDispositionStatus

​

Values of EventDispositionStatus
EVENT_DISPOSITION_STATUS_UNSPECIFIED

​

PENDING_REVIEW

​

CLOSED_IGNORED

​

CLOSED_REQUIRES_FURTHER_ACTION

​

NO_DISPOSITION

​

dispositionStatuses EventDispositionStatusList

​

Fields of EventDispositionStatusList
values array of EventDispositionStatus

​

priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

priorities PriorityList

​

Fields of PriorityList
values array of Priority

​

assignee string

​

assignees AssigneesFilter

​

Fields of AssigneesFilter
operator SetOperator

​

assignees array of string

​

eventType EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

eventTypes EventTypeList

​

Fields of EventTypeList
values array of EventType

​

createdBy string

​

createdByAnyOf UserRidList

​

Fields of UserRidList
values array of string

​

label string

​

labels LabelsFilter

​

Fields of LabelsFilter
operator SetOperator

​

labels array of string

​

property Property

​

Fields of Property
name string

​

value string

​

properties PropertiesFilter

​

Fields of PropertiesFilter
name string

​

values array of string

​

and SearchQueryList

​

Fields of SearchQueryList
queries array of SearchQuery

​

not SearchQuery

​

workspace string

​

procedure string

​

procedureExecution string

​

stepId string

​

streamingChecklist string

Filters to events created from a checklist executing in streaming.

streamingCheck string

Filters to events created from the check of a checklist executing in streaming.

numericProperty NumericPropertyPredicate

Matches events using a numeric property comparison.

Fields of NumericPropertyPredicate
name string

​

value number

​

operator PropertyComparisonOperator

​

Values of PropertyComparisonOperator
PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED

​

EQ

​

NEQ

​

GT

​

GTE

​

LT

​

LTE

​

numericPropertyRange NumericPropertyRangePredicate

Matches events using an inclusive numeric property range.

Fields of NumericPropertyRangePredicate
name string

​

min number

​

max number

​

operator NumericPropertyRangeOperator

​

Values of NumericPropertyRangeOperator
NUMERIC_PROPERTY_RANGE_OPERATOR_UNSPECIFIED

​

BETWEEN

​

NOT_BETWEEN

​

Response

events array of Event

​

Fields of Event
uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue

​

stringValue string

​

numericValue number

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/batch-filter-get" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "eventRids": [
    "<event rids>"
  ],
  "filterQuery": {
    "archived": true
  }
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-filter-get",
    headers={"Authorization": "Bearer <api key>"},
    json={"eventRids": ["<event rids>"], "filterQuery": {"archived": True}},
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-filter-get",
    headers={"Authorization": "Bearer <api key>"},
    json={"eventRids": ["<event rids>"], "filterQuery": {"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/v2/events/batch-filter-get",
            headers={"Authorization": "Bearer <api key>"},
            json={"eventRids": ["<event rids>"], "filterQuery": {"archived": True}},
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "events": [
    {
      "uuid": "<uuid>",
      "rid": "<rid>",
      "assetRids": [
        "<asset rids>"
      ],
      "origins": [
        {
          "workbook": {
            "rid": "<rid>",
            "data": [
              {
                "timeSeriesChannel": {
                  "variableName": "<variable name>",
                  "tags": {
                    "<key>": "<value>"
                  }
                }
              }
            ]
          }
        }
      ],
      "timestamp": {
        "seconds": "1",
        "nanos": "1"
      },
      "duration": {
        "seconds": "1",
        "nanos": "1"
      },
      "name": "<name>",
      "description": "<description>",
      "type": "INFO",
      "labels": [
        "<labels>"
      ],
      "properties": {
        "<key>": "<value>"
      },
      "isArchived": true,
      "createdBy": "<created by>",
      "disposition": {
        "priority": "P0",
        "state": {
          "pendingReview": {
            "openedBy": "<opened by>"
          }
        },
        "assignees": [
          "<assignees>"
        ]
      },
      "typedProperties": {
        "<key>": {
          "stringValue": "<string value>"
        }
      }
    }
  ]
}

Batch find events#

POST /event/v2/events/batch-find

Finds, for each batched query, the single event at the query’s index among events matching the shared base query within the query’s asset and time-window constraints. Returns one result per query in the same order.

Best-effort under permission filtering: each query fetches index + 1 candidate rows and then removes events the caller cannot view, so when hidden events fall inside those candidates a query may report no event even though a later visible match exists.

Body

query SearchQuery

The base query every batched find matches against, combined with each query’s asset and window constraints.

Fields of SearchQuery
one of 41 fields

​

archived boolean

​

searchText string

Search text to perform fuzzy searching against.

exactMatch string

Search text to perform exact matching against on the event name and description.

after Timestamp

Filters to events after this timestamp, exclusive.

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

before Timestamp

Filters to events before this timestamp, exclusive.

advancedTimeFilter EventTimeFilter

​

Fields of EventTimeFilter
timestamp Timestamp

​

timestampCondition EventTimeFilterCondition

​

Values of EventTimeFilterCondition
EVENT_TIME_FILTER_CONDITION_UNSPECIFIED

​

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

​

asset string

​

assets AssetsFilter

​

Fields of AssetsFilter
operator SetOperator

​

Values of SetOperator
SET_OPERATOR_UNSPECIFIED

​

AND

​

OR

​

assets array of string

​

template string

​

workbook string

​

dataReview string

​

dataReviews DataReviewsFilter

​

Fields of DataReviewsFilter
dataReviews array of string

​

originType SearchEventOriginType

​

Values of SearchEventOriginType
SEARCH_EVENT_ORIGIN_TYPE_UNSPECIFIED

​

WORKBOOK

​

TEMPLATE

​

API

​

DATA_REVIEW

​

PROCEDURE

​

STREAMING_CHECKLIST

​

originTypes OriginTypesFilter

​

Fields of OriginTypesFilter
operator SetOperator

​

originTypes array of SearchEventOriginType

​

dataReviewCheck string

​

dataReviewChecks DataReviewChecksFilter

​

Fields of DataReviewChecksFilter
dataReviewChecks array of string

​

dispositionStatus EventDispositionStatus

​

Values of EventDispositionStatus
EVENT_DISPOSITION_STATUS_UNSPECIFIED

​

PENDING_REVIEW

​

CLOSED_IGNORED

​

CLOSED_REQUIRES_FURTHER_ACTION

​

NO_DISPOSITION

​

dispositionStatuses EventDispositionStatusList

​

Fields of EventDispositionStatusList
values array of EventDispositionStatus

​

priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

priorities PriorityList

​

Fields of PriorityList
values array of Priority

​

assignee string

​

assignees AssigneesFilter

​

Fields of AssigneesFilter
operator SetOperator

​

assignees array of string

​

eventType EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

eventTypes EventTypeList

​

Fields of EventTypeList
values array of EventType

​

createdBy string

​

createdByAnyOf UserRidList

​

Fields of UserRidList
values array of string

​

label string

​

labels LabelsFilter

​

Fields of LabelsFilter
operator SetOperator

​

labels array of string

​

property Property

​

Fields of Property
name string

​

value string

​

properties PropertiesFilter

​

Fields of PropertiesFilter
name string

​

values array of string

​

and SearchQueryList

​

Fields of SearchQueryList
queries array of SearchQuery

​

not SearchQuery

​

workspace string

​

procedure string

​

procedureExecution string

​

stepId string

​

streamingChecklist string

Filters to events created from a checklist executing in streaming.

streamingCheck string

Filters to events created from the check of a checklist executing in streaming.

numericProperty NumericPropertyPredicate

Matches events using a numeric property comparison.

Fields of NumericPropertyPredicate
name string

​

value number

​

operator PropertyComparisonOperator

​

Values of PropertyComparisonOperator
PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED

​

EQ

​

NEQ

​

GT

​

GTE

​

LT

​

LTE

​

numericPropertyRange NumericPropertyRangePredicate

Matches events using an inclusive numeric property range.

Fields of NumericPropertyRangePredicate
name string

​

min number

​

max number

​

operator NumericPropertyRangeOperator

​

Values of NumericPropertyRangeOperator
NUMERIC_PROPERTY_RANGE_OPERATOR_UNSPECIFIED

​

BETWEEN

​

NOT_BETWEEN

​

sort SortOptions

​

Fields of SortOptions
isDescending boolean

​

field SortField

​

Values of SortField
SORT_FIELD_UNSPECIFIED

​

START_TIME

​

END_TIME

​

DURATION

​

DISPOSITION_STATUS

​

PRIORITY

​

EVENT_NAME

​

queries array of FindEventsQuery

Rejects batches with more than 1k queries.

Fields of FindEventsQuery
assetRids array of string

When non-empty, only events associated with at least one of these assets match. When empty, events match on the time window alone.

startInclusive Timestamp

Half-open window [start_inclusive, end_exclusive) over event start times. An absent bound leaves that side of the window open.

endExclusive Timestamp

​

index integer

Zero-based rank of the event to return after applying the request sort and permission filtering. Must be non-negative. When permission filtering hides events within the first index matches, the result may be absent even though later matches exist.

Response

results array of FindEventsResult

One result per request query, in the same order.

Fields of FindEventsResult
event Event

Absent when no event matches the query at the requested index.

Fields of Event
uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue

​

stringValue string

​

numericValue number

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/batch-find" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "query": {
    "archived": true
  },
  "sort": {
    "isDescending": true,
    "field": "START_TIME"
  },
  "queries": [
    {
      "assetRids": [
        "<asset rids>"
      ],
      "startInclusive": {
        "seconds": "1",
        "nanos": "1"
      },
      "endExclusive": {
        "seconds": "1",
        "nanos": "1"
      },
      "index": 1
    }
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-find",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "query": {"archived": True},
        "sort": {"isDescending": True, "field": "START_TIME"},
        "queries": [
            {
                "assetRids": ["<asset rids>"],
                "startInclusive": {"seconds": "1", "nanos": "1"},
                "endExclusive": {"seconds": "1", "nanos": "1"},
                "index": 1,
            },
        ],
    },
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-find",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "query": {"archived": True},
        "sort": {"isDescending": True, "field": "START_TIME"},
        "queries": [
            {
                "assetRids": ["<asset rids>"],
                "startInclusive": {"seconds": "1", "nanos": "1"},
                "endExclusive": {"seconds": "1", "nanos": "1"},
                "index": 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/v2/events/batch-find",
            headers={"Authorization": "Bearer <api key>"},
            json={
                "query": {"archived": True},
                "sort": {"isDescending": True, "field": "START_TIME"},
                "queries": [
                    {
                        "assetRids": ["<asset rids>"],
                        "startInclusive": {"seconds": "1", "nanos": "1"},
                        "endExclusive": {"seconds": "1", "nanos": "1"},
                        "index": 1,
                    },
                ],
            },
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "results": [
    {
      "event": {
        "uuid": "<uuid>",
        "rid": "<rid>",
        "assetRids": [
          "<asset rids>"
        ],
        "origins": [
          {
            "workbook": {
              "rid": "<rid>",
              "data": [
                {
                  "timeSeriesChannel": {
                    "variableName": "<variable name>",
                    "tags": {
                      "<key>": "<value>"
                    }
                  }
                }
              ]
            }
          }
        ],
        "timestamp": {
          "seconds": "1",
          "nanos": "1"
        },
        "duration": {
          "seconds": "1",
          "nanos": "1"
        },
        "name": "<name>",
        "description": "<description>",
        "type": "INFO",
        "labels": [
          "<labels>"
        ],
        "properties": {
          "<key>": "<value>"
        },
        "isArchived": true,
        "createdBy": "<created by>",
        "disposition": {
          "priority": "P0",
          "state": {
            "pendingReview": {
              "openedBy": "<opened by>"
            }
          },
          "assignees": [
            "<assignees>"
          ]
        },
        "typedProperties": {
          "<key>": {
            "stringValue": "<string value>"
          }
        }
      }
    }
  ]
}

Batch get events#

POST /event/v2/events/batch-get

Gets a set of events by RID.

Body

eventRids array of string

​

Response

events array of Event

​

Fields of Event
uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue

​

stringValue string

​

numericValue number

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/batch-get" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "eventRids": [
    "<event rids>"
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-get",
    headers={"Authorization": "Bearer <api key>"},
    json={"eventRids": ["<event rids>"]},
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-get",
    headers={"Authorization": "Bearer <api key>"},
    json={"eventRids": ["<event rids>"]},
)
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/v2/events/batch-get",
            headers={"Authorization": "Bearer <api key>"},
            json={"eventRids": ["<event rids>"]},
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "events": [
    {
      "uuid": "<uuid>",
      "rid": "<rid>",
      "assetRids": [
        "<asset rids>"
      ],
      "origins": [
        {
          "workbook": {
            "rid": "<rid>",
            "data": [
              {
                "timeSeriesChannel": {
                  "variableName": "<variable name>",
                  "tags": {
                    "<key>": "<value>"
                  }
                }
              }
            ]
          }
        }
      ],
      "timestamp": {
        "seconds": "1",
        "nanos": "1"
      },
      "duration": {
        "seconds": "1",
        "nanos": "1"
      },
      "name": "<name>",
      "description": "<description>",
      "type": "INFO",
      "labels": [
        "<labels>"
      ],
      "properties": {
        "<key>": "<value>"
      },
      "isArchived": true,
      "createdBy": "<created by>",
      "disposition": {
        "priority": "P0",
        "state": {
          "pendingReview": {
            "openedBy": "<opened by>"
          }
        },
        "assignees": [
          "<assignees>"
        ]
      },
      "typedProperties": {
        "<key>": {
          "stringValue": "<string value>"
        }
      }
    }
  ]
}

Batch unarchive event#

POST /event/v2/events/batch-unarchive

Unarchives a set of events.

Body

eventRids array of string

​

Response

An empty JSON object, {}.

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/batch-unarchive" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "eventRids": [
    "<event rids>"
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-unarchive",
    headers={"Authorization": "Bearer <api key>"},
    json={"eventRids": ["<event rids>"]},
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-unarchive",
    headers={"Authorization": "Bearer <api key>"},
    json={"eventRids": ["<event rids>"]},
)
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/v2/events/batch-unarchive",
            headers={"Authorization": "Bearer <api key>"},
            json={"eventRids": ["<event rids>"]},
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{}

Batch update event#

POST /event/v2/events/batch-update

Updates the fields of an event specified by each request in the batch. Empty fields are left unchanged.

Body

updates array of EventUpdate

​

Fields of EventUpdate
rid string

​

assetRids AssetRidSet

If provided, replaces the existing asset rids. If provided, must contain at least one asset rid.

Fields of AssetRidSet
assetRids array of string

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels LabelUpdateWrapper

​

Fields of LabelUpdateWrapper
labels array of string

​

properties PropertyUpdateWrapper deprecated

​

Fields of PropertyUpdateWrapper
properties map of string to string

​

typedProperties TypedPropertyUpdateWrapper

​

Fields of TypedPropertyUpdateWrapper
typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue required

​

stringValue string

​

numericValue number

​

Response

events array of Event

​

Fields of Event
uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue

​

stringValue string

​

numericValue number

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/batch-update" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "updates": [
    {
      "rid": "<rid>",
      "assetRids": {
        "assetRids": [
          "<asset rids>"
        ]
      },
      "timestamp": {
        "seconds": "1",
        "nanos": "1"
      },
      "duration": {
        "seconds": "1",
        "nanos": "1"
      },
      "name": "<name>",
      "description": "<description>",
      "type": "INFO",
      "labels": {
        "labels": [
          "<labels>"
        ]
      },
      "properties": {
        "properties": {
          "<key>": "<value>"
        }
      },
      "typedProperties": {
        "typedProperties": {
          "<key>": {
            "stringValue": "<string value>"
          }
        }
      }
    }
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-update",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "updates": [
            {
                "rid": "<rid>",
                "assetRids": {"assetRids": ["<asset rids>"]},
                "timestamp": {"seconds": "1", "nanos": "1"},
                "duration": {"seconds": "1", "nanos": "1"},
                "name": "<name>",
                "description": "<description>",
                "type": "INFO",
                "labels": {"labels": ["<labels>"]},
                "properties": {"properties": {"<key>": "<value>"}},
                "typedProperties": {
                    "typedProperties": {"<key>": {"stringValue": "<string value>"}},
                },
            },
        ],
    },
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-update",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "updates": [
            {
                "rid": "<rid>",
                "assetRids": {"assetRids": ["<asset rids>"]},
                "timestamp": {"seconds": "1", "nanos": "1"},
                "duration": {"seconds": "1", "nanos": "1"},
                "name": "<name>",
                "description": "<description>",
                "type": "INFO",
                "labels": {"labels": ["<labels>"]},
                "properties": {"properties": {"<key>": "<value>"}},
                "typedProperties": {
                    "typedProperties": {"<key>": {"stringValue": "<string value>"}},
                },
            },
        ],
    },
)
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/v2/events/batch-update",
            headers={"Authorization": "Bearer <api key>"},
            json={
                "updates": [
                    {
                        "rid": "<rid>",
                        "assetRids": {"assetRids": ["<asset rids>"]},
                        "timestamp": {"seconds": "1", "nanos": "1"},
                        "duration": {"seconds": "1", "nanos": "1"},
                        "name": "<name>",
                        "description": "<description>",
                        "type": "INFO",
                        "labels": {"labels": ["<labels>"]},
                        "properties": {"properties": {"<key>": "<value>"}},
                        "typedProperties": {
                            "typedProperties": {
                                "<key>": {"stringValue": "<string value>"},
                            },
                        },
                    },
                ],
            },
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "events": [
    {
      "uuid": "<uuid>",
      "rid": "<rid>",
      "assetRids": [
        "<asset rids>"
      ],
      "origins": [
        {
          "workbook": {
            "rid": "<rid>",
            "data": [
              {
                "timeSeriesChannel": {
                  "variableName": "<variable name>",
                  "tags": {
                    "<key>": "<value>"
                  }
                }
              }
            ]
          }
        }
      ],
      "timestamp": {
        "seconds": "1",
        "nanos": "1"
      },
      "duration": {
        "seconds": "1",
        "nanos": "1"
      },
      "name": "<name>",
      "description": "<description>",
      "type": "INFO",
      "labels": [
        "<labels>"
      ],
      "properties": {
        "<key>": "<value>"
      },
      "isArchived": true,
      "createdBy": "<created by>",
      "disposition": {
        "priority": "P0",
        "state": {
          "pendingReview": {
            "openedBy": "<opened by>"
          }
        },
        "assignees": [
          "<assignees>"
        ]
      },
      "typedProperties": {
        "<key>": {
          "stringValue": "<string value>"
        }
      }
    }
  ]
}

Batch update disposition#

POST /event/v2/events/batch-update-disposition

Updates the disposition of a set of events.

Body

requests array of UpdateDispositionRequest

​

Fields of UpdateDispositionRequest
rid string

​

disposition EventDisposition

The new disposition for the event. If empty, removes the disposition from the event.

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

Response

events array of Event

​

Fields of Event
uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue

​

stringValue string

​

numericValue number

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/batch-update-disposition" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "requests": [
    {
      "rid": "<rid>",
      "disposition": {
        "priority": "P0",
        "state": {
          "pendingReview": {
            "openedBy": "<opened by>"
          }
        },
        "assignees": [
          "<assignees>"
        ]
      }
    }
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-update-disposition",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "requests": [
            {
                "rid": "<rid>",
                "disposition": {
                    "priority": "P0",
                    "state": {"pendingReview": {"openedBy": "<opened by>"}},
                    "assignees": ["<assignees>"],
                },
            },
        ],
    },
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/batch-update-disposition",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "requests": [
            {
                "rid": "<rid>",
                "disposition": {
                    "priority": "P0",
                    "state": {"pendingReview": {"openedBy": "<opened by>"}},
                    "assignees": ["<assignees>"],
                },
            },
        ],
    },
)
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/v2/events/batch-update-disposition",
            headers={"Authorization": "Bearer <api key>"},
            json={
                "requests": [
                    {
                        "rid": "<rid>",
                        "disposition": {
                            "priority": "P0",
                            "state": {"pendingReview": {"openedBy": "<opened by>"}},
                            "assignees": ["<assignees>"],
                        },
                    },
                ],
            },
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "events": [
    {
      "uuid": "<uuid>",
      "rid": "<rid>",
      "assetRids": [
        "<asset rids>"
      ],
      "origins": [
        {
          "workbook": {
            "rid": "<rid>",
            "data": [
              {
                "timeSeriesChannel": {
                  "variableName": "<variable name>",
                  "tags": {
                    "<key>": "<value>"
                  }
                }
              }
            ]
          }
        }
      ],
      "timestamp": {
        "seconds": "1",
        "nanos": "1"
      },
      "duration": {
        "seconds": "1",
        "nanos": "1"
      },
      "name": "<name>",
      "description": "<description>",
      "type": "INFO",
      "labels": [
        "<labels>"
      ],
      "properties": {
        "<key>": "<value>"
      },
      "isArchived": true,
      "createdBy": "<created by>",
      "disposition": {
        "priority": "P0",
        "state": {
          "pendingReview": {
            "openedBy": "<opened by>"
          }
        },
        "assignees": [
          "<assignees>"
        ]
      },
      "typedProperties": {
        "<key>": {
          "stringValue": "<string value>"
        }
      }
    }
  ]
}

Get events#

POST /event/v2/events/get-by-uuids

Gets a set of events by UUIDs.

Body

uuids array of string

​

Response

events array of Event

​

Fields of Event
uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue

​

stringValue string

​

numericValue number

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/get-by-uuids" \
  -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/v2/events/get-by-uuids",
    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/v2/events/get-by-uuids",
    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/v2/events/get-by-uuids",
            headers={"Authorization": "Bearer <api key>"},
            json={"uuids": ["<uuids>"]},
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "events": [
    {
      "uuid": "<uuid>",
      "rid": "<rid>",
      "assetRids": [
        "<asset rids>"
      ],
      "origins": [
        {
          "workbook": {
            "rid": "<rid>",
            "data": [
              {
                "timeSeriesChannel": {
                  "variableName": "<variable name>",
                  "tags": {
                    "<key>": "<value>"
                  }
                }
              }
            ]
          }
        }
      ],
      "timestamp": {
        "seconds": "1",
        "nanos": "1"
      },
      "duration": {
        "seconds": "1",
        "nanos": "1"
      },
      "name": "<name>",
      "description": "<description>",
      "type": "INFO",
      "labels": [
        "<labels>"
      ],
      "properties": {
        "<key>": "<value>"
      },
      "isArchived": true,
      "createdBy": "<created by>",
      "disposition": {
        "priority": "P0",
        "state": {
          "pendingReview": {
            "openedBy": "<opened by>"
          }
        },
        "assignees": [
          "<assignees>"
        ]
      },
      "typedProperties": {
        "<key>": {
          "stringValue": "<string value>"
        }
      }
    }
  ]
}

Get events histogram#

POST /event/v2/events/histogram

Gets a histogram of events that match the given filters.

Body

startInclusive Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

endExclusive Timestamp

​

filterQuery HistogramFilterQuery

The query to filter the events included in the histogram.

Fields of HistogramFilterQuery
one of 21 fields

​

searchText string

​

asset string

​

template string

​

workbook string

​

dataReview string

​

originType SearchEventOriginType

​

Values of SearchEventOriginType
SEARCH_EVENT_ORIGIN_TYPE_UNSPECIFIED

​

WORKBOOK

​

TEMPLATE

​

API

​

DATA_REVIEW

​

PROCEDURE

​

STREAMING_CHECKLIST

​

dataReviewCheck string

​

dispositionStatus EventDispositionStatus

​

Values of EventDispositionStatus
EVENT_DISPOSITION_STATUS_UNSPECIFIED

​

PENDING_REVIEW

​

CLOSED_IGNORED

​

CLOSED_REQUIRES_FURTHER_ACTION

​

NO_DISPOSITION

​

priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

assignee string

​

eventType EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

createdBy string

​

label string

​

property Property

​

Fields of Property
name string

​

value string

​

and HistogramFilterQueryList

​

Fields of HistogramFilterQueryList
queries array of HistogramFilterQuery

​

workspace string

​

procedure string

​

procedureExecution string

​

stepId string

​

archivedStatuses array of ArchivedStatus

If empty, defaults to NOT_ARCHIVED only.

Values of ArchivedStatus
ARCHIVED_STATUS_UNSPECIFIED

​

NOT_ARCHIVED

​

ARCHIVED

​

numBins integer

Defaults to 100. Throws if larger than 1_000.

eventLimit integer

Limits the number of events included in the histogram. Defaults to 10_000. Throws if larger than 10_000.

Response

buckets array of EventsHistogramBucket

​

Fields of EventsHistogramBucket
startInclusive Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

endExclusive Timestamp

​

count integer

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/histogram" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "startInclusive": {
    "seconds": "1",
    "nanos": "1"
  },
  "endExclusive": {
    "seconds": "1",
    "nanos": "1"
  },
  "filterQuery": {
    "searchText": "<search text>"
  },
  "archivedStatuses": [
    "NOT_ARCHIVED"
  ],
  "numBins": 1,
  "eventLimit": 1
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/histogram",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "startInclusive": {"seconds": "1", "nanos": "1"},
        "endExclusive": {"seconds": "1", "nanos": "1"},
        "filterQuery": {"searchText": "<search text>"},
        "archivedStatuses": ["NOT_ARCHIVED"],
        "numBins": 1,
        "eventLimit": 1,
    },
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/histogram",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "startInclusive": {"seconds": "1", "nanos": "1"},
        "endExclusive": {"seconds": "1", "nanos": "1"},
        "filterQuery": {"searchText": "<search text>"},
        "archivedStatuses": ["NOT_ARCHIVED"],
        "numBins": 1,
        "eventLimit": 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/v2/events/histogram",
            headers={"Authorization": "Bearer <api key>"},
            json={
                "startInclusive": {"seconds": "1", "nanos": "1"},
                "endExclusive": {"seconds": "1", "nanos": "1"},
                "filterQuery": {"searchText": "<search text>"},
                "archivedStatuses": ["NOT_ARCHIVED"],
                "numBins": 1,
                "eventLimit": 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
    }
  ]
}

Search events#

POST /event/v2/events/search

Searches for events that match the given filters.

Body

sort SortOptions

​

Fields of SortOptions
isDescending boolean

​

field SortField

​

Values of SortField
SORT_FIELD_UNSPECIFIED

​

START_TIME

​

END_TIME

​

DURATION

​

DISPOSITION_STATUS

​

PRIORITY

​

EVENT_NAME

​

pageSize integer

Rejects page sizes greater than 10k.

nextPageToken string

​

query SearchQuery

​

Fields of SearchQuery
one of 41 fields

​

archived boolean

​

searchText string

Search text to perform fuzzy searching against.

exactMatch string

Search text to perform exact matching against on the event name and description.

after Timestamp

Filters to events after this timestamp, exclusive.

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

before Timestamp

Filters to events before this timestamp, exclusive.

advancedTimeFilter EventTimeFilter

​

Fields of EventTimeFilter
timestamp Timestamp

​

timestampCondition EventTimeFilterCondition

​

Values of EventTimeFilterCondition
EVENT_TIME_FILTER_CONDITION_UNSPECIFIED

​

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

​

asset string

​

assets AssetsFilter

​

Fields of AssetsFilter
operator SetOperator

​

Values of SetOperator
SET_OPERATOR_UNSPECIFIED

​

AND

​

OR

​

assets array of string

​

template string

​

workbook string

​

dataReview string

​

dataReviews DataReviewsFilter

​

Fields of DataReviewsFilter
dataReviews array of string

​

originType SearchEventOriginType

​

Values of SearchEventOriginType
SEARCH_EVENT_ORIGIN_TYPE_UNSPECIFIED

​

WORKBOOK

​

TEMPLATE

​

API

​

DATA_REVIEW

​

PROCEDURE

​

STREAMING_CHECKLIST

​

originTypes OriginTypesFilter

​

Fields of OriginTypesFilter
operator SetOperator

​

originTypes array of SearchEventOriginType

​

dataReviewCheck string

​

dataReviewChecks DataReviewChecksFilter

​

Fields of DataReviewChecksFilter
dataReviewChecks array of string

​

dispositionStatus EventDispositionStatus

​

Values of EventDispositionStatus
EVENT_DISPOSITION_STATUS_UNSPECIFIED

​

PENDING_REVIEW

​

CLOSED_IGNORED

​

CLOSED_REQUIRES_FURTHER_ACTION

​

NO_DISPOSITION

​

dispositionStatuses EventDispositionStatusList

​

Fields of EventDispositionStatusList
values array of EventDispositionStatus

​

priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

priorities PriorityList

​

Fields of PriorityList
values array of Priority

​

assignee string

​

assignees AssigneesFilter

​

Fields of AssigneesFilter
operator SetOperator

​

assignees array of string

​

eventType EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

eventTypes EventTypeList

​

Fields of EventTypeList
values array of EventType

​

createdBy string

​

createdByAnyOf UserRidList

​

Fields of UserRidList
values array of string

​

label string

​

labels LabelsFilter

​

Fields of LabelsFilter
operator SetOperator

​

labels array of string

​

property Property

​

Fields of Property
name string

​

value string

​

properties PropertiesFilter

​

Fields of PropertiesFilter
name string

​

values array of string

​

and SearchQueryList

​

Fields of SearchQueryList
queries array of SearchQuery

​

not SearchQuery

​

workspace string

​

procedure string

​

procedureExecution string

​

stepId string

​

streamingChecklist string

Filters to events created from a checklist executing in streaming.

streamingCheck string

Filters to events created from the check of a checklist executing in streaming.

numericProperty NumericPropertyPredicate

Matches events using a numeric property comparison.

Fields of NumericPropertyPredicate
name string

​

value number

​

operator PropertyComparisonOperator

​

Values of PropertyComparisonOperator
PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED

​

EQ

​

NEQ

​

GT

​

GTE

​

LT

​

LTE

​

numericPropertyRange NumericPropertyRangePredicate

Matches events using an inclusive numeric property range.

Fields of NumericPropertyRangePredicate
name string

​

min number

​

max number

​

operator NumericPropertyRangeOperator

​

Values of NumericPropertyRangeOperator
NUMERIC_PROPERTY_RANGE_OPERATOR_UNSPECIFIED

​

BETWEEN

​

NOT_BETWEEN

​

archivedStatuses array of ArchivedStatus

If empty, defaults to NOT_ARCHIVED only. Allows including archived events in search.

Values of ArchivedStatus
ARCHIVED_STATUS_UNSPECIFIED

​

NOT_ARCHIVED

​

ARCHIVED

​

Response

results array of Event

​

Fields of Event
uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue

​

stringValue string

​

numericValue number

​

nextPageToken string

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/search" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "sort": {
    "isDescending": true,
    "field": "START_TIME"
  },
  "pageSize": 1,
  "nextPageToken": "<next page token>",
  "query": {
    "archived": true
  },
  "archivedStatuses": [
    "NOT_ARCHIVED"
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/search",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "sort": {"isDescending": True, "field": "START_TIME"},
        "pageSize": 1,
        "nextPageToken": "<next page token>",
        "query": {"archived": True},
        "archivedStatuses": ["NOT_ARCHIVED"],
    },
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/search",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "sort": {"isDescending": True, "field": "START_TIME"},
        "pageSize": 1,
        "nextPageToken": "<next page token>",
        "query": {"archived": True},
        "archivedStatuses": ["NOT_ARCHIVED"],
    },
)
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/v2/events/search",
            headers={"Authorization": "Bearer <api key>"},
            json={
                "sort": {"isDescending": True, "field": "START_TIME"},
                "pageSize": 1,
                "nextPageToken": "<next page token>",
                "query": {"archived": True},
                "archivedStatuses": ["NOT_ARCHIVED"],
            },
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "results": [
    {
      "uuid": "<uuid>",
      "rid": "<rid>",
      "assetRids": [
        "<asset rids>"
      ],
      "origins": [
        {
          "workbook": {
            "rid": "<rid>",
            "data": [
              {
                "timeSeriesChannel": {
                  "variableName": "<variable name>",
                  "tags": {
                    "<key>": "<value>"
                  }
                }
              }
            ]
          }
        }
      ],
      "timestamp": {
        "seconds": "1",
        "nanos": "1"
      },
      "duration": {
        "seconds": "1",
        "nanos": "1"
      },
      "name": "<name>",
      "description": "<description>",
      "type": "INFO",
      "labels": [
        "<labels>"
      ],
      "properties": {
        "<key>": "<value>"
      },
      "isArchived": true,
      "createdBy": "<created by>",
      "disposition": {
        "priority": "P0",
        "state": {
          "pendingReview": {
            "openedBy": "<opened by>"
          }
        },
        "assignees": [
          "<assignees>"
        ]
      },
      "typedProperties": {
        "<key>": {
          "stringValue": "<string value>"
        }
      }
    }
  ],
  "nextPageToken": "<next page token>"
}

Update event#

POST /event/v2/events/update

Updates the fields of an event. Empty fields are left unchanged.

Body

uuid string

​

rid string

The unique identifier for the event. Required if the uuid field is not provided.

assetRids AssetRidSet

If provided, replaces the existing asset rids. If provided, must contain at least one asset rid.

Fields of AssetRidSet
assetRids array of string

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels LabelUpdateWrapper

​

Fields of LabelUpdateWrapper
labels array of string

​

properties PropertyUpdateWrapper deprecated

​

Fields of PropertyUpdateWrapper
properties map of string to string

​

typedProperties TypedPropertyUpdateWrapper

​

Fields of TypedPropertyUpdateWrapper
typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue required

​

stringValue string

​

numericValue number

​

Response

event Event

​

Fields of Event
uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

Fields of EventOrigin
one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

Fields of WorkbookEventOrigin
rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Fields of WorkbookDataAssociation
timeSeriesChannel TimeSeriesChannelAssociation

​

Fields of TimeSeriesChannelAssociation
variableName string

​

tags map of string to string

If this variable is grouped, the tags within the groupings this event should associate with.

template TemplateEventOrigin

This event was created in this template.

Fields of TemplateEventOrigin
rid string

​

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

Fields of DataReviewEventOrigin
dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

Fields of CheckOriginMetadata
checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

Fields of ProcedureEventOrigin
procedureExecutionRid string

​

procedureRid string

​

stepId string

​

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

Fields of StreamingChecklistEventOrigin
checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

Fields of StreamingCheckOriginMetadata
checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

timestamp Timestamp

​

Fields of Timestamp
seconds string (int64)

​

nanos string (int64)

​

duration Duration

​

Fields of Duration
seconds string (int64)

​

nanos string (int64)

​

name string

​

description string

​

type EventType

​

Values of EventType
EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

Fields of EventDisposition
priority Priority

​

Values of Priority
PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

state DispositionState

​

Fields of DispositionState
one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

pendingReview PendingReviewDispositionState

​

Fields of PendingReviewDispositionState
openedBy string

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

Fields of ClosedWithFurtherActionDispositionState
closedBy string

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Fields of ClosedWithIgnoreDispositionState
closedBy string

​

assignees array of string

​

typedProperties map of string to TypedPropertyValue

​

Fields of TypedPropertyValue
one of stringValue, numericValue

​

stringValue string

​

numericValue number

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/events/update" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "uuid": "<uuid>",
  "rid": "<rid>",
  "assetRids": {
    "assetRids": [
      "<asset rids>"
    ]
  },
  "timestamp": {
    "seconds": "1",
    "nanos": "1"
  },
  "duration": {
    "seconds": "1",
    "nanos": "1"
  },
  "name": "<name>",
  "description": "<description>",
  "type": "INFO",
  "labels": {
    "labels": [
      "<labels>"
    ]
  },
  "properties": {
    "properties": {
      "<key>": "<value>"
    }
  },
  "typedProperties": {
    "typedProperties": {
      "<key>": {
        "stringValue": "<string value>"
      }
    }
  }
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/events/update",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "uuid": "<uuid>",
        "rid": "<rid>",
        "assetRids": {"assetRids": ["<asset rids>"]},
        "timestamp": {"seconds": "1", "nanos": "1"},
        "duration": {"seconds": "1", "nanos": "1"},
        "name": "<name>",
        "description": "<description>",
        "type": "INFO",
        "labels": {"labels": ["<labels>"]},
        "properties": {"properties": {"<key>": "<value>"}},
        "typedProperties": {
            "typedProperties": {"<key>": {"stringValue": "<string value>"}},
        },
    },
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/events/update",
    headers={"Authorization": "Bearer <api key>"},
    json={
        "uuid": "<uuid>",
        "rid": "<rid>",
        "assetRids": {"assetRids": ["<asset rids>"]},
        "timestamp": {"seconds": "1", "nanos": "1"},
        "duration": {"seconds": "1", "nanos": "1"},
        "name": "<name>",
        "description": "<description>",
        "type": "INFO",
        "labels": {"labels": ["<labels>"]},
        "properties": {"properties": {"<key>": "<value>"}},
        "typedProperties": {
            "typedProperties": {"<key>": {"stringValue": "<string value>"}},
        },
    },
)
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/v2/events/update",
            headers={"Authorization": "Bearer <api key>"},
            json={
                "uuid": "<uuid>",
                "rid": "<rid>",
                "assetRids": {"assetRids": ["<asset rids>"]},
                "timestamp": {"seconds": "1", "nanos": "1"},
                "duration": {"seconds": "1", "nanos": "1"},
                "name": "<name>",
                "description": "<description>",
                "type": "INFO",
                "labels": {"labels": ["<labels>"]},
                "properties": {"properties": {"<key>": "<value>"}},
                "typedProperties": {
                    "typedProperties": {"<key>": {"stringValue": "<string value>"}},
                },
            },
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "event": {
    "uuid": "<uuid>",
    "rid": "<rid>",
    "assetRids": [
      "<asset rids>"
    ],
    "origins": [
      {
        "workbook": {
          "rid": "<rid>",
          "data": [
            {
              "timeSeriesChannel": {
                "variableName": "<variable name>",
                "tags": {
                  "<key>": "<value>"
                }
              }
            }
          ]
        }
      }
    ],
    "timestamp": {
      "seconds": "1",
      "nanos": "1"
    },
    "duration": {
      "seconds": "1",
      "nanos": "1"
    },
    "name": "<name>",
    "description": "<description>",
    "type": "INFO",
    "labels": [
      "<labels>"
    ],
    "properties": {
      "<key>": "<value>"
    },
    "isArchived": true,
    "createdBy": "<created by>",
    "disposition": {
      "priority": "P0",
      "state": {
        "pendingReview": {
          "openedBy": "<opened by>"
        }
      },
      "assignees": [
        "<assignees>"
      ]
    },
    "typedProperties": {
      "<key>": {
        "stringValue": "<string value>"
      }
    }
  }
}

List properties and labels#

POST /event/v2/list-properties-labels

Lists the properties and labels of active events in the provided workspaces.

Body

workspaceRids array of string

If empty, results come from all workspaces the user belongs to.

Response

properties map of string to PropertyValues deprecated

Deprecated: use the paginated SearchPropertyKeys and SearchPropertyValues methods instead. Legacy string-only property values. proto3 forbids a repeated map value, so the property values are wrapped.

Fields of PropertyValues
value array of string

​

labels array of string

​

Request

curl -X POST "https://api.gov.nominal.io/api/event/v2/list-properties-labels" \
  -H "Authorization: Bearer <api key>" \
  -H "Content-Type: application/json" \
  --data '{
  "workspaceRids": [
    "<workspace rids>"
  ]
}'
import requests

response = requests.post(
    "https://api.gov.nominal.io/api/event/v2/list-properties-labels",
    headers={"Authorization": "Bearer <api key>"},
    json={"workspaceRids": ["<workspace rids>"]},
)
response.raise_for_status()
print(response.json())
import httpx

response = httpx.post(
    "https://api.gov.nominal.io/api/event/v2/list-properties-labels",
    headers={"Authorization": "Bearer <api key>"},
    json={"workspaceRids": ["<workspace rids>"]},
)
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/v2/list-properties-labels",
            headers={"Authorization": "Bearer <api key>"},
            json={"workspaceRids": ["<workspace rids>"]},
        ) as response:
            response.raise_for_status()
            print(await response.json())


asyncio.run(main())

Response: 200

{
  "properties": {
    "<key>": {
      "value": [
        "<value>"
      ]
    }
  },
  "labels": [
    "<labels>"
  ]
}

Errors#

Errors shows how these errors are sent.

Each error’s errorName is NominalEventV2: followed by its name below.

Status

Name

Notes

400

EventErrorFindEventsIndexInvalid

FindEventsIndexInvalid

400

EventErrorFindEventsQueryCountTooLarge

FindEventsQueryCountTooLarge

400

EventErrorInvalidEventRequest

InvalidEventRequest

400

EventErrorSearchQueryTooBroad

EventSearchQueryTooBroad

Types#

AggregateEventsRequest#

query SearchQuery

​

aggregateTypes array of AggregateType

​

AggregateEventsResponse#

values map of string to AggregateValue

Keyed by AggregateType enum value name (proto3 forbids enum map keys).

AggregateType#

AGGREGATE_TYPE_UNSPECIFIED

​

TOTAL_DURATION

​

TOTAL_COUNT

​

AggregateValue#

Set at most one of the fields below.

one of duration, count

​

duration Duration

​

count integer

​

ApiEventOrigin#

An empty JSON object, {}.

ArchivedStatus#

ARCHIVED_STATUS_UNSPECIFIED

​

NOT_ARCHIVED

​

ARCHIVED

​

AssetRidSet#

Optional collection presence: an absent wrapper leaves the field untouched, a present (even empty) wrapper replaces it — matching the classic REST optional<set>/optional<map> update semantics.

assetRids array of string

​

AssetsFilter#

operator SetOperator

​

assets array of string

​

AssigneesFilter#

operator SetOperator

​

assignees array of string

​

CheckOriginMetadata#

checkEvaluationRid string

​

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

ClosedWithFurtherActionDispositionState#

closedBy string

​

ClosedWithIgnoreDispositionState#

closedBy string

​

DataReviewChecksFilter#

dataReviewChecks array of string

​

DataReviewEventOrigin#

dataReviewRid string

​

checkMetadata CheckOriginMetadata

Metadata about the check that created this event.

DataReviewsFilter#

dataReviews array of string

​

DispositionState#

Set at most one of the fields below.

one of pendingReview, closedWithFurtherAction, closedWithIgnore

​

closedWithFurtherAction ClosedWithFurtherActionDispositionState

​

closedWithIgnore ClosedWithIgnoreDispositionState

​

Duration#

seconds string (int64)

​

nanos string (int64)

​

Event#

uuid string

​

rid string

​

assetRids array of string

A set of asset rids associated with the event.

origins array of EventOrigin

A set of origins associated with the event.

timestamp Timestamp

​

duration Duration

​

name string

​

description string

​

type EventType

​

labels array of string

​

properties map of string to string deprecated

​

isArchived boolean

​

createdBy string

The user who created the event. This field may be missing for legacy events.

disposition EventDisposition

​

typedProperties map of string to TypedPropertyValue

​

EventDisposition#

Describes the review status for an event.

priority Priority

​

state DispositionState

​

assignees array of string

​

EventDispositionStatus#

EVENT_DISPOSITION_STATUS_UNSPECIFIED

​

PENDING_REVIEW

​

CLOSED_IGNORED

​

CLOSED_REQUIRES_FURTHER_ACTION

​

NO_DISPOSITION

​

EventDispositionStatusList#

values array of EventDispositionStatus

​

EventOrigin#

Describes where an event came from.

Set at most one of the fields below.

one of 6 fields

​

workbook WorkbookEventOrigin

This event was created in this workbook.

template TemplateEventOrigin

This event was created in this template.

api ApiEventOrigin

This event was created programmatically via the API.

dataReview DataReviewEventOrigin

This event was created automatically from a checklist execution.

procedure ProcedureEventOrigin

This event was created automatically from a procedure execution.

streamingChecklist StreamingChecklistEventOrigin

This event was created automatically from the execution of a streaming checklist.

EventsHistogramBucket#

startInclusive Timestamp

​

endExclusive Timestamp

​

count integer

​

EventTimeFilter#

timestamp Timestamp

​

timestampCondition EventTimeFilterCondition

​

EventTimeFilterCondition#

EVENT_TIME_FILTER_CONDITION_UNSPECIFIED

​

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#

EVENT_TYPE_UNSPECIFIED

​

INFO

​

FLAG

​

ERROR

​

SUCCESS

​

EventTypeList#

values array of EventType

​

EventUpdate#

rid string

​

assetRids AssetRidSet

If provided, replaces the existing asset rids. If provided, must contain at least one asset rid.

timestamp Timestamp

​

duration Duration

​

name string

​

description string

​

type EventType

​

labels LabelUpdateWrapper

​

properties PropertyUpdateWrapper deprecated

​

typedProperties TypedPropertyUpdateWrapper

​

FindEventsQuery#

assetRids array of string

When non-empty, only events associated with at least one of these assets match. When empty, events match on the time window alone.

startInclusive Timestamp

Half-open window [start_inclusive, end_exclusive) over event start times. An absent bound leaves that side of the window open.

endExclusive Timestamp

​

index integer

Zero-based rank of the event to return after applying the request sort and permission filtering. Must be non-negative. When permission filtering hides events within the first index matches, the result may be absent even though later matches exist.

FindEventsResult#

event Event

Absent when no event matches the query at the requested index.

HistogramFilterQuery#

Set at most one of the fields below.

one of 21 fields

​

searchText string

​

asset string

​

template string

​

workbook string

​

dataReview string

​

originType SearchEventOriginType

​

dataReviewCheck string

​

dispositionStatus EventDispositionStatus

​

priority Priority

​

assignee string

​

eventType EventType

​

createdBy string

​

label string

​

property Property

​

workspace string

​

procedure string

​

procedureExecution string

​

stepId string

​

HistogramFilterQueryList#

queries array of HistogramFilterQuery

​

LabelsFilter#

operator SetOperator

​

labels array of string

​

LabelUpdateWrapper#

Wrapper classes to allow for optional fields on update requests

labels array 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.

name string

​

value number

​

operator PropertyComparisonOperator

​

NumericPropertyRangeOperator#

NUMERIC_PROPERTY_RANGE_OPERATOR_UNSPECIFIED

​

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.

name string

​

min number

​

max number

​

operator NumericPropertyRangeOperator

​

OriginTypesFilter#

operator SetOperator

​

originTypes array of SearchEventOriginType

​

PendingReviewDispositionState#

openedBy string

​

Priority#

PRIORITY_UNSPECIFIED

​

P0

​

P1

​

P2

​

P3

​

P4

​

PriorityList#

values array of Priority

​

ProcedureEventOrigin#

procedureExecutionRid string

​

procedureRid string

​

stepId string

​

PropertiesFilter#

name string

​

values array of string

​

Property#

name string

​

value string

​

PropertyComparisonOperator#

PROPERTY_COMPARISON_OPERATOR_UNSPECIFIED

​

EQ

​

NEQ

​

GT

​

GTE

​

LT

​

LTE

​

PropertyUpdateWrapper#

properties map of string to string

​

PropertyValues#

value array of string

​

SearchEventOriginType#

SEARCH_EVENT_ORIGIN_TYPE_UNSPECIFIED

​

WORKBOOK

​

TEMPLATE

​

API

​

DATA_REVIEW

​

PROCEDURE

​

STREAMING_CHECKLIST

​

SearchQuery#

Set at most one of the fields below.

one of 41 fields

​

archived boolean

​

searchText string

Search text to perform fuzzy searching against.

exactMatch string

Search text to perform exact matching against on the event name and description.

after Timestamp

Filters to events after this timestamp, exclusive.

before Timestamp

Filters to events before this timestamp, exclusive.

advancedTimeFilter EventTimeFilter

​

asset string

​

assets AssetsFilter

​

template string

​

workbook string

​

dataReview string

​

dataReviews DataReviewsFilter

​

originType SearchEventOriginType

​

originTypes OriginTypesFilter

​

dataReviewCheck string

​

dataReviewChecks DataReviewChecksFilter

​

dispositionStatus EventDispositionStatus

​

dispositionStatuses EventDispositionStatusList

​

priority Priority

​

priorities PriorityList

​

assignee string

​

assignees AssigneesFilter

​

eventType EventType

​

eventTypes EventTypeList

​

createdBy string

​

createdByAnyOf UserRidList

​

label string

​

labels LabelsFilter

​

property Property

​

properties PropertiesFilter

​

not SearchQuery

​

workspace string

​

procedure string

​

procedureExecution string

​

stepId string

​

streamingChecklist string

Filters to events created from a checklist executing in streaming.

streamingCheck string

Filters to events created from the check of a checklist executing in streaming.

numericProperty NumericPropertyPredicate

Matches events using a numeric property comparison.

numericPropertyRange NumericPropertyRangePredicate

Matches events using an inclusive numeric property range.

SearchQueryList#

Repeated-value arms of the SearchQuery / HistogramFilterQuery oneofs are message-wrapped: proto3 oneof arms cannot be repeated directly.

queries array of SearchQuery

​

SetOperator#

SET_OPERATOR_UNSPECIFIED

​

AND

​

OR

​

SortField#

SORT_FIELD_UNSPECIFIED

​

START_TIME

​

END_TIME

​

DURATION

​

DISPOSITION_STATUS

​

PRIORITY

​

EVENT_NAME

​

SortOptions#

isDescending boolean

​

field SortField

​

StreamingChecklistEventOrigin#

checklistRid string

​

checkMetadata StreamingCheckOriginMetadata

Metadata about the check that created this event.

StreamingCheckOriginMetadata#

checkRid string

​

checkLineageRid string

​

implementationIndex integer

​

TemplateEventOrigin#

rid string

​

TimeSeriesChannelAssociation#

A singular time series to associate the event with.

variableName string

​

tags map of string to string

If 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.

This legacy nanosecond-precision timestamp 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.

seconds string (int64)

​

nanos string (int64)

​

TypedPropertyUpdateWrapper#

typedProperties map of string to TypedPropertyValue

​

TypedPropertyValue#

Set exactly one of the fields below.

one of stringValue, numericValue required

​

stringValue string

​

numericValue number

​

UpdateDispositionRequest#

rid string

​

disposition EventDisposition

The new disposition for the event. If empty, removes the disposition from the event.

UserRidList#

values array of string

​

WorkbookDataAssociation#

timeSeriesChannel TimeSeriesChannelAssociation

​

WorkbookEventOrigin#

rid string

​

data array of WorkbookDataAssociation

Data visualizations to associate this event with.

Page design based on Scalar, MIT License.