Skip to content

Commit

Permalink
Merge pull request #11 from keyko-io/feature/add-log-record
Browse files Browse the repository at this point in the history
Add schemas for broadcast logs
  • Loading branch information
Enrique Ruiz authored Mar 17, 2020
2 parents 33154ec + c913124 commit 1b4c663
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ The AVRO implementation of the schemas can be found in the **src/main/resources/
* EventBlockRecord.avsc
* EventDetailsRecord.avsc
* EventRecord.avsc
* LogDetailsRecord.avsc
* LogRecord.avsc
* NumberParameter.avsc
* StringParameter.avsc
* TimeSeriesParameter.avsc
* TimeSeriesRecord.avsc
* TransactionDetailsRecord.avsc
* TransactionRecord.avsc
* ViewBlockRecord.avsc
Expand Down
2 changes: 1 addition & 1 deletion 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.2.5</version>
<version>0.2.6</version>
<name>Web3 Monitoring Schemas</name>
<url>https://github.com/keyko-io/web3-monitoring-schemas</url>

Expand Down
51 changes: 51 additions & 0 deletions src/main/resources/avro/LogDetailsRecord.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"namespace": "io.keyko.monitoring.schemas",
"type": "record",
"name": "LogDetailsRecord",
"fields": [
{
"name": "nodeName",
"type": "string"
},
{
"name": "data",
"type":"string"
},
{
"name": "topics",
"type": {
"type": "array",
"items": ["string"]
}
},
{
"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": "networkName",
"type": "string"
},
{
"name": "id",
"type": "string"
}
]
}
22 changes: 22 additions & 0 deletions src/main/resources/avro/LogRecord.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"namespace": "io.keyko.monitoring.schemas",
"type": "record",
"name": "LogRecord",
"fields": [{
"name": "id",
"type": "string"
},
{
"name": "type",
"type": "string"
},
{
"name": "details",
"type": "LogDetailsRecord"
},
{
"name": "retries",
"type": "int"
}
]
}

0 comments on commit 1b4c663

Please sign in to comment.