Versions Compared

Key

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

The Zapytanie POST request (see Search request) for search start must contain JSON of one of the following types:(zobacz: Żądanie wyszukiwania) dla wyszukiwania musi zawierać JSON w jednym z następujących typów:

  1. Konstruktor opisujący parametry dla zapytania bazy metadanych.

    Istnieją trzy logiczne części żądania wyszukiwania:

    1. Typ zapytania (queryType; zobacz: Typy zapytań i ich parametry)

    2. Parametry szczególne dla danego typu zapytania (figures, queryProperties, zobacz: Dodatkowe warunki)

    3. Dodatkowe warunki filtrowania (objectProperties, warunki; zobacz: Dodatkowe warunki)

  2. Bezpośrednie zapytanie w języku bazy metadanych

  3. 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 (figures, queryProperties, see Additional conditions)

    3. Additional filter conditions (objectProperties, conditions, see Additional conditions)

  4. 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 priorityJeśli JSON zapytania zawiera jednocześnie konstruktor oraz bezpośrednie zapytanie, bezpośrednie zapytanie posiada wyższy priorytet.


Note
titleImportant!

If the Jeśli body of POST request is empty, then the search will return all alarm intervalsPOST zapytania jest puste, operacja wyszukiwania zwróci wszystkie interwały alarmowe.


Info
titleNote

To perform search in Aby przeprowadzić wyszukiwanie korzystając z danych offline analytics data, use the following request, wykorzystaj następujące zapytanie:

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

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

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

Zapytanie to będzie obsłużone nawet w sytuacji, gdy archiwum Axxon Next jest usunięte, lecz metadane VMDA są zapisane.

ID obiektu musi zostać sprecyzowane bez prefiksu hosts/.

Prawidłowe zapytanieValid request: /search/vmda/SERVER-NAME/OfflineAnalytics...

Invalid requestNieprawidłowe zapytanie: /search/vmda/hosts/SERVER-NAME/OfflineAnalytics...

The search result is the following JSON responsePrzykładowe wyniki wyszukiwania:


Code Block
{
	"intervals" : [
		{
			"endTime" : "20210228T124302.313000",
			"positions" : [
				{ 
					"bottom" : 0.60026908397674561, 
					"left" : 0.42527302742004397, 
					"right" : 0.48125132560729983, 
					"top" : 0.50307014942169193 
				}
							],
			"startTime" : "20210228T124256.673000"
		},
		{
			"endTime" : "20210228T124259.513000",
			"positions" : [
				{ 
					"bottom" : 0.45109353065490726, 
					"left" : 0.41891927719116212, 
					"right" : 0.4565316200256348, 
					"top" : 0.34989043235778811 }
							],
				"startTime" : "20210228T124256.673000"
				}
					]
}

gdzie Intervals to ustalony zakres czasu, dla którego warunek wyszukiwania jest spełniony. where Intervals is a set of time intervals for which the search condition is fulfilled
.