Welcome to mirror list, hosted at ThFree Co, Russian Federation.

process_escalations.json « escalator « zabbix_server « tests - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 48cd0043321ed819034ca040d3e67accf1f71e47 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
[
	{
		"test_case": "case_1",
		"in": {
			"names": ["now", "nextcheck", "escalation_source"],
			"values": [1504082776, 1504082776, 2]
		},
		"out": {
			"names": ["return"],
			"values": [1]
		},
		"db_data": {
			"escalations": {
				"fields": [
					"escalationid", "actionid", "triggerid", "eventid", "r_eventid", "nextcheck", "esc_step", "status", "itemid", "acknowledgeid"
				],
				"rows": [
					[1, 1, 1, 1, 0, 1501594532, 0, 0, 1, 0]
				]
			},
			"actions": {
				"fields": [
					"actionid", "name", "status", "eventsource", "esc_period", "def_shortdata", "def_longdata", "r_shortdata", "r_longdata", "maintenance_mode", "ack_shortdata", "ack_longdata"
				],
				"rows": [
					[1, "action name", 0, 0, "60s", "msg subject", "msg subject", "msg body", 0, "ack subject", "ack body"],
					[2, "action name", 0, 0, "60s", "msg subject", "msg subject", "msg body", 0, "ack subject", "ack body"]
				]
			}
		},
		"functions": {
			"DCconfig_get_triggers_by_triggerids": {
				"out": {
					"params": ["triggerid", "status"],
					"values": [1, 0]
				}
			}
		}
	}
]