Class WmiCriterion
java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.Criterion
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.WqlCriterion
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.WmiCriterion
- All Implemented Interfaces:
Serializable
Represents a Windows Management Instrumentation (WMI) detection criterion.
This criterion allows the execution of WMI queries to identify resources on Windows systems.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWmiCriterion(String type, boolean forceSerialization, @NonNull String query, String namespace, String expectedResult, String errorMessage) Constructor to create an instance ofWmiCriterionusing a JSON creator. -
Method Summary
Modifier and TypeMethodDescriptionaccept(ICriterionProcessor criterionProcessor) Accepts the given criterion processor for evaluation.copy()Creates a copy of the WqlCriterion instance.toString()
-
Constructor Details
-
WmiCriterion
public WmiCriterion(String type, boolean forceSerialization, @NonNull @NonNull String query, String namespace, String expectedResult, String errorMessage) Constructor to create an instance ofWmiCriterionusing a JSON creator.- Parameters:
type- Type of the criterion.forceSerialization- Flag indicating whether serialization should be forced.query- The WMI query associated with the criterion.namespace- The namespace for the WMI query.expectedResult- The expected result for the criterion.errorMessage- The error message associated with the criterion.
-
-
Method Details
-
copy
Description copied from class:WqlCriterionCreates a copy of the WqlCriterion instance.- Specified by:
copyin classWqlCriterion- Returns:
- A new instance of the WqlCriterion with the same attributes.
-
toString
- Overrides:
toStringin classWqlCriterion
-
accept
Description copied from class:CriterionAccepts the given criterion processor for evaluation.
-