java.lang.Object
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.Criterion
org.sentrysoftware.metricshub.engine.connector.model.identity.criterion.OsCommandCriterion
All Implemented Interfaces:
Serializable

public class OsCommandCriterion extends Criterion
Represents an operating system command detection criterion. This criterion allows the execution of operating system commands and checks the result against an expected value.
See Also:
  • Constructor Details

    • OsCommandCriterion

      public OsCommandCriterion(String type, boolean forceSerialization, @NonNull @NonNull String commandLine, String errorMessage, String expectedResult, Boolean executeLocally, Long timeout)
      Builder for constructing instances of OsCommandCriterion.
      Parameters:
      type - Type of the criterion.
      forceSerialization - Flag indicating whether serialization should be forced.
      commandLine - The command line to be executed.
      errorMessage - An optional error message.
      expectedResult - The expected result of the command.
      executeLocally - Indicates whether to execute the command locally.
      timeout - The timeout for command execution.
  • Method Details