Class SourceKeyProcessor
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.parser.AbstractNodeProcessor
org.sentrysoftware.metricshub.engine.connector.parser.SourceKeyProcessor
Processes source keys in a given JSON node structure. This processor modifies the input JSON node by
adding a "key" field to the source nodes. It is designed to work within a chain of node processors,
handling specific node transformations related to source keys.
The processor handles two specific parts of the node structure:
The processor handles two specific parts of the node structure:
- Pre-nodes: Adds a "key" to each source node under "pre" based on the source name. E.g. ${source::pre.source_1}.
- Monitor nodes: For specified monitor job types ("discovery", "collect", "simple"), adds a "key" to each source node under "monitors" based on the monitor name, job type, and source name. E.g. ${source::monitors.system.collect.sources.source_1}.
This class extends AbstractNodeProcessor, allowing for chain-of-responsibility pattern implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a SourceKeyProcessor without a next processor.Constructs a SourceKeyProcessor with a next processor. -
Method Summary
Methods inherited from class org.sentrysoftware.metricshub.engine.connector.parser.AbstractNodeProcessor
process
-
Constructor Details
-
SourceKeyProcessor
Constructs a SourceKeyProcessor with a next processor. -
SourceKeyProcessor
public SourceKeyProcessor()Constructs a SourceKeyProcessor without a next processor.
-