IMeasuresQuery
Service to query measures.
export interface IMeasuresQuery
Methods
Method | Description |
|---|---|
Starts the query. | |
Sets filter for the query. | |
Sets include for the query. | |
Sets meta include for the query. | |
(BETA) Selects which backend endpoint flavor to use when listing measures. Default method: “GET” | |
Sets origin for the query. | |
Sets starting page for the query. Backend WILL return no data if the page is greater than total number of pages. Default page: 0 | |
Sets number of measures to return per page. Default size: 50 | |
Sets sorting for the query. |
Method details
IMeasuresQuery.query()method
Starts the query.
query(): Promise<IMeasuresQueryResult>;
Returns
Promise<IMeasuresQueryResult>
promise of first page of the results
IMeasuresQuery.withFilter()method
Sets filter for the query.
withFilter(filter: IFilterBaseOptions): IMeasuresQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
filter | filter to apply |
Returns
measures query
IMeasuresQuery.withInclude()method
Sets include for the query.
withInclude(include: string[]): IMeasuresQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
include | string[] | include to apply |
Returns
measures query
IMeasuresQuery.withMetaInclude()method
Sets meta include for the query.
withMetaInclude(metaInclude: string[]): IMeasuresQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
metaInclude | string[] | meta include to apply |
Returns
measures query
IMeasuresQuery.withMethod()methodBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
Selects which backend endpoint flavor to use when listing measures. Default method: “GET”
withMethod(method: QueryMethod): IMeasuresQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
method | endpoint flavor to use (“GET” or “POST”) |
Returns
measures query
IMeasuresQuery.withOrigin()method
Sets origin for the query.
withOrigin(origin: ObjectOrigin | (string & {})): IMeasuresQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
origin | ObjectOrigin | (string & {}) | origin to apply. This is an open string union to allow platform-specific origin values in addition to the built-in literals. |
Returns
measures query
IMeasuresQuery.withPage()method
Sets starting page for the query. Backend WILL return no data if the page is greater than total number of pages. Default page: 0
withPage(page: number): IMeasuresQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
page | number | zero indexed, must be non-negative |
Returns
measures query
IMeasuresQuery.withSize()method
Sets number of measures to return per page. Default size: 50
withSize(size: number): IMeasuresQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
size | number | desired max number of measures per page must be a positive number |
Returns
measures query
IMeasuresQuery.withSorting()method
Sets sorting for the query.
withSorting(sort: string[]): IMeasuresQuery;
Parameters
Parameter | Type | Description |
|---|---|---|
sort | string[] | Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. |
Returns
measures query