> IT Service object
The following objects are directly related to the service API.
IT Service
The IT service object has the following properties.
| Property | Type | Description |
|---|---|---|
| serviceid | string | (readonly) ID of the IT service. |
| algorithm (required) |
integer | Algorithm used to calculate the state of the IT service.
Possible values: |
| name (required) |
string | Name of the IT service. |
| showsla (required) |
integer | Whether SLA should be calculated.
Possible values: |
| sortorder (required) |
integer | Position of the IT service used for sorting. |
| goodsla | float | Minimum acceptable SLA value. If the SLA drops lower, the IT service is considered to be in problem state.
Default: 99.9. |
| status | integer | (readonly) Whether the IT service is in OK or problem state.
If the IT service is in problem state, If the IT service is in OK state, |
| triggerid | string | Trigger associated with the IT service. Can only be set for IT services that don't have children. |
Service time
The service time object defines periods, when an IT service is scheduled to be up or down. It has the following properties.
| Property | Type | Description |
|---|---|---|
| timeid | string | (readonly) ID of the service time. |
| serviceid (required) |
string | ID of the IT service.
Cannot be updated. |
| ts_from (required) |
integer | Time when the service time comes into effect.
For onetime downtimes |
| ts_to (required) |
integer | Time when the service time ends.
For onetime uptimes |
| type (required) |
integer | Service time type.
Possible values: |
| note | string | Additional information about the service time. |
Service dependency
The service dependency object represents a dependency between IT services. It has the following properties.
| Property | Type | Description |
|---|---|---|
| linkid | string | (readonly) ID of the service dependency. |
| servicedownid (required) |
string | ID of the IT service, that a service depends on, that is, the child service. An IT service can have multiple children. |
| serviceupid (required) |
string | ID of the IT service, that is dependent on a service, that is, the parent service. An IT service can have multiple parents forming a directed graph. |
| soft (required) |
integer | Type of dependency between IT services.
Possible values: An IT service can have only one hard-dependent parent. This attribute has no effect on status or SLA calculation and is only used to create a core IT service tree. Additional parents can be added as soft dependencies forming a graph. An IT service can not be deleted if it has hard-dependent children. |
Service alarm
The service alarm objects represents an IT service's state change. It has the following properties.
| Property | Type | Description |
|---|---|---|
| servicealarmid | string | ID of the service alarm. |
| serviceid | string | ID of the IT service. |
| clock | timestamp | Time when the IT service state change has happened. |
| value | integer | Status of the IT service.
Refer the the IT service status property for a list of possible values. |
Data source: Zabbix