public class AlertExecutionCommand extends AgentCommand
AlertExecutionCommand is used to instruct an agent to run an
alert immediately and return the result in the next heartbeat. This does not
affect any existing jobs and does cause the job for the executed alert to
reset its interval.AgentCommand.AgentCommandType| Constructor and Description |
|---|
AlertExecutionCommand(String clusterName,
String hostName,
AlertDefinition definition)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AgentCommand.AgentCommandType |
getCommandType() |
setCommandType, toStringpublic AlertExecutionCommand(String clusterName, String hostName, AlertDefinition definition)
clusterName - the name of the cluster (not null).hostName - the name of the host (not null).definition - the definition to run (not null).public AgentCommand.AgentCommandType getCommandType()
getCommandType in class AgentCommandCopyright © 2022 Apache Software Foundation. All rights reserved.