Skip to main content
Star us on GitHub Star

Events

The ziti controller can emit kinds of events, useful for monitoring, management and integration with other systems. They can be enabled in the controller configuration.

Event Types

ApiSessionEvent

An ApiSessionEvent is emitted whenever an api session is created, deleted, refreshed or exchanged. Legacy sessions are only ever created or deleted. JWT sessions are created, refreshed and exchanged.

Example:

 {
"namespace": "edge.apiSessions",
"event_type": "created",
"id": "ckvr2r4fs0001oigd6si4akc8",
"timestamp": "2021-11-08T14:45:45.785561479-05:00",
"token": "77cffde5-f68e-4ef0-bbb5-731db36145f5",
"identity_id": "76BB.shC0",
"ip_address": "127.0.0.1"
}

Namespace

The namespace for ApiSessionEvents is edge.apiSessions

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for ApiSessionEvents is edge.apiSessionsstring
event_typeThe event_type indicates the type api session event. One of ["created", "deleted", "refreshed", "exchanged"]string
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
idThe id is the api session idstring
typeThe type is the api session type, one of ["legacy", "jwt"]string
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
tokenThe token is the api session tokenstring
identity_idThe identity_id is the id of the identity that the api session belongs tostring
ip_addressThe ip_address is the IP address from which the identity to connected to require the api sessionstring

CircuitEvent

Namespace

The namespace for CircuitEvents is fabric.circuits

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for CircuitEvents is fabric.circuitsstring
versionThenumber (uint32)
event_typeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
circuit_idThestring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
client_idThestring
service_idThestring
terminator_idThestring
instance_idThestring
creation_timespanThestring containing a duration. Examples: "1s", "5m", "3h"
pathTheCircuitPath
link_countThenumber (int)
path_costThenumber (uint32)
failure_causeThestring
durationThestring containing a duration. Examples: "1s", "5m", "3h"
tagsThemap of string -> string

CircuitPath

Fields

FieldDescriptionType
nodesThelist of string
linksThelist of string
ingress_idThestring
egress_idThestring
initiator_local_addrThestring
initiator_remote_addrThestring
terminator_local_addrThestring
terminator_remote_addrThestring

ClusterEvent

Namespace

The namespace for ClusterEvents is cluster

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for ClusterEvents is clusterstring
eventTypeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
indexThenumber (uint64)
peersThelist of ClusterPeer
leaderIdThestring

ApiAddress

Fields

FieldDescriptionType
urlThestring
versionThestring

ClusterPeer

Fields

FieldDescriptionType
idThestring
addrThestring
versionThestring
apiAddressesThemap of string -> list of ApiAddress

ConnectEvent

Namespace

The namespace for ConnectEvents is connect

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for ConnectEvents is connectstring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
src_typeThestring
dst_typeThestring
src_idThestring
src_addrThestring
dst_idThestring
dst_addrThestring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")

EntityChangeEvent

Namespace

The namespace for EntityChangeEvents is entityChange

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for EntityChangeEvents is entityChangestring
eventIdThestring
eventTypeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
metadataThemap of string -> object
entityTypeThestring
isParentEventTheboolean
initialStateTheobject
finalStateTheobject

EntityCountEvent

Namespace

The namespace for EntityCountEvents is edge.entityCounts

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for EntityCountEvents is edge.entityCountsstring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
countsThemap of string -> number (int64)
errorThestring

LinkEvent

Namespace

The namespace for LinkEvents is fabric.links

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for LinkEvents is fabric.linksstring
event_typeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
link_idThestring
src_router_idThestring
dst_router_idThestring
protocolThestring
dial_addressThestring
costThenumber (int32)
connectionsThelist of LinkConnection

LinkConnection

Fields

FieldDescriptionType
idThestring
local_addrThestring
remote_addrThestring

MetricsEvent

Namespace

The namespace for MetricsEvents is metrics

Fields

FieldDescriptionType
metric_typeThestring
namespaceThe namespace is the event group. The namespace for MetricsEvents is metricsstring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
source_idThestring
source_entity_idThestring
versionThenumber (uint32)
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
metricThestring
metricsThemap of string -> object
tagsThemap of string -> string
source_event_idThestring

RouterEvent

Namespace

The namespace for RouterEvents is fabric.routers

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for RouterEvents is fabric.routersstring
event_typeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
router_idThestring
router_onlineTheboolean

SdkEvent

Namespace

The namespace for SdkEvents is sdk

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for SdkEvents is sdkstring
event_typeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
identity_idThestring

ServiceEvent

Namespace

The namespace for ServiceEvents is services

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for ServiceEvents is servicesstring
versionThenumber (uint32)
event_typeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
service_idThestring
terminator_idThestring
countThenumber (uint64)
interval_start_utcThenumber (int64)
interval_lengthThenumber (uint64)

SessionEvent

Namespace

The namespace for SessionEvents is edge.sessions

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for SessionEvents is edge.sessionsstring
event_typeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
session_typeThestring
idThestring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
tokenThestring
api_session_idThestring
identity_idThestring
service_idThestring

TerminatorEvent

Namespace

The namespace for TerminatorEvents is fabric.terminators

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for TerminatorEvents is fabric.terminatorsstring
event_typeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
timestampThe timestamp is the datetime that the event was generatedstring containing an RFC3339 formatted timestamp (example: "2024-10-02T12:17:39.501821249-04:00")
service_idThestring
terminator_idThestring
router_idThestring
host_idThestring
router_onlineTheboolean
precedenceThestring
static_costThenumber (uint16)
dynamic_costThenumber (uint16)
total_terminatorsThenumber (int)
usable_default_terminatorsThenumber (int)
usable_required_terminatorsThenumber (int)

UsageEvent

Namespace

The namespace for UsageEvents is fabric.usage

Fields

FieldDescriptionType
namespaceThe namespace is the event group. The namespace for UsageEvents is fabric.usagestring
versionThenumber (uint32)
event_typeThestring
event_src_idThe event_src_id is the identifier of the controller which emitted the eventstring
source_idThestring
circuit_idThestring
usageThenumber (uint64)
interval_start_utcThenumber (int64)
interval_lengthThenumber (uint64)
tagsThemap of string -> string