diff --git a/pom.xml b/pom.xml index 2c22f41..b0dfce4 100755 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ io.keyko.monitoring schemas jar - 0.2.3 + 0.2.4 Web3 Monitoring Schemas https://github.com/keyko-io/web3-monitoring-schemas diff --git a/src/main/resources/avro/TimeSeriesParameter.avsc b/src/main/resources/avro/TimeSeriesParameter.avsc new file mode 100644 index 0000000..598ff4f --- /dev/null +++ b/src/main/resources/avro/TimeSeriesParameter.avsc @@ -0,0 +1,19 @@ +{ + "namespace": "io.keyko.monitoring.schemas", + "type": "record", + "name": "TimeSeriesParameter", + "fields": [{ + "name": "value", + "type": ["null","string"] + }, + { + "name": "numberValue", + "type": "long", + "default": 0 + }, + { + "name": "label", + "type": ["null","string"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/avro/TimeSeriesRecord.avsc b/src/main/resources/avro/TimeSeriesRecord.avsc new file mode 100644 index 0000000..5c45b1d --- /dev/null +++ b/src/main/resources/avro/TimeSeriesRecord.avsc @@ -0,0 +1,65 @@ +{ + "namespace": "io.keyko.monitoring.schemas", + "type": "record", + "name": "TimeSeriesRecord", + "fields": [ + { + "name": "blockNumber", + "type": "long" + }, + { + "name": "timestamp", + "type": "long", + "logicalType": "timestamp-millis" + }, + { + "name": "methodName", + "type": "string" + }, + { + "name": "contractName", + "type": "string" + }, + { + "name": "param_0", + "type": ["null","TimeSeriesParameter"] + }, + { + "name": "param_1", + "type": ["null","TimeSeriesParameter"] + }, + { + "name": "param_2", + "type": ["null","TimeSeriesParameter"] + }, + { + "name": "param_3", + "type": ["null","TimeSeriesParameter"] + }, + { + "name": "param_4", + "type": ["null","TimeSeriesParameter"] + }, + { + "name": "param_5", + "type": ["null","TimeSeriesParameter"] + }, + { + "name": "param_6", + "type": ["null","TimeSeriesParameter"] + }, + { + "name": "param_7", + "type": ["null","TimeSeriesParameter"] + }, + { + "name": "param_8", + "type": ["null","TimeSeriesParameter"] + }, + { + "name": "param_9", + "type": ["null","TimeSeriesParameter"] + } + + ] +} \ No newline at end of file