Methods
-
availableSourcesUrl( [locationId] [, startDate] [, endDate])
-
Generate a URL for finding the available source IDs for a location or metadata filter.
Parameters:
Name Type Argument Description locationIdnumber <optional>
a specific location ID to use; if not provided the
locationIdproperty of this class will be usedstartDateDate <optional>
a start date to limit the search to
endDateDate <optional>
an end date to limit the search to
Returns:
the URL
- Type
- string
-
listDatumUrl(datumFilter [, sorts] [, pagination])
-
Generate a URL for querying for location datum, in either raw or aggregate form.
If the
datumFilterhas anaggregatevalue set, then aggregate results will be returned by SolarNet.Parameters:
Name Type Argument Description datumFiltermodule:domain~DatumFilter the search criteria
sortsArray.<module:domain~SortDescriptor> <optional>
optional sort settings to use
paginationmodule:domain~Pagination <optional>
optional pagination settings to use
Returns:
the URL
- Type
- string
-
mostRecentDatumUrl(datumFilter [, sorts] [, pagination])
-
Generate a URL for querying for the most recent datum.
Parameters:
Name Type Argument Description datumFiltermodule:domain~DatumFilter the search criteria
sortsArray.<module:domain~SortDescriptor> <optional>
optional sort settings to use
paginationmodule:domain~Pagination <optional>
optional pagination settings to use
Returns:
the URL
- Type
- string
-
reportableIntervalUrl( [locationId] [, sourceId])
-
Generate a URL for the "reportable interval" for a location, optionally limited to a specific source ID.
If no source IDs are provided, then the reportable interval query will return an interval for all available sources.
Parameters:
Name Type Argument Description locationIdnumber <optional>
a specific location ID to use; if not provided the
locationIdproperty of this class will be usedsourceIdstring <optional>
a specific source ID to limit query to; if not provided the
sourceIdproperty of this class will be used; ifnullthesourceIdproperty of this class will be ignoredReturns:
the URL
- Type
- string