Skip to content

Instantly share code, notes, and snippets.

@aneeshkp
Created February 16, 2018 18:51
Show Gist options
  • Save aneeshkp/f43da8d6aeeb9df088fdedabef93e248 to your computer and use it in GitHub Desktop.
Save aneeshkp/f43da8d6aeeb9df088fdedabef93e248 to your computer and use it in GitHub Desktop.
{
"mappings": {
"connectivity": {
"_all": {
"enabled": true
},
"properties": {
"labels": {
"type": "object",
"properties": {
"alertname": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"instance": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"connectivity": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"type": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"severity": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"service": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
}
}
},
"annotations": {
"type": "object",
"properties": {
"summary": {
"type": "string",
"index": "no"
},
"ves": {
"type": "object",
"properties": {
"domain": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"stateChange": {
"type": "string"
"index": "not_analyzed",
"doc_values": true
},
"eventId": {
"type": "string",
"index": "no"
},
"eventName": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"lastEpochMicrosec": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"priority": {
"type": "string",
"index": "no"
},
"reportingEntityName": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"sequence": {
"type": "integer",
"index": "no"
},
"sourceName": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"startEpochMicrosec": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"version": {
"type": "flaot",
"index": "no"
},
"stateChangeFields": {
"type": "object",
"properties": {
"newState": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"oldState": {
"type": "string",
"index": "not_analyzed",
"doc_values": true
},
"stateChangeFieldsVersion": {
"type": "float",
"index": "no"
}
}
}
}
}
}
},
"startsAt": {
"type": "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment