Methods
availableSourcesUrl(datumFilter, withNodeIds) → {string}
Generate a URL for finding the available source IDs for a node or metadata filter.
Name | Type | Description |
---|---|---|
datumFilter | module:domain~DatumFilter | the search criteria, which can define |
withNodeIds | boolean | if |
the URL
- Type:
- string
datumFilter() → {module:domain~DatumFilter}
Get a new module:domain~DatumFilter configured with properties of this instance.
This will configure the following properties:
nodeIds
sourceIds
the filter
datumReadingUrl(datumFilter, readingType, toleranceopt, sortsopt, paginationopt) → {string}
Generate a URL for querying for datum reading values.
The datumFilter
must provide the required date(s) to use for the reading type. If the reading type only requires one date, then the module:domain~DatumFilter#startDate or module:domain~DatumFilter#endDate value should be provided.
Name | Type | Attributes | Description |
---|---|---|---|
datumFilter | module:domain~DatumFilter | the search criteria | |
readingType | module:domain~DatumReadingType | the type of reading to find | |
tolerance | string | <optional> | optional query tolerance to use |
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
listDatumUrl(datumFilter, sortsopt, paginationopt) → {string}
Generate a URL for querying for 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(nodeIdopt, sourceIdsopt) → {string}
Generate a URL for the "reportable interval" for a node, optionally limited to a specific set of source IDs.
If no source IDs are provided, then the reportable interval query will return an interval for all available sources.
Name | Type | Attributes | Description |
---|---|---|---|
nodeId | number | <optional> | a specific node ID to use; if not provided the |
sourceIds | Array.<string> | <optional> | an array of source IDs to limit query to; if not provided the |
the URL
- Type:
- string
streamDatumUrl(datumFilter, sortsopt, paginationopt) → {string}
Generate a URL for querying for stream 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
streamReadingUrl(datumFilter, readingType, toleranceopt, sortsopt, paginationopt) → {string}
Generate a URL for querying for stream reading values.
The datumFilter
must provide the required date(s) to use for the reading type. If the reading type only requires one date, then the module:domain~DatumFilter#startDate or module:domain~DatumFilter#endDate value should be provided.
Name | Type | Attributes | Description |
---|---|---|---|
datumFilter | module:domain~DatumFilter | the search criteria | |
readingType | module:domain~DatumReadingType | the type of reading to find | |
tolerance | string | <optional> | optional query tolerance to use |
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