manual:api:reference:service:object

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
manual:api:reference:service:object [2020/08/21 09:15]
martins-v internal link to data types (ZBX-17160)
manual:api:reference:service:object [2021/03/15 14:34] (current)
marinagen [ZBX-18430] updated examples in ts_to and ts_from
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 IT service. \\ \\ Cannot be updated. | | **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_from''​ must be set as a Unix timestamp, for other types - as a specific time in a week, in seconds, for example, 90000 for Tue2: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 Mon1: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 Tue2: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 Mon1: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. |