public class BasicAnnotation implements Annotation
A basic information of annotation.
It's recommended to use this class as delegate for other concrete annotation (e.g. class ZabbixAnnotation
).
class ZabbixAnnotation
Constructor and Description |
---|
BasicAnnotation(java.lang.String name,
boolean enabled,
boolean hidden,
Color color,
Datasource datasource)
A basic information of annotation.
|
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
toJson()
returns object as JSON.
|
public BasicAnnotation(java.lang.String name, boolean enabled, boolean hidden, Color color, Datasource datasource)
A basic information of annotation.
It's recommended to use this class as delegate for other concrete annotation (e.g. class ZabbixAnnotation
).
name
- the name of annotation that will be displayed on dashboard screenenabled
- display annotation marks on graphs or not. If true then annotation marks will be displayed ongraphshidden
- display annotation toggle on dashboard screen or not. If true then annotation toggle will behidden from dashboard screencolor
- the color of annotation marksdatasource
- the datasource that used for querying data to display annotation marksclass ZabbixAnnotation