Is it possible to add in the Rules a Trigger like "Detect miners name"? So I could create a rule to detect the "Mining State" and if a specific miner like T-Rex is running and execute some actions because of this.
And maybe is it possible to also detect a running task? So i could do a rule to kill it, like killing a task in the Task-Manager. If this is possible, maybe you also can do a taskkill action, so we dont have to do it with the Run Executable action.
Thanks and all the best to you!
public class TriggerScript : IUserScriptTrigger
{
private ContextProvider Context = ScriptManager.Context;
public ListCheck(List minerList)
{
ListresultList = new List ();
foreach(MinerBase miner in minerList)
{
if (miner.ValidateStatusUpdate() && miner.StatusUpdate.ConfigStatus.MinerDescription != null && miner.StatusUpdate.ConfigStatus.MinerDescription.Contains("cpuminer-opt"))
resultList.Add(miner);
}
return resultList;
}
}
I've noted your request about an action for terminating a process as well.