The POST request (see Search request) for search start must contain JSON of one of the following types:
Constructor describing parameters for metadata database request.
There are three logical parts of the search request:
- Request type (
queryType, see Types of requests and their parameters
) - Parameters specific for the specified type of request (
figures
,queryProperties, see Additional conditions
) - Additional filter conditions (
objectProperties
,conditions, see Additional conditions
)
- Request type (
Direct request in metadata database language.
{ "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;" }
Important!
If input JSON has both the constructor and the direct request sections, the direct request has higher priority.
Note
To perform search in offline analytics data, use the following request:
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:
{ "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.