Zabbix Documentation 1.8

Action (draft)

Class containing methods for operations with Actions

Method Description
get Actions data
getById all Action data from DB by Action ID
add actions
update actions
addConditions conditions
addOperations operations
delete actions

Methods

1 get

Available since version: 1.8
Parameters:
^Parameter^Type^Optional^Description^Details^

itemids array
hostids array
groupids array
actionids array
applicationids array
status array
templated_items array
editable array
extendoutput array
count array
pattern array
limit array
order array

Returns: array|int item data as array or false if error

2 getById

Available since version: 1.8
Parameters:
^Parameter^Type^Optional^Description^Details^

actionid string

Returns: array|boolean

3 add

Available since version: 1.8
Parameters: multidimensional array with actions data
^Parameter^Type^Optional^Description^Details^

expression array
description array
type array Yes
priority array Yes
status array Yes
comments array Yes
url array Yes

Returns: boolean

4 update

Available since version: 1.8
Parameters: multidimensional array with actions data
^Parameter^Type^Optional^Description^Details^

actionid array
expression array
description array
type array Yes
priority array Yes
status array Yes
comments array Yes
url array Yes

Returns: boolean

5 addConditions

Available since version: 1.8
Parameters: multidimensional array with conditions data
^Parameter^Type^Optional^Description^Details^

actionid array
type array
value array
operator array

Returns: boolean

6 addOperations

Available since version: 1.8
Parameters: multidimensional array with operations data
^Parameter^Type^Optional^Description^Details^

actionid array
operationtype array
object array
objectid array
shortdata array
longdata array
esc_period array
esc_step_from array
esc_step_to array
default_msg array
evaltype array
mediatypeid array
opconditions array

Returns: boolean

7 delete

Available since version: 1.8
Parameters:
^Parameter^Type^Optional^Description^Details^ Returns: boolean

Examples