# Zabbix Documentation 5.0

manual:api:reference:service:object

# Differences

This shows you the differences between two versions of the page.

 manual:api:reference:service:object [2021/01/28 15:46]127.0.0.1 external edit manual:api:reference:service:object [2021/03/15 14:32] (current)marinagen [ZBX-18430] updated examples in ts_to and ts_from Both sides previous revision Previous revision 2021/03/15 14:32 marinagen [ZBX-18430] updated examples in ts_to and ts_from 2021/01/28 15:46 external edit2020/08/21 10:36 martins-v internal link to data types (ZBX-17160)2020/02/24 07:33 martins-v fixing typo2020/02/05 09:32 marinagen grammar fix2019/10/07 06:35 external edit2017/02/15 13:50 iivs renamed IT service to Service2016/09/28 07:26 external edit2015/10/28 12:33 vitalijs.cemeris [IT Service] 2014/09/30 12:54 external edit2014/09/25 14:43 sasha Page moved from 2.4:manual:api:reference:service:object to manual:api:reference:service:object 2021/03/15 14:32 marinagen [ZBX-18430] updated examples in ts_to and ts_from 2021/01/28 15:46 external edit2020/08/21 10:36 martins-v internal link to data types (ZBX-17160)2020/02/24 07:33 martins-v fixing typo2020/02/05 09:32 marinagen grammar fix2019/10/07 06:35 external edit2017/02/15 13:50 iivs renamed IT service to Service2016/09/28 07:26 external edit2015/10/28 12:33 vitalijs.cemeris [IT Service] 2014/09/30 12:54 external edit2014/09/25 14:43 sasha Page moved from 2.4:manual:api:reference:service:object to manual:api:reference:service:object Line 23: Line 23: | timeid ​ | string | //​(readonly)//​ ID of the service time. | | timeid ​ | string | //​(readonly)//​ ID of the service time. | | **serviceid** \\ (required) ​ | string | ID of the service. \\ \\ Cannot be updated. | | **serviceid** \\ (required) ​ | string | ID of the service. \\ \\ Cannot be updated. | - | **ts_from** \\ (required) | integer | Time when the service time comes into effect. \\ \\ For onetime downtimes ''​ts_from''​ must be set as a Unix timestamp, for other types - as a specific time in a week, in seconds, for example, 90000 for Tue, 2:00 AM. | + | **ts_from** \\ (required) | integer | Time when the service time comes into effect. \\ \\ For onetime downtimes ''​ts_from''​ must be set as a Unix timestamp, for other types - as a specific time in a week, in seconds, for example, 90000 for Mon, 1:00 AM. | - | **ts_to** \\ (required) | integer | Time when the service time ends. \\ \\ For onetime uptimes ''​ts_to''​ must be set as a Unix timestamp, for other types - as a specific time in a week, in seconds, for example, 90000 for Tue, 2:00 AM. | + | **ts_to** \\ (required) | integer | Time when the service time ends. \\ \\ For onetime uptimes ''​ts_to''​ must be set as a Unix timestamp, for other types - as a specific time in a week, in seconds, for example, 90000 for Mon, 1:00 AM. | | **type** \\ (required) | integer | Service time type. \\ \\ Possible values: \\ 0 - planned uptime, repeated every week; \\ 1 - planned downtime, repeated every week; \\ 2 - one-time downtime. | | **type** \\ (required) | integer | Service time type. \\ \\ Possible values: \\ 0 - planned uptime, repeated every week; \\ 1 - planned downtime, repeated every week; \\ 2 - one-time downtime. | | note | string | Additional information about the service time. | | note | string | Additional information about the service time. |