blob: 79c67e94a8042dfe6168c2556d48228d34e593b1 [file] [log] [blame]
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package kudu;
option java_package = "org.apache.kudu";
// Used to present the maintenance manager's internal state.
message MaintenanceManagerStatusPB {
message MaintenanceOpPB {
required string name = 1;
// Number of times this operation is currently running.
required uint32 running = 2;
required bool runnable = 3;
required uint64 ram_anchored_bytes = 4;
required int64 logs_retained_bytes = 5;
required double perf_improvement = 6;
}
message CompletedOpPB {
required string name = 1;
required int32 duration_millis = 2;
// Number of seconds since this operation started.
required int32 secs_since_start = 3;
}
// The next operation that would run.
optional MaintenanceOpPB best_op = 1;
// List of all the operations.
repeated MaintenanceOpPB registered_operations = 2;
// This list isn't in order of anything. Can contain the same operation mutiple times.
repeated CompletedOpPB completed_operations = 3;
}