41 lines
966 B
Text
41 lines
966 B
Text
[[ inputs.file ]]
|
|
files = ["./testcases/enum/message.json"]
|
|
data_format = "avro"
|
|
|
|
avro_format = "json"
|
|
avro_measurement = "sensors"
|
|
avro_tags = ["name"]
|
|
avro_fields = ["value", "status"]
|
|
avro_field_separator = "_"
|
|
avro_schema = '''
|
|
{
|
|
"type": "record",
|
|
"name": "Metric",
|
|
"fields": [
|
|
{
|
|
"name": "name",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "value",
|
|
"type": [
|
|
"null",
|
|
"int",
|
|
"string"
|
|
]
|
|
},
|
|
{
|
|
"name": "status",
|
|
"type": {
|
|
"type": "enum",
|
|
"name": "Status",
|
|
"symbols": [
|
|
"UNKNOWN",
|
|
"OK",
|
|
"FAILURE"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
'''
|