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

public class CommandLineCriterion 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

    • CommandLineCriterion

      public CommandLineCriterion(String type, boolean forceSerialization, @NonNull @NonNull String commandLine, String errorMessage, String expectedResult, Boolean executeLocally, Long timeout)
      Builder for constructing instances of CommandLineCriterion.
      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