Skip to content

Commit

Permalink
Merge pull request #14 from keyko-io/feature/flat-event-record
Browse files Browse the repository at this point in the history
Add flat event record until the fix in the kafka connector
  • Loading branch information
Enrique Ruiz authored Apr 6, 2020
2 parents 662367d + 89e655c commit 45f8004
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ The AVRO implementation of the schemas can be found in the **src/main/resources/
* BlockRecord.avsc
* EventBlockRecord.avsc
* EventRecord.avsc
* FlatEventRecord.avsc
* LogRecord.avsc
* LogRecordTopicsFlattened.avsc
* NumberParameter.avsc
Expand Down
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>io.keyko.monitoring</groupId>
<artifactId>schemas</artifactId>
<packaging>jar</packaging>
<version>0.3.1</version>
<version>0.3.2</version>
<name>Web3 Monitoring Schemas</name>
<url>https://github.com/keyko-io/web3-monitoring-schemas</url>

Expand Down Expand Up @@ -101,7 +101,8 @@
<imports>
<import>${project.basedir}/src/main/resources/avro/NumberParameter.avsc</import>
<import>${project.basedir}/src/main/resources/avro/StringParameter.avsc</import>
<import>${project.basedir}/src/main/resources/avro/EventsRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/EventRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/FlatEventRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/ViewRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/BlockRecord.avsc</import>
<import>${project.basedir}/src/main/resources/avro/LogRecordRecord.avsc</import>
Expand Down
208 changes: 208 additions & 0 deletions src/main/resources/avro/FlatEventRecord.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
{
"namespace": "io.keyko.monitoring.schemas",
"type": "record",
"name": "FlatEventRecord",
"fields": [
{
"name": "id",
"type": "string"
},
{
"name": "name",
"type": "string"
},
{
"name": "contractName",
"type": "string",
"default": ""
},
{
"name": "filterId",
"type": "string"
},
{
"name": "nodeName",
"type": "string"
},
{
"name": "indexed_param_name_0",
"type": "string",
"default": ""
},
{
"name": "indexed_param_type_0",
"type": "string",
"default": ""
},
{
"name": "indexed_param_value_0",
"type": "string",
"default": ""
},
{
"name": "indexed_param_name_1",
"type": "string",
"default": ""
},
{
"name": "indexed_param_type_1",
"type": "string",
"default": ""
},
{
"name": "indexed_param_value_1",
"type": "string",
"default": ""
},
{
"name": "indexed_param_name_2",
"type": "string",
"default": ""
},
{
"name": "indexed_param_type_2",
"type": "string",
"default": ""
},
{
"name": "indexed_param_value_2",
"type": "string",
"default": ""
},
{
"name": "indexed_param_name_3",
"type": "string",
"default": ""
},
{
"name": "indexed_param_type_3",
"type": "string",
"default": ""
},
{
"name": "indexed_param_value_3",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_name_0",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_type_0",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_value_0",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_name_1",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_type_1",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_value_1",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_name_2",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_type_2",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_value_2",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_name_3",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_type_3",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_value_3",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_name_4",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_type_4",
"type": "string",
"default": ""
},
{
"name": "non_indexed_param_value_4",
"type": "string",
"default": ""
},
{
"name": "transactionHash",
"type": "string"
},
{
"name": "logIndex",
"type": "string",
"java-class": "java.math.BigInteger"
},
{
"name": "blockNumber",
"type": "long"
},
{
"name": "blockHash",
"type": "string"
},
{
"name": "address",
"type": "string"
},
{
"name": "status",
"type": {
"name": "FlatContractEventStatus",
"type": "enum",
"symbols": [
"UNCONFIRMED",
"CONFIRMED",
"INVALIDATED"
]
}
},
{
"name": "eventSpecificationSignature",
"type": "string"
},
{
"name": "networkName",
"type": "string"
},
{
"name": "retries",
"type": "int"
}
]
}

0 comments on commit 45f8004

Please sign in to comment.