Calculate Real-time Metrics
These actions provide ability to build real-time intelligence and CEP capabilities using Siddhi.
Calculate Real-time Metrics Actions
Get / GetRT
Field
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Calculate Real-time Metrics Get/GetRT action eventMeta fields",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"domain": {
"type": "string",
"definition": "Name of the Siddhi table to query on",
"example": "session_latest",
"default": null
},
"inputElement": {
"type": "string",
"definition": "Json path for the input in request event payload",
"example": "basket",
"default": null
},
"outputElement": {
"type": "string",
"definition": "Json path for the output in response event payload",
"example": "basket",
"default": null
}
}
}
}
}Parameter
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Calculate Real-time Metrics Get/GetRT action eventMeta.parameters",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"parameters": {
"type": "object",
"properties": {
"outputPattern": {
"type": "string",
"definition": "JMESPath pattern to apply on data output, before returning response",
"example": "{totalPrice:basket.totalPrice}",
"default": null
},
"dataflow": {
"type": "string",
"definition": "Id of the dataflow from which data will be received",
"example": "session_dna",
"default": null
},
"idField": {
"type": "string",
"definition": "Name of the id field to query on Siddhi table",
"example": "sessionid",
"default": "id"
},
"idPath": {
"type": "string",
"definition": "Json path for the id field in input element",
"example": "session.id",
"default": "id"
}
}
}
}
}
}
}GetQuery / GetQueryRT
Field
Definition
Example
Default
Parameter
Definition
Example
Default
Last updated


