API.set_schedule_time#

API.set_schedule_time(model_id: int, timestamp: Union[datetime, str, int], raise_on_status: bool = True) Optional[Response]#

Set new scheduling time for all monitors of a model.

Parameters
model_id: int

model’s id (model[‘id’])

timestampt.Union[datetime, str, int]

The start time timestamp. Alerts of the model will be calculated from this timestamp and forward - int: Unix timestamp - str: timestamp in ISO8601 format - datetime: If no timezone info is provided on the datetime assumes local timezone.

raise_on_statusbool, optional

Raise exception is status code is not 200.

Returns
——-
Union[httpx.Response, Dict[str, Any]]

The response from the server