I have a object defined as
{
"query" :
{
/* snip */
},
"aggs":
{
"times" :
{
"date_histogram" :
{
"field" : "@timestamp",
"interval" : "15m",
"format" : "HH:mm",
"min_doc_count" : 0
}
}
}
};
How can I tell whether interval
in aggs.times.date_histogram
exists, so that I can manipulate it?
Clarification: I can not be sure that any of the parent objects to interval
exist.