github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/nomad/structs/eval.go (about) 1 package structs 2 3 const ( 4 // EvalDeleteRPCMethod is the RPC method for batch deleting evaluations 5 // using their IDs. 6 // 7 // Args: EvalDeleteRequest 8 // Reply: EvalDeleteResponse 9 EvalDeleteRPCMethod = "Eval.Delete" 10 ) 11 12 // EvalDeleteRequest is the request object used when operators are manually 13 // deleting evaluations. The number of evaluation IDs within the request must 14 // not be greater than MaxEvalIDsPerDeleteRequest. 15 type EvalDeleteRequest struct { 16 EvalIDs []string 17 18 // Filter specifies the go-bexpr filter expression to be used for deleting a 19 // set of evaluations that matches the filter 20 Filter string 21 22 WriteRequest 23 } 24 25 // EvalDeleteResponse is the response object when one or more evaluation are 26 // deleted manually by an operator. 27 type EvalDeleteResponse struct { 28 Count int // how many Evaluations were safe to delete and/or matched the filter 29 WriteMeta 30 }