client.predictions.get_schedules

A method of the Predictions endpoint.

get_schedules(id: int) Response

Show the prediction schedule

API URL: GET /predictions/{id}/schedules

import civis
client = civis.APIClient()
response = client.predictions.get_schedules(...)
Parameters:
idint

ID of the prediction associated with this schedule.

Returns:
civis.Response
  • idint

    ID of the prediction associated with this schedule.

  • schedulecivis.Response
    • scheduledbool

      If the item is scheduled.

    • scheduled_daysList[int]

      Days of the week, based on numeric value starting at 0 for Sunday. Mutually exclusive with scheduledDaysOfMonth

    • scheduled_hoursList[int]

      Hours of the day it is scheduled on.

    • scheduled_minutesList[int]

      Minutes of the day it is scheduled on.

    • scheduled_runs_per_hourint

      Deprecated in favor of scheduled minutes.

    • scheduled_days_of_monthList[int]

      Days of the month it is scheduled on, mutually exclusive with scheduledDays.

  • score_on_model_buildbool

    Whether the prediction will run after a rebuild of the associated model.