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