Get statistic value

Get
/v2/identity/users/me/statistics

Compute and return the statistic value.
According to the selected statistic resource you must have the specific permissions (e.g. READ_THING).

Security
HTTP
Type bearer
Header parameters
X-Servitly-Tenant
stringRequired

The name of the target tenant (e.g. acme).

Query parameters
resource
string

The resource from which to retrieve the items to be used to calculate the statistic (action, alert, customer, location, partner, thing, user, work_session).

Valid values[ "action", "alert", "customer", "location", "partner", "thing", "user", "work_session" ]
Examplething
periodStart
integer (int64)

Condition to get time-based items after a specific timestamp.

Example1578438000000
periodEnd
integer (int64)

Condition to get time-based items before a specific timestamp.

Example1578438000000
aggregation
string

The function used to aggregate data (AVG, COUNT, MAX, MIN, SUM). Except for COUNT, other functions require also a property to aggregate.

Valid values[ "AVG", "COUNT", "MAX", "MIN", "SUM" ]
ExampleSUM
property
string

The object property whose values must be aggregated.

Exampleproperty.prop_1
thingId
string

Condition on thing id.

Exampleabcd1234
locationId
string

Condition on location id.

Exampleabcd1234
customerId
string

Condition on customer id.

Exampleabcd1234
groupBy
string

The property used to group statistic results.

ExampleproductModel.name
limit
integer

The maximum number of results to return.

Example10
sortDirection
string

The direction used to sort statistic results by value (ASC, DESC).

Valid values[ "ASC", "DESC" ]
ExampleDESC
activationType
string

Define whether to include events that are still active, or have been activated in a period.

Valid values[ "ACTIVE", "ACTIVATED" ]
ExampleACTIVATED
averagedBy
string

The item count used to average the statistic result values.

Valid values[ "thingCount" ]
ExamplethingCount
PROPERTY_NAME
string

Condition on object property (PREDICATES beginsWith, eq, neq, gt, gte, lt, lte, like, notLike, isEmpty, isNotEmpty).

Exampleproperties.propABC=eq;XYZ
Responses
200

Successful operation.

Array of object
object
value
number

The statistic value.

Example100
category
string

The statistic aggregation category.

ExampleCategory-1
401

User not authenticated.

object
message
string

The error response.

ExampleUser not authenticated
403

User not authorized.

object
message
string

The error response.

ExampleUser not authorized
404

Resource was not found.

object
message
string

The error response.

ExampleResource not found
429

API call rate limit exeeded.

object
message
string

The error response.

ExampleAPI call rate limit exeeded
500

Internal server error.

object
message
string

The error response.

ExampleInternal Server Error