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 (str) – 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.

property parameters_as_dict

Converts the query parameters to a dictionary.

Returns

Dictionary representation of query parameters

Return type

dict