Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anelson-vidscale/ff3d0f4cbda15b41c3f1db3a49d2724b to your computer and use it in GitHub Desktop.
Save anelson-vidscale/ff3d0f4cbda15b41c3f1db3a49d2724b to your computer and use it in GitHub Desktop.
"aggregations" : {
"by-key" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [
{
"key" : "storage",
"doc_count" : 3,
"my-toppest" : {
"hits" : {
"total" : 3,
"max_score" : 1.0,
"hits" : [
{
"_index" : "ledger",
"_type" : "log",
"_id" : "1",
"_score" : 1.0,
"_source" : {
"alert_key" : "storage",
"severity" : "critical",
"@timestamp" : "2019-11-01T06:04:10.000000+00:00",
"start_epoch" : 1572588250,
"jira" : "OST-1",
"state" : "fire"
}
}
]
}
},
"firing-only" : {
"doc_count" : 2,
"max-firing-only" : {
"value" : 1.572691852E12,
"value_as_string" : "2019-11-02T10:50:52.000Z"
}
},
"resolve-only" : {
"doc_count" : 1,
"max-resolve-only" : {
"value" : 1.57269185E12,
"value_as_string" : "2019-11-02T10:50:50.000Z"
}
}
},
{
"key" : "cpu",
"doc_count" : 1,
"my-toppest" : {
"hits" : {
"total" : 1,
"max_score" : 1.0,
"hits" : [
{
"_index" : "ledger",
"_type" : "log",
"_id" : "2",
"_score" : 1.0,
"_source" : {
"alert_key" : "cpu",
"severity" : "high",
"@timestamp" : "2019-11-01T06:04:10.000000+00:00",
"start_epoch" : 1572588250,
"jira" : "OST-2",
"state" : "fire"
}
}
]
}
},
"firing-only" : {
"doc_count" : 1,
"max-firing-only" : {
"value" : 1.57258825E12,
"value_as_string" : "2019-11-01T06:04:10.000Z"
}
},
"resolve-only" : {
"doc_count" : 0,
"max-resolve-only" : {
"value" : null
}
}
},
{
"key" : "disk",
"doc_count" : 1,
"my-toppest" : {
"hits" : {
"total" : 1,
"max_score" : 1.0,
"hits" : [
{
"_index" : "ledger",
"_type" : "log",
"_id" : "4",
"_score" : 1.0,
"_source" : {
"alert_key" : "disk",
"severity" : "low",
"@timestamp" : "2019-11-01T06:04:10.000000+00:00",
"start_epoch" : 1572588250,
"jira" : "OST-4",
"state" : "fire"
}
}
]
}
},
"firing-only" : {
"doc_count" : 1,
"max-firing-only" : {
"value" : 1.57258825E12,
"value_as_string" : "2019-11-01T06:04:10.000Z"
}
},
"resolve-only" : {
"doc_count" : 0,
"max-resolve-only" : {
"value" : null
}
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment