cfme.intelligence.reports.schedules module

Module handling schedules

class cfme.intelligence.reports.schedules.Schedule(name, description, filter, active=None, timer=None, send_email=None)[source]

Bases: utils.update.Updateable, utils.pretty.Pretty

Represents a schedule in Intelligence/Reports/Schedules.

Parameters:
  • name – Schedule name.
  • description – Schedule description.
  • filter – 3-tuple with filter selection (see the UI).
  • active – Whether is this schedule active.
  • run – Specifies how often this schedule runs. It can be either string “Once”, or a tuple, which maps to the two selects in UI (“Hourly”, “Every hour”)...
  • time_zone – Specify time zone.
  • start_date – Specify the start date.
  • start_time – Specify the start time either as a string (“0:15”) or tuple (“0”, “15”)
  • send_email – If specifies, turns on e-mail sending. Can be string, or list or set.
create(cancel=False)[source]
delete(cancel=False)[source]
classmethod delete_schedules(*schedules, **kwargs)[source]

Select and delete specified schedules from VMDB.

Parameters:
  • *schedules – Schedules to delete. Can be objects or strings.
  • cancel – (kwarg) Whether to cancel the deletion (Default: False)

Raises: NameError when some of the schedules were not found.

classmethod disable_schedules(*schedules)[source]

Select and disable specified schedules.

Parameters:*schedules – Schedules to disable. Can be objects or strings.

Raises: NameError when some of the schedules were not found.

classmethod enable_schedules(*schedules)[source]

Select and enable specified schedules.

Parameters:*schedules – Schedules to enable. Can be objects or strings.

Raises: NameError when some of the schedules were not found.

exists[source]
form = <cfme.web_ui.Form fields=[('name', <cfme.web_ui.Input _names=('name',), _use_id=False>), ('description', <cfme.web_ui.Input _names=('description',), _use_id=False>), ('active', <cfme.web_ui.Input _names=('enabled',), _use_id=False>), ('filter', <cfme.web_ui.ShowingInputs locators=None, min_values=None>), ('timer', <cfme.intelligence.reports.ui_elements.Timer object at 0x7f4d227ba690>), ('send_email', <cfme.web_ui.Input _names=('send_email_cb',), _use_id=False>), ('emails', <cfme.web_ui.EmailSelectForm >)]>
pretty_attrs = ['name', 'filter']
queue(wait_for_finish=False)[source]

Queue this schedule.

Parameters:wait_for_finish – If True, then this function blocks until the action is finished.
classmethod queue_schedules(*schedules)[source]

Select and queue specified schedules.

Parameters:*schedules – Schedules to queue. Can be objects or strings.

Raises: NameError when some of the schedules were not found.

table_item(item)[source]

Works both up- and downstream.

I think this should be incorporated into InfoBlock somehow. Currently there is the fieldset issue.

update(updates)[source]
cfme.intelligence.reports.schedules.get_sch_name(sch)[source]

Enables us using both string and schedule object