forked from zabbix-tools/go-zabbix
-
Notifications
You must be signed in to change notification settings - Fork 2
/
select_query.go
29 lines (25 loc) · 1.01 KB
/
select_query.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package zabbix
// SelectQuery represents the query data type for a Zabbix API call.
// Wherever a SelectQuery is required, one of SelectFields, SelectExtendedOutput
// or SelectCount should be given.
//
// See: https://www.zabbix.com/documentation/2.2/manual/api/reference_commentary#data_types
type SelectQuery interface{}
// SelectFields may be given as a SelectQuery in search parameters where each
// member string is the name of a JSON field which should be returned for each
// search result.
//
// For example, for a Host search query:
//
// query := SelectFields{ "hostid", "host", "name" }
//
type SelectFields []string
const (
// SelectExtendedOutput may be given as a SelectQuery in search parameters
// to return all available feilds for all objects in the search results.
SelectExtendedOutput = "extend"
// SelectCount may be given as a SelectQuery for supported search parameters
// to return only the number of available search results, instead of the
// search result details.
SelectCount = "count"
)