Class ServiceCriterion
java.lang.Object
org.metricshub.maven.plugin.connector.producer.model.criteria.AbstractCriterion
org.metricshub.maven.plugin.connector.producer.model.criteria.ServiceCriterion
Represents a criterion for filtering based on a service presence.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceCriterion(com.fasterxml.jackson.databind.JsonNode criterion) Constructs ServiceCriterion with the specified JSON criterion. -
Method Summary
-
Constructor Details
-
ServiceCriterion
public ServiceCriterion(com.fasterxml.jackson.databind.JsonNode criterion) Constructs ServiceCriterion with the specified JSON criterion.- Parameters:
criterion- The JSON criterion for service check.
-
-
Method Details
-
getName
Gets the name from the current service criterion, ornullif not present.- Returns:
- The service name from the criterion, or
nullif not present.
-
produce
public void produce(org.apache.maven.doxia.sink.Sink sink) Produces the criterion to the specified sink.- Specified by:
producein classAbstractCriterion- Parameters:
sink- The sink to produce the criterion to.
-