Skip to content

/AWS1/CL_IOT=>GETSTATISTICS()

About GetStatistics

Returns the count, average, sum, minimum, maximum, sum of squares, variance, and standard deviation for the specified aggregated field. If the aggregation field is of type String, only the count statistic is returned.

Requires permission to access the GetStatistics action.

Method Signature

IMPORTING

Required arguments:

IV_QUERYSTRING TYPE /AWS1/IOTQUERYSTRING /AWS1/IOTQUERYSTRING

The query used to search. You can specify "*" for the query string to get the count of all indexed things in your Amazon Web Services account.

Optional arguments:

IV_INDEXNAME TYPE /AWS1/IOTINDEXNAME /AWS1/IOTINDEXNAME

The name of the index to search. The default value is AWS_Things.

IV_AGGREGATIONFIELD TYPE /AWS1/IOTAGGREGATIONFIELD /AWS1/IOTAGGREGATIONFIELD

The aggregation field name.

IV_QUERYVERSION TYPE /AWS1/IOTQUERYVERSION /AWS1/IOTQUERYVERSION

The version of the query used to search.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_IOTGETSTATSRESPONSE /AWS1/CL_IOTGETSTATSRESPONSE