Vald Flush APIs

Overview

Flush Service is responsible for removing all vectors that are indexed and uncommitted in the vald-agent.

service Flush {

  rpc Flush(payload.v1.Flush.Request) returns (payload.v1.Info.Index.Count) {}

}

Flush RPC

Flush RPC is the method to remove all vectors.

Input

  • the scheme of payload.v1.Flush.Request

    message Flush {
        message Request {
        }
    }
    
    • Flush.Request

      empty

Output

  • the scheme of payload.v1.Info.Index.Count

    message Object {
        message Info_Index_Count {
          uint32 stored = 0;
          uint32 uncommitted = 0;
          bool indexing = false;
          bool saving = false;
        }
    }
    

    Object.Info_Index_Count

    fieldtypelabeldesc.
    storeduint32count of indices.
    uncommitteduint32count of uncommitted indices.
    indexingboolthe state indicating whether vald-agent pods is present in the indexing.
    savingboolthe state indicating whether vald-agent pods is present in the saving.

Status Code

codedesc.
0OK
1CANCELLED
3INVALID_ARGUMENT
4DEADLINE_EXCEEDED
5NOT_FOUND
13INTERNAL

See also