Ejemplo n.º 1
0
 private static List <Func <object> > CatCommandsAsync(ElasticClient elastic)
 {
     return(new List <Func <object> >
     {
         () => elastic.CatAliasesAsync(new CatAliasesRequest()),
         () => elastic.CatAllocationAsync(new CatAllocationRequest()),
         () => elastic.CatCountAsync(new CatCountRequest()),
         () => elastic.CatFielddataAsync(new CatFielddataRequest()),
         () => elastic.CatHealthAsync(new CatHealthRequest()),
         () => elastic.CatHelpAsync(new CatHelpRequest()),
         () => elastic.CatIndicesAsync(new CatIndicesRequest()),
         () => elastic.CatMasterAsync(new CatMasterRequest()),
         () => elastic.CatNodeAttributesAsync(new CatNodeAttributesRequest()),
         () => elastic.CatNodesAsync(new CatNodesRequest()),
         () => elastic.CatPendingTasksAsync(new CatPendingTasksRequest()),
         () => elastic.CatPluginsAsync(new CatPluginsRequest()),
         () => elastic.CatRecoveryAsync(new CatRecoveryRequest()),
         () => elastic.CatRepositoriesAsync(new CatRepositoriesRequest()),
         () => elastic.CatSegmentsAsync(new CatSegmentsRequest()),
         () => elastic.CatShardsAsync(new CatShardsRequest()),
         // CatSnapshots is failing with a JSON deserialization error.
         // It might be a bug in the client or an incompatibility between client
         // and server versions.
         // () => elastic.CatSnapshotsAsync(new CatSnapshotsRequest()),
         () => elastic.CatTasksAsync(new CatTasksRequest()),
         () => elastic.CatTemplatesAsync(new CatTemplatesRequest()),
         () => elastic.CatThreadPoolAsync(new CatThreadPoolRequest()),
     });
 }
Ejemplo n.º 2
0
 private static List <Func <object> > CatCommandsAsync(ElasticClient elastic)
 {
     return(new List <Func <object> >
     {
         () => elastic.CatAliasesAsync(new CatAliasesRequest()),
         () => elastic.CatAllocationAsync(new CatAllocationRequest()),
         () => elastic.CatCountAsync(new CatCountRequest()),
         () => elastic.CatFielddataAsync(new CatFielddataRequest()),
         () => elastic.CatHealthAsync(new CatHealthRequest()),
         () => elastic.CatHelpAsync(new CatHelpRequest()),
         () => elastic.CatIndicesAsync(new CatIndicesRequest()),
         () => elastic.CatMasterAsync(new CatMasterRequest()),
         () => elastic.CatNodeAttributesAsync(new CatNodeAttributesRequest()),
         () => elastic.CatNodesAsync(new CatNodesRequest()),
         () => elastic.CatPendingTasksAsync(new CatPendingTasksRequest()),
         () => elastic.CatPluginsAsync(new CatPluginsRequest()),
         () => elastic.CatRecoveryAsync(new CatRecoveryRequest()),
         () => elastic.CatRepositoriesAsync(new CatRepositoriesRequest()),
         () => elastic.CatSegmentsAsync(new CatSegmentsRequest()),
         () => elastic.CatShardsAsync(new CatShardsRequest()),
         () => elastic.CatSnapshotsAsync(new CatSnapshotsRequest()),
         () => elastic.CatTasksAsync(new CatTasksRequest()),
         () => elastic.CatTemplatesAsync(new CatTemplatesRequest()),
         () => elastic.CatThreadPoolAsync(new CatThreadPoolRequest()),
     });
 }