Class NetdataAdapterPreferences
java.lang.Object
eu.binjr.common.preferences.ReloadableItemStore<eu.binjr.common.preferences.ObservablePreference<?>>
eu.binjr.common.preferences.ObservablePreferenceFactory
eu.binjr.core.data.adapters.DataAdapterPreferences
eu.binjr.sources.netdata.adapters.NetdataAdapterPreferences
public class NetdataAdapterPreferences
extends eu.binjr.core.data.adapters.DataAdapterPreferences
Defines the preferences associated with the Netdata adapter.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.binjr.common.preferences.ReloadableItemStore
eu.binjr.common.preferences.ReloadableItemStore.Reloadable -
Field Summary
FieldsModifier and TypeFieldDescriptioneu.binjr.common.preferences.ObservablePreference<Boolean>Set to true to disable server-side down-sampling (aka "grouping").eu.binjr.common.preferences.ObservablePreference<Boolean>Set to true to disable Netdata alignment of all series on the same time-frame.final eu.binjr.common.preferences.ObservablePreference<Number>The amount of time in seconds to read before the specified time intervalfinal eu.binjr.common.preferences.ObservablePreference<Number>The amount of time in seconds to read after the specified time intervaleu.binjr.common.preferences.ObservablePreference<GroupingMethod>Netdata's grouping (i.e.eu.binjr.common.preferences.ObservablePreference<Number>The grouping number of seconds.eu.binjr.common.preferences.ObservablePreference<Number>The maximum number of samples to recover from Netdata.Fields inherited from class eu.binjr.core.data.adapters.DataAdapterPreferences
enabledFields inherited from class eu.binjr.common.preferences.ReloadableItemStore
backingStore, storedItems -
Constructor Summary
ConstructorsConstructorDescriptionNetdataAdapterPreferences(Class<? extends eu.binjr.core.data.adapters.DataAdapter<?>> dataAdapterClass) Initialize a new instance of theNetdataAdapterPreferencesclass associated to aDataAdapterinstance. -
Method Summary
Methods inherited from class eu.binjr.common.preferences.ObservablePreferenceFactory
booleanPreference, doublePreference, enumPreference, getByName, integerPreference, localDateTimePreference, longPreference, obfuscatedStringPreference, objectPreference, pathPreference, stringPreference, toString, uriPreference, zoneDateTimePreferenceMethods inherited from class eu.binjr.common.preferences.ReloadableItemStore
exportToFile, getAll, getByName, importFromFile, reload, reset
-
Field Details
-
disableServerSideDownsampling
Set to true to disable server-side down-sampling (aka "grouping"). Client-side down-sampling will still be applied. -
disableTimeFrameAlignment
Set to true to disable Netdata alignment of all series on the same time-frame. -
groupingMethod
Netdata's grouping (i.e. down-sampling) method: If multiple collected values are to be grouped in order to return fewer points, this parameters defines the method of grouping. -
groupingTime
The grouping number of seconds. This is used in conjunction with group=average to change the units of metrics (ie when the data is per-second, setting gtime=60 will turn them to per-minute). -
fetchReadBehindSeconds
The amount of time in seconds to read after the specified time interval -
fetchReadAheadSeconds
The amount of time in seconds to read before the specified time interval -
maxSamplesAllowed
The maximum number of samples to recover from Netdata. 0 means every available samples will be returned.
-
-
Constructor Details
-
NetdataAdapterPreferences
public NetdataAdapterPreferences(Class<? extends eu.binjr.core.data.adapters.DataAdapter<?>> dataAdapterClass) Initialize a new instance of theNetdataAdapterPreferencesclass associated to aDataAdapterinstance.- Parameters:
dataAdapterClass- the associatedDataAdapter
-