Class GrafanaMetricsAnnotator
java.lang.Object
io.nosqlbench.engine.clients.grafana.annotator.GrafanaMetricsAnnotator
- All Implemented Interfaces:
Annotator,NBCanConfigure,NBConfigModelProvider,NBConfigurable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidImplementors should take care to ensure that this can be called after initial construction without unexpected interactions between construction parameters and configuration parameters.Implement this method by returning an instance ofConfigModel.voidrecordAnnotation(Annotation annotation) Submit an annotation to some type of annotation store, logging or eventing mechanism.
-
Constructor Details
-
GrafanaMetricsAnnotator
public GrafanaMetricsAnnotator()
-
-
Method Details
-
recordAnnotation
Description copied from interface:AnnotatorSubmit an annotation to some type of annotation store, logging or eventing mechanism. Implementations of this service are responsible for mapping the scenario and labels into appropriate key data, and the details in to a native payload. The least surprising and most obvious mapping should be used in each case.
For details on constructing a useful annotation to submit to this service, see
Annotation.newBuilder()- Specified by:
recordAnnotationin interfaceAnnotator
-
applyConfig
Description copied from interface:NBConfigurableImplementors should take care to ensure that this can be called after initial construction without unexpected interactions between construction parameters and configuration parameters.- Specified by:
applyConfigin interfaceNBCanConfigure- Specified by:
applyConfigin interfaceNBConfigurable- Parameters:
cfg- The configuration data to be applied to a new instance
-
getConfigModel
Description copied from interface:NBConfigurableImplement this method by returning an instance ofConfigModel. Any configuration which is provided to theNBConfigurable.applyConfig(NBConfiguration)method will be validated through this model. A configuration model is required in order to build a validated configuration from source data provided by a user.- Specified by:
getConfigModelin interfaceNBConfigModelProvider- Specified by:
getConfigModelin interfaceNBConfigurable- Returns:
- A valid configuration model for the implementing class
-