Bases: Message
Lifetime captures the timestamps indicating the active operational period of
a microgrid asset, such as a component, connection, sensor, or any other
entity with a limited operational lifetime.
Permanent Deletion
The end_timestamp
indicates that the asset has been permanently removed
from the system.
Source code in frequenz/api/common/v1/microgrid/lifetime_pb2.py
| # @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/frequenz/api/common/v1/microgrid/lifetime.proto\x12 frequenz.api.common.v1.microgrid\x1a\x1fgoogle/protobuf/timestamp.proto\"r\n\x08Lifetime\x12\x33\n\x0fstart_timestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\rend_timestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestampb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'frequenz.api.common.v1.microgrid.lifetime_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
DESCRIPTOR._loaded_options = None
_globals['_LIFETIME']._serialized_start=118
_globals['_LIFETIME']._serialized_end=232
# @@protoc_insertion_point(module_scope)
|
Attributes
end_timestamp: google.protobuf.timestamp_pb2.Timestamp
property
Optional timestamp when the asset's operational activity ceased.
start_timestamp: google.protobuf.timestamp_pb2.Timestamp
property
The timestamp when the asset became operationally active.