Methods
availableSourcesUrl(locationIdopt, startDateopt, endDateopt) → {string}
Generate a URL for finding the available source IDs for a location or metadata filter.
Name | Type | Attributes | Description |
---|---|---|---|
locationId | number | <optional> | a specific location ID to use; if not provided the |
startDate | Date | <optional> | a start date to limit the search to |
endDate | Date | <optional> | an end date to limit the search to |
the URL
- Type:
- string
listDatumUrl(datumFilter, sortsopt, paginationopt) → {string}
Generate a URL for querying for location datum, in either raw or aggregate form.
If the datumFilter
has an aggregate
value set, then aggregate results will be returned by SolarNet.
Name | Type | Attributes | Description |
---|---|---|---|
datumFilter | module:domain~DatumFilter | the search criteria | |
sorts | Array.<module:domain~SortDescriptor> | <optional> | optional sort settings to use |
pagination | module:domain~Pagination | <optional> | optional pagination settings to use |
the URL
- Type:
- string
mostRecentDatumUrl(datumFilter, sortsopt, paginationopt) → {string}
Generate a URL for querying for the most recent datum.
Name | Type | Attributes | Description |
---|---|---|---|
datumFilter | module:domain~DatumFilter | the search criteria | |
sorts | Array.<module:domain~SortDescriptor> | <optional> | optional sort settings to use |
pagination | module:domain~Pagination | <optional> | optional pagination settings to use |
the URL
- Type:
- string
reportableIntervalUrl(locationIdopt, sourceIdopt) → {string}
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.
Name | Type | Attributes | Description |
---|---|---|---|
locationId | number | <optional> | a specific location ID to use; if not provided the |
sourceId | string | <optional> | a specific source ID to limit query to; if not provided the |
the URL
- Type:
- string