github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/storage/enginepb/rocksdb.proto (about)

     1  // Copyright 2016 The Cockroach Authors.
     2  //
     3  // Use of this software is governed by the Business Source License
     4  // included in the file licenses/BSL.txt.
     5  //
     6  // As of the Change Date specified in that file, in accordance with
     7  // the Business Source License, use of this software will be governed
     8  // by the Apache License, Version 2.0, included in the file
     9  // licenses/APL.txt.
    10  
    11  syntax = "proto3";
    12  package cockroach.storage.enginepb;
    13  option go_package = "enginepb";
    14  
    15  import "util/hlc/timestamp.proto";
    16  import "gogoproto/gogo.proto";
    17  
    18  // SSTUserProperties contains the user-added properties of a single sstable.
    19  message SSTUserProperties {
    20      string path = 1;
    21      // ts_min is the minimum mvcc timestamp present in this sstable.
    22      util.hlc.Timestamp ts_min = 2;
    23      // ts_max is the maximum mvcc timestamp present in this sstable.
    24      util.hlc.Timestamp ts_max = 3;
    25  }
    26  
    27  // SSTUserPropertiesCollection contains the user-added properties of every
    28  // sstable in a RocksDB instance.
    29  message SSTUserPropertiesCollection {
    30      repeated SSTUserProperties sst = 1 [(gogoproto.nullable) = false];
    31      string error = 2;
    32  }
    33  
    34  // HistogramData holds the relevant metrics returned by a call to
    35  // `rocksdb::Statistics::histogramData()`.
    36  message HistogramData {
    37    double mean = 1;
    38    double p50 = 2;
    39    double p95 = 3;
    40    double p99 = 4;
    41    double max = 5;
    42    uint64 count = 6;
    43    uint64 sum = 7;
    44  }
    45  
    46  // TickersAndHistograms holds maps from ticker/histogram name to its value for
    47  // all stats measured by a `rocksdb::Statistics` object.
    48  message TickersAndHistograms {
    49    map<string, uint64> tickers = 1;
    50    map<string, HistogramData> histograms = 2 [(gogoproto.nullable) = false];
    51  }