Models#

class tom_dataservices.models.DataServiceQuery(*args, **kwargs)[source]#

Class representing a query to a Data Service in a TOM

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

  • data_service – The name of the data service–this should come directly from the name attribute of the DataService class representing the data service.

  • parameters (json) – Parameters for this DataServiceQuery, stored as a JSON string.

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

  • modified – The time at which this DataServiceQuery was changed in the TOM database.

  • last_run – The time at which this DataServiceQuery was last run against its corresponding query service.

exception DoesNotExist#
exception MultipleObjectsReturned#