Skip to main content

ops.events

Purpose​

The ops.events dataset stores the event markers you send through the Coralogix ops-events ingest API, such as CI/CD deployments and custom events like incidents or feature-flag changes. Coralogix stores each event as an opsEvents entity. The same events appear as event markers on APM charts and as annotations.

ops.events is a predefined dataset: Coralogix provisions it in the default dataspace, and the events you send fill it. To send events, see Send events to Coralogix.

Query the dataset​

Recent deployments by service:

source default/ops.events
| filter $d.eventType == 'cdEvent'
| choose $m.timestamp, $d.attributes.service.name, $d.cdEvent.pipeline.name, $d.cdEvent.pipeline.result.status

Stored events drop the API's enum prefixes, so filter on the lowercase form: CD_SYSTEM_ARGOCD is stored as argocd, and PIPELINE_RESULT_STATUS_SUCCESS as success.

Schema description​

FieldTypeRequiredDescription
$dobjectYesEntity-type-specific payload — shape defined by each entity type's schema
$d.attributesobjectNo
$d.attributes.environmentstringNo
$d.attributes.serviceobjectNo
$d.attributes.service.namestringNo
$d.cdEventobjectNo
$d.cdEvent.pipelineobjectYes
$d.cdEvent.pipeline.namestringYes
$d.cdEvent.pipeline.resultobjectNo
$d.cdEvent.pipeline.result.statusstringNoOne of: success, failure, timeout, cancellation, error, skip.
$d.cdEvent.pipeline.runobjectNo
$d.cdEvent.pipeline.run.durationSecondsintegerNo
$d.cdEvent.pipeline.run.idstringNo
$d.cdEvent.pipeline.run.urlstring (uri)No
$d.cdEvent.pipeline.taskobjectNo
$d.cdEvent.pipeline.task.namestringNo
$d.cdEvent.pipeline.task.typestringNoOne of: build, test, deploy.
$d.cdEvent.systemstringYesOne of: github, argocd, jenkins, gitlab, bitbucket, azure_devops, spinnaker.
$d.cdEvent.vcsobjectNo
$d.cdEvent.vcs.refobjectNo
$d.cdEvent.vcs.ref.headobjectNo
$d.cdEvent.vcs.ref.head.namestringNo
$d.cdEvent.vcs.ref.head.revisionstringNo
$d.cdEvent.vcs.repositoryobjectNo
$d.cdEvent.vcs.repository.namestringNo
$d.cdEvent.vcs.repository.urlstring (uri)No
$d.cdEvent.vcs.systemstringNoOne of: github, gitlab, bitbucket.
$d.cdEvent.vcs.typestringNoOne of: branch, tag.
$d.descriptionstringNo
$d.eventTypestringYesOne of: cdEvent, customEvent.
$d.schemaVersionintegerYesRevision of this $d contract that produced the record, stamped server-side by ops-events-gateway. Readers branch on this rather than sniffing which fields are present, and must treat an absent value as 1. Bumped only for changes a reader of the previous version cannot survive; additive optional fields keep it. A bump means a new opsEvents/vN schema directory, so within this file the value is always 1. Value: 1.
$lmapYesUser labels: free-form string-to-string map
$l.<key>stringNo
$mobjectYesEngine metadata
$m.cxEventIdstring (uuid)YesGlobally unique event id
$m.ingressTimestampstring (date-time)YesTime the event was ingested
$m.priorityClassstringYesDefines the feature-set enabled for the event One of: high, medium, low.
$m.severitystringYesEvent severity level One of: Verbose, Debug, Info, Warning, Error, Critical.
$m.timestampstring (date-time)YesEvent timestamp

Next steps​

Last updated on
Was this page helpful?