stats_pb.rb 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Generated by the protocol buffer compiler. DO NOT EDIT!
  2. # source: opencensus/proto/stats/v1/stats.proto
  3. require 'google/protobuf'
  4. require 'google/protobuf/timestamp_pb'
  5. Google::Protobuf::DescriptorPool.generated_pool.build do
  6. add_message "opencensus.proto.stats.v1.Tag" do
  7. optional :key, :string, 1
  8. optional :value, :string, 2
  9. end
  10. add_message "opencensus.proto.stats.v1.Measure" do
  11. optional :name, :string, 1
  12. optional :description, :string, 2
  13. optional :unit, :string, 3
  14. optional :type, :enum, 4, "opencensus.proto.stats.v1.Measure.Type"
  15. end
  16. add_enum "opencensus.proto.stats.v1.Measure.Type" do
  17. value :TYPE_UNSPECIFIED, 0
  18. value :INT64, 1
  19. value :DOUBLE, 2
  20. end
  21. add_message "opencensus.proto.stats.v1.View" do
  22. optional :name, :string, 1
  23. optional :description, :string, 2
  24. optional :measure, :message, 3, "opencensus.proto.stats.v1.Measure"
  25. repeated :columns, :string, 4
  26. oneof :aggregation do
  27. optional :count_aggregation, :message, 5, "opencensus.proto.stats.v1.CountAggregation"
  28. optional :sum_aggregation, :message, 6, "opencensus.proto.stats.v1.SumAggregation"
  29. optional :last_value_aggregation, :message, 7, "opencensus.proto.stats.v1.LastValueAggregation"
  30. optional :distribution_aggregation, :message, 8, "opencensus.proto.stats.v1.DistributionAggregation"
  31. end
  32. end
  33. add_message "opencensus.proto.stats.v1.CountAggregation" do
  34. end
  35. add_message "opencensus.proto.stats.v1.SumAggregation" do
  36. end
  37. add_message "opencensus.proto.stats.v1.LastValueAggregation" do
  38. end
  39. add_message "opencensus.proto.stats.v1.DistributionAggregation" do
  40. repeated :bucket_bounds, :double, 1
  41. end
  42. add_message "opencensus.proto.stats.v1.Measurement" do
  43. repeated :tags, :message, 1, "opencensus.proto.stats.v1.Tag"
  44. optional :measure_name, :string, 2
  45. optional :time, :message, 5, "google.protobuf.Timestamp"
  46. oneof :value do
  47. optional :double_value, :double, 3
  48. optional :int_value, :int64, 4
  49. end
  50. end
  51. end
  52. module OpenCensus
  53. module Proto
  54. module Stats
  55. module V1
  56. Tag = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Tag").msgclass
  57. Measure = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Measure").msgclass
  58. Measure::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Measure.Type").enummodule
  59. View = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.View").msgclass
  60. CountAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.CountAggregation").msgclass
  61. SumAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.SumAggregation").msgclass
  62. LastValueAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.LastValueAggregation").msgclass
  63. DistributionAggregation = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.DistributionAggregation").msgclass
  64. Measurement = Google::Protobuf::DescriptorPool.generated_pool.lookup("opencensus.proto.stats.v1.Measurement").msgclass
  65. end
  66. end
  67. end
  68. end