Package eu.binjr.sources.netdata.api
Class Chart
java.lang.Object
eu.binjr.sources.netdata.api.Chart
Chart
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchartType(Chart.ChartTypeEnum chartType) dimensions(Map<String, ChartDimensions> dimensions) duration(BigDecimal duration) booleanfirstEntry(BigDecimal firstEntry) The chart type.The absolute path to get data values for this chart.An object containing all the chart dimensions available for the chart.The duration, in seconds, of the round robin database maintained by netdata.True when the chart is enabled.The family of the chart.The UNIX timestamp of the first entry (the oldest) in the round robin database.getGreen()Chart health green threshold.getId()The unique id of the chart.The UNIX timestamp of the latest entry in the round robin database.getName()The name of the chart.The relative priority of the chart.getRed()Chart health red threshold.getTitle()The title of the chart.getType()The type of the chart.getUnits()The unit of measurement for the values of all dimensions of the chart.The update frequency of this chart, in seconds.green(BigDecimal green) inthashCode()lastEntry(BigDecimal lastEntry) priority(BigDecimal priority) putDimensionsItem(String key, ChartDimensions dimensionsItem) red(BigDecimal red) voidsetChartType(Chart.ChartTypeEnum chartType) voidsetDataUrl(String dataUrl) voidsetDimensions(Map<String, ChartDimensions> dimensions) voidsetDuration(BigDecimal duration) voidsetEnabled(Boolean enabled) voidvoidsetFirstEntry(BigDecimal firstEntry) voidsetGreen(BigDecimal green) voidvoidsetLastEntry(BigDecimal lastEntry) voidvoidsetPriority(BigDecimal priority) voidsetRed(BigDecimal red) voidvoidvoidvoidsetUpdateEvery(BigDecimal updateEvery) toString()updateEvery(BigDecimal updateEvery)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_FAMILY
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_PRIORITY
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
SERIALIZED_NAME_UNITS
- See Also:
-
SERIALIZED_NAME_DATA_URL
- See Also:
-
SERIALIZED_NAME_CHART_TYPE
- See Also:
-
SERIALIZED_NAME_DURATION
- See Also:
-
SERIALIZED_NAME_FIRST_ENTRY
- See Also:
-
SERIALIZED_NAME_LAST_ENTRY
- See Also:
-
SERIALIZED_NAME_UPDATE_EVERY
- See Also:
-
SERIALIZED_NAME_DIMENSIONS
- See Also:
-
SERIALIZED_NAME_GREEN
- See Also:
-
SERIALIZED_NAME_RED
- See Also:
-
-
Constructor Details
-
Chart
public Chart()
-
-
Method Details
-
id
-
getId
The unique id of the chart.- Returns:
- id
-
setId
-
name
-
getName
The name of the chart.- Returns:
- name
-
setName
-
type
-
getType
The type of the chart. Types are not handled by netdata. You can use this field for anything you like.- Returns:
- type
-
setType
-
family
-
getFamily
The family of the chart. Families are not handled by netdata. You can use this field for anything you like.- Returns:
- family
-
setFamily
-
title
-
getTitle
The title of the chart.- Returns:
- title
-
setTitle
-
priority
-
getPriority
The relative priority of the chart. NetData does not care about priorities. This is just an indication of importance for the chart viewers to sort charts of higher priority (lower number) closer to the top. Priority sorting should only be used among charts of the same type or family.- Returns:
- priority
-
setPriority
-
enabled
-
getEnabled
True when the chart is enabled. Disabled charts do not currently collect values, but they may have historical values available.- Returns:
- enabled
-
setEnabled
-
units
-
getUnits
The unit of measurement for the values of all dimensions of the chart.- Returns:
- units
-
setUnits
-
dataUrl
-
getDataUrl
The absolute path to get data values for this chart. You are expected to use this path as the base when constructing the URL to fetch data values for this chart.- Returns:
- dataUrl
-
setDataUrl
-
chartType
-
getChartType
The chart type.- Returns:
- chartType
-
setChartType
-
duration
-
getDuration
The duration, in seconds, of the round robin database maintained by netdata.- Returns:
- duration
-
setDuration
-
firstEntry
-
getFirstEntry
The UNIX timestamp of the first entry (the oldest) in the round robin database.- Returns:
- firstEntry
-
setFirstEntry
-
lastEntry
-
getLastEntry
The UNIX timestamp of the latest entry in the round robin database.- Returns:
- lastEntry
-
setLastEntry
-
updateEvery
-
getUpdateEvery
The update frequency of this chart, in seconds. One value every this amount of time is kept in the round robin database.- Returns:
- updateEvery
-
setUpdateEvery
-
dimensions
-
putDimensionsItem
-
getDimensions
An object containing all the chart dimensions available for the chart. This is used as an indexed array. For each pair in the dictionary: the key is the id of the dimension and the value is a dictionary containing the name.- Returns:
- dimensions
-
setDimensions
-
green
-
getGreen
Chart health green threshold.- Returns:
- green
-
setGreen
-
red
-
getRed
Chart health red threshold.- Returns:
- red
-
setRed
-
equals
-
hashCode
public int hashCode() -
toString
-