Package org.gcube.common.health.api
Annotation Interface StatisticsGroup
Marks a group of public statistics of an application, a class implementing
Statistics:
SmartGears finds every such class of the application, computes each group on its own schedule, once
or in each Context (perContext()), and serves the last results without a token at
/smartgears/<application>/statistics.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintWhere the group comes among the groups of the application: the groups are given by their order, then by their identifier.booleanWhether the group is computed in each Context of the node, each time with the secret of that Context, and published as the total; otherwise it is computed once, with the secret of the container in the Context it publishes from.
-
Element Details
-
order
int orderWhere the group comes among the groups of the application: the groups are given by their order, then by their identifier.- Returns:
- the order,
0unless the group says otherwise
- Default:
- 0
-
perContext
boolean perContextWhether the group is computed in each Context of the node, each time with the secret of that Context, and published as the total; otherwise it is computed once, with the secret of the container in the Context it publishes from. In a group computed per Context, the figures of the same id are summed: numbers, and the numbers by name of distributions, states and values; of instants the latest is kept. Averages, medians and maxima do not belong to such a group.- Returns:
truefor a group computed per Context,falseunless the group says otherwise
- Default:
- false
-