C++ YT Wrapper
C++ library for working with YT clusters
Loading...
Searching...
No Matches
NYT::TListOperationsResult Struct Reference

Response for NYT::IClient::ListOperations command. More...

#include <operation.h>

Public Attributes

TVector< TOperationAttributes > Operations
 Found operations' attributes.
bool Incomplete
 Whether some operations were not returned due to NYT::TListOperationsOptions::Limit.
Counters for different filter.

If counters were requested (NYT::TListOperationsOptions::IncludeCounters is true) the maps contain the number of operations found for each pool, user, state and type. NOTE: 1) Counters ignore CursorTime and CursorDirection, they always are collected in the whole [FromTime, ToTime) interval. 2) Each next counter in the sequence [pool, user, state, type, with_failed_jobs] takes into account all the previous filters (i.e. if you set User filter to "some-user" type counts describe only operations with user "some-user").

TMaybe< THashMap< TString, i64 > > PoolCounts
 Number of operations for each pool.
TMaybe< THashMap< TString, i64 > > UserCounts
 Number of operations for each user (subject to previous filters).
TMaybe< THashMap< TString, i64 > > StateCounts
 Number of operations for each state (subject to previous filters).
TMaybe< THashMap< EOperationType, i64 > > TypeCounts
 Number of operations for each type (subject to previous filters).
TMaybe< i64 > WithFailedJobsCount
 Number of operations having failed jobs (subject to all previous filters).

Detailed Description

Response for NYT::IClient::ListOperations command.

Member Data Documentation

◆ Incomplete

bool NYT::TListOperationsResult::Incomplete

Whether some operations were not returned due to NYT::TListOperationsOptions::Limit.

Incomplete == true means that not all operations satisfying filters were returned (limit exceeded) and you need to repeat the request with new NYT::TListOperationsOptions::CursorTime (e.g. CursorTime == *Operations.back().StartTime, but don't forget to remove the duplicates).


The documentation for this struct was generated from the following file: