Package org.gcube.common.health.api
Class Figure
java.lang.Object
org.gcube.common.health.api.Figure
One figure of a group of
Statistics: a number, or a distribution of numbers by name (e.g.
the requests by outcome), with the label a page shows. A page draws a number as a tile and a
distribution as a chart.-
Method Details
-
number
Creates a figure that is a number.- Parameters:
id- the identifier of the figure in its group, lowerCamelCaselabel- what a page writes next to it, e.g. "Requests since start"value- the number- Returns:
- the figure
-
distribution
Creates a figure that is a distribution of numbers by name, in the order given.- Parameters:
id- the identifier of the figure in its group, lowerCamelCaselabel- what a page writes next to it, e.g. "Requests by outcome"parts- the number of each part, by its name- Returns:
- the figure
-
getId
-
getLabel
-
getValue
- Returns:
- the value
-
equals
-
hashCode
public int hashCode() -
toString
-