All Downloads are FREE. Search and download functionalities are using the official Maven repository.

freemarker.healthcheck.logs.ftl Maven / Gradle / Ivy

There is a newer version: 4.5.2
Show newest version
<#ftl output_format="JSON">
{
  "from": ${(query.page() - 1) * query.size()},
  "size": ${query.size()},
  "query" : {
    "bool" : {
<#if query.transition()?has_content && query.transition() = true>
            "must":{
                "term":{
                   "transition": true
                }
            },

        "filter" : [
        {
          "term" : {
            "api": "${query.root().id()}"
          }
        }
<#if query.from()?has_content>
        ,
        {
          "range": {
            "@timestamp": {
              "from": ${query.from()},
              "to": ${query.to()},
              "include_lower": true,
              "include_upper": true
            }
          }
        }

        ]
    }
  },
  "sort" : [
    {
      "@timestamp" : {
        "order" : "desc"
      }
    }
  ]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy