Aggregation Schema

AVRO schema for Aggregation event

{
  "type" : "record",
  "name" : "Aggregation",
  "fields" : [ {
    "name" : "METRIC",
    "type" : "string"
  }, {
    "name" : "GROUPNAME",
    "type" : "string"
  }, {
    "name" : "RULEID",
    "type" : "string"
  }, {
    "name" : "RULENAME",
    "type" : "string"
  }, {
    "name" : "STARTTIME",
    "type" : "long"
  }, {
    "name" : "ENDTIME",
    "type" : "long"
  }, {
    "name" : "SERVERTIME",
    "type" : "long"
  }, {
    "name" : "VALUE",
    "type" : "long"
  }, {
    "name" : "DETAILS",
    "type" : [ "null", {
      "type" : "array",
      "items" : {
        "type" : "record",
        "name" : "Aggregation_details",
        "namespace" : "com.nokia.impact.ids",
        "fields" : [ {
          "name" : "key",
          "type" : [ "null", "string" ],
          "default" : null
        }, {
          "name" : "value",
          "type" : [ "null", "string" ],
          "default" : null
        } ],
        "connect.internal.type" : "MapEntry"
      },
      "connect.name" : "com.nokia.impact.ids.Aggregation_details"
    } ],
    "default" : null
  }, {
    "name" : "ACTIONS",
    "type" : {
      "type" : "array",
      "items" : [ "null", "string" ]
    }
  } ],
  "connect.version" : 1,
  "connect.name" : "Aggregation"
}
Table 1. Aggregation Schema Descriptions
Field Name Description Field Type
GROUPNAME Specifies the group to which the device pertains to. string
METRIC Specifies the field for which the data is being aggregated for. string
SERVERTIME Specifies the windowend time when the aggregation rule emits the data (number of milliseconds since 1970). long
STARTTIME Species the start time of the rule aggregation window. long
ENDTIME Species the end time of the rule aggregation window. long
VALUE Specifies the values for the metric for which data is being aggregated for. long
DETAILS Specifies the details of the devices parameters on which the rule is applied. map
ACTIONS

specifies what action should be taken from the alert event.

Decide the persistence to cassandra/ S3/ or any other types of actions.

array
RULEID Specifies the generated unique uuid represented as Id of the Rule. string
RULENAME Specifies the name of the rule created. string