Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The POST request (see Search request) for search start must contain JSON of one of the following types:

  1. Constructor describing parameters for metadata database request.

    There are three logical parts of the search request:

    1. Request type (queryType, see Types of requests and their parameters)
    2. Parameters specific for the specified type of request (figuresqueryProperties, see Additional conditions)
    3. Additional filter conditions (objectPropertiesconditions, see Additional conditions)
  2. Direct request in metadata database language.

    Code Block
    {
     "query": "figure fZone=polygon(0.4647676,0.3973333,0.7946027,0.5493333,0.8650675,0.7946666,0.4647676,0.7946666); figure fDir=(ellipses(-10000, -10000, 10000, 10000) -        ellipses(-0, -0, 0, 0));set r = group[obj=vmda_object] { res = or(fZone((obj.left + obj.right) / 2, obj.bottom)) }; result = r.res;"
    }


Note
titleImportant!

If input JSON has both the constructor and the direct request sections, the direct request has higher priority.


Info
titleNote

To perform search in offline analytics data, use the following request:

Code Block
POST /search/vmda/SERVER-NAME/OfflineAnalytics.c95ad5a581094845995ee28a7f097797/SourceEndpoint.vmda:AVDetector:1/past/future

This request will be performed even if C-Werk archive is removed, but VMDA metadata is saved.

Object ID is to be specified without the hosts/ prefix.

Valid request: /search/vmda/SERVER-NAME/OfflineAnalytics...

Invalid request: /search/vmda/hosts/SERVER-NAME/OfflineAnalytics...

The search result is the following JSON response:

Code Block
{
   "intervals" : [
      {
         "endTime" : "20160919T064640.430000",
         "startTime" : "20160919T064636.390000"
      },
      {
         "endTime" : "20160919T073204.113000",
         "startTime" : "20160919T073201.513000"
      }
}

 where Intervals is a set of time intervals for which the search condition is fulfilled.