Methods
-
availableSourcesUrl(datumFilter, withNodeIds)
-
Generate a URL for finding the available source IDs for a node or metadata filter.
Parameters:
Name Type Description datumFiltermodule:domain~DatumFilter the search criteria, which can define
nodeId,startDate,endDate, andmetadataFilterproperties to limit the results to; ifnodeIdnot provided thenodeIdsproperty of this class will be usedwithNodeIdsboolean if
truethen force the response to include node IDs along with source IDs, instead of just source IDsReturns:
the URL
- Type
- string
-
datumFilter()
-
Get a new
module:domain~DatumFilterconfigured with properties of this instance.This will configure the following properties:
nodeIdssourceIds
Returns:
the filter
-
datumReadingUrl(datumFilter, readingType [, tolerance])
-
Generate a URL for querying for datum reading values.
The
datumFiltermust provide the required date(s) to use for the reading type. If the reading type only requires one date, then themodule:domain~DatumFilter#startDateormodule:domain~DatumFilter#endDatevalue should be provided.Parameters:
Name Type Argument Description datumFiltermodule:domain~DatumFilter the search criteria
readingTypemodule:domain~DatumReadingType the type of reading to find
tolerancestring <optional>
optional query tolerance to use
Returns:
the URL
- Type
- string
-
listDatumUrl(datumFilter [, sorts] [, pagination])
-
Generate a URL for querying for 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( [nodeId] [, sourceIds])
-
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.
Parameters:
Name Type Argument Description nodeIdnumber <optional>
a specific node ID to use; if not provided the
nodeIdproperty of this class will be usedsourceIdsArray.<string> <optional>
an array of source IDs to limit query to; if not provided the
sourceIdsproperty of this class will be usedReturns:
the URL
- Type
- string