Models

class tom_alerts.models.BrokerQuery(*args, **kwargs)

Class representing a query to a broker in a TOM

Parameters
  • name (str) – The user-given name of this query.

  • broker (str) – The name of the broker–this should come directly from the name attribute of the broker class representing the broker.

  • parameters (dict) – Parameters for this BrokerQuery, stored as a JSON string.

  • created (datetime) – The time at which this BrokerQuery was created in the TOM database.

  • modified (datetime) – The time at which this BrokerQuery was changed in the TOM database.

  • last_run (datetime) – The time at which this BrokerQuery was last run against its corresponding broker.