Skip to content

bounds_pb2

frequenz.api.common.v1.metrics.bounds_pb2 ¤

Generated protocol buffer code.

Classes¤

frequenz.api.common.v1.metrics.bounds_pb2.Bounds ¤

Bases: Message

A set of lower and upper bounds for any metric. The units of the bounds are always the same as the related metric.

Source code in frequenz/api/common/v1/metrics/bounds_pb2.py
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+frequenz/api/common/v1/metrics/bounds.proto\x12\x1e\x66requenz.api.common.v1.metrics\"D\n\x06\x42ounds\x12\x12\n\x05lower\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x12\n\x05upper\x18\x02 \x01(\x02H\x01\x88\x01\x01\x42\x08\n\x06_lowerB\x08\n\x06_upperb\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'frequenz.api.common.v1.metrics.bounds_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_BOUNDS']._serialized_start=79
  _globals['_BOUNDS']._serialized_end=147
# @@protoc_insertion_point(module_scope)
Attributes¤
lower: builtins.float instance-attribute ¤

The lower bound. If absent, there is no lower bound.

upper: builtins.float instance-attribute ¤

The upper bound. If absent, there is no upper bound.