AdvancedDataInquiry Class Reference
| Inherits from | DefaultConfiguration : NSObject |
|---|---|
| Declared in | AdvancedDataInquiry.h |
Overview
Advanced Data Inquiry allows querying measurement data (values, location and attributes) for a single account using advanced filtering and sorting.
– initAdvancedDataInquiryWithDefaults
Creates custom instance of the class AdvancedDataEnquiry
- (id)initAdvancedDataInquiryWithDefaultsReturn Value
an instance of the class AdvancedDataEnquiry
Declared In
AdvancedDataInquiry.h
– addGatewayId:
Add a gateway id that is requested for the data in the report.
- (void)addGatewayId:(NSString *)gatewayIdParameters
gatewayId |
The gateway identifier for gateway data to be included in the report. |
|---|
Declared In
AdvancedDataInquiry.h
– addDeviceId:
Add a device id that is requested for the data in the report.
- (void)addDeviceId:(NSString *)deviceIdParameters
deviceId |
The device identifier for device data to be included in the report. |
|---|
Declared In
AdvancedDataInquiry.h
– addComponentId:
Add a component id that is requested for the data in the report.
- (void)addComponentId:(NSString *)componentIdParameters
componentId |
The component identifier for component data to be included in the report. |
|---|
Declared In
AdvancedDataInquiry.h
– setStartTimestamp:
Set the start time for query data in be included in the report.
- (void)setStartTimestamp:(long)timestampParameters
timestamp |
time in milliseconds since epoch time. |
|---|
Declared In
AdvancedDataInquiry.h
– setEndTimestamp:
Set the end time for query data in be included in the report.
- (void)setEndTimestamp:(long)timestampParameters
timestamp |
time in milliseconds since epoch time. |
|---|
Declared In
AdvancedDataInquiry.h
– addReturnedMeasureAttributes:
Add a requested attribute to a list of attributes that will be return for each measurement.
- (void)addReturnedMeasureAttributes:(NSString *)attributeParameters
attribute |
The attribute to add to the list of attributes that will be part of the request. |
|---|
Declared In
AdvancedDataInquiry.h
– setShowMeasureLocation:
Request for location (lat, long, alt) as part of each returned measurement.
- (void)setShowMeasureLocation:(BOOL)measureLocationParameters
measureLocation |
if true returns location. |
|---|
Declared In
AdvancedDataInquiry.h
– addDevCompAttributeFilter:
Append device comp attribute filter to list. Filters by device and/or component attributes.
- (void)addDevCompAttributeFilter:(AttributeFilter *)attributeFilterParameters
attributeFilter |
The filter to filtered by |
|---|
Declared In
AdvancedDataInquiry.h
– addMeasurementAttributeFilter:
Append measurement attribute filter to list. Filters by measurement attributes.
- (void)addMeasurementAttributeFilter:(AttributeFilter *)attributeFilterParameters
attributeFilter |
The filter to filtered by |
|---|
Declared In
AdvancedDataInquiry.h
– addValueFilter:
Append avalue filter to list. Filters by measurement values.
- (void)addValueFilter:(AttributeFilter *)attributeFilterParameters
attributeFilter |
The filter to filtered by |
|---|
Declared In
AdvancedDataInquiry.h
– setComponentRowLimit:
Limits the number of records returned for each component in the report.
- (void)setComponentRowLimit:(NSInteger)rowLimitParameters
rowLimit |
the number of row that will be returned. |
|---|
Declared In
AdvancedDataInquiry.h
– setCountOnly:
Setting to true will return the number of rows that would have returned from this report.
- (void)setCountOnly:(BOOL)countOnlyParameters
countOnly |
true will return number of rows. |
|---|
Declared In
AdvancedDataInquiry.h
– addSortInfo:WithValue:
Append sort key-value pair to list for query to be sorted by
- (void)addSortInfo:(NSString *)name WithValue:(NSString *)valueParameters
name |
The name of the key |
|---|---|
value |
The value of the key |
Declared In
AdvancedDataInquiry.h
– request
Starts a request for the report.
- (CloudResponse *)requestReturn Value
For async model, return CloudResponse which wraps true if the request of REST call is valid; otherwise false. The actual result from the REST call is return asynchronously as part HttpResponseDelegatee of DefaultConfiguration. For synch model, return CloudResponse which wraps HTTP return code and response.
Declared In
AdvancedDataInquiry.h