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
nameattribute 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
BrokerQuerywas created in the TOM database.modified (datetime) – The time at which this
BrokerQuerywas changed in the TOM database.last_run (datetime) – The time at which this
BrokerQuerywas 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