microgrid_pb2
frequenz.api.microgrid.v1.microgrid_pb2
¤
Generated protocol buffer code.
Classes¤
frequenz.api.microgrid.v1.microgrid_pb2.AckComponentErrorRequest
¤
frequenz.api.microgrid.v1.microgrid_pb2.AddComponentBoundsRequest
¤
Bases: Message
Request parameters for the RPC AddComponentBounds
.
Attributes¤
bounds: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[frequenz.api.common.v1.metrics.bounds_pb2.Bounds]
property
¤
A list of bounds for the target metric. While incorporating these bounds, the API will ensure that overlapping pairs of bounds are merged into a single pair of bounds, and non-overlapping ones are kept separated.
component_id: builtins.int
instance-attribute
¤
The ID of the target component.
target_metric: frequenz.api.common.v1.metrics.metric_sample_pb2.Metric.ValueType
instance-attribute
¤
The target metric whose bounds have to be set.
validity_duration: global___ComponentBoundsValidityDuration.ValueType
instance-attribute
¤
The duration for which the given bounds will stay in effect. If this field is not provided, then the bounds will be removed after a default duration of 5 seconds.
frequenz.api.microgrid.v1.microgrid_pb2.AddComponentBoundsResponse
¤
frequenz.api.microgrid.v1.microgrid_pb2.ComponentBoundsValidityDuration
¤
Bases: _ComponentBoundsValidityDuration
The duration for which a given list of bounds will stay in effect.
Source code in frequenz/api/microgrid/v1/microgrid_pb2.py
frequenz.api.microgrid.v1.microgrid_pb2.GetMicrogridMetadataResponse
¤
Bases: Message
Metadata that describes a microgrid.
Source code in frequenz/api/microgrid/v1/microgrid_pb2.py
frequenz.api.microgrid.v1.microgrid_pb2.ListComponentsRequest
¤
Bases: Message
Request parameters for the RPC ListComponents
.
Contains filtering parameters for listing components.
Source code in frequenz/api/microgrid/v1/microgrid_pb2.py
Attributes¤
categories: google.protobuf.internal.containers.RepeatedScalarFieldContainer[frequenz.api.common.v1.microgrid.components.components_pb2.ComponentCategory.ValueType]
property
¤
Return components that have the specified categories only.
component_ids: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]
property
¤
Return components that have the specified IDs only.
frequenz.api.microgrid.v1.microgrid_pb2.ListComponentsResponse
¤
Bases: Message
A message containing a list of components.
Used as the return type in the RPC ListComponents
.
Source code in frequenz/api/microgrid/v1/microgrid_pb2.py
frequenz.api.microgrid.v1.microgrid_pb2.ListConnectionsRequest
¤
Bases: Message
Request parameters for the RPC ListConnections
.
Contains filtering parameters for listing connections.
Attributes¤
ends: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]
property
¤
Only return connections that end at the specified component ID(s):
if empty, connections with any end
will be returned
starts: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]
property
¤
Only return connections that start from the specified component ID(s):
if empty, connections with any start
will be returned
frequenz.api.microgrid.v1.microgrid_pb2.ListConnectionsResponse
¤
Bases: Message
Response message for the RPC ListConnections
.
Contains a list of connections.
frequenz.api.microgrid.v1.microgrid_pb2.ListSensorRequest
¤
Bases: Message
Request parameters for the RPC ListSensors
.
Contains filtering parameters for listing sensors.
Attributes¤
categories: google.protobuf.internal.containers.RepeatedScalarFieldContainer[frequenz.api.common.v1.microgrid.sensors.sensors_pb2.SensorCategory.ValueType]
property
¤
Return sensors that have the specified categories only.
sensor_ids: google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]
property
¤
Return sensors that have the specified IDs only.
frequenz.api.microgrid.v1.microgrid_pb2.ListSensorsResponse
¤
Bases: Message
Response message for the RPC ListSensors
.
A message containing a list of sensors.
frequenz.api.microgrid.v1.microgrid_pb2.PutComponentInStandbyRequest
¤
frequenz.api.microgrid.v1.microgrid_pb2.ReceiveComponentDataStreamRequest
¤
Bases: Message
Request parameters for the RPC ReceiveComponentDataStream
.
Attributes¤
component_id: builtins.int
instance-attribute
¤
The component ID to subscribe to.
filter: global___ReceiveComponentDataStreamRequest.ComponentDataStreamFilter
property
¤
The filter to apply to the stream.
This field is optional. If this is not provided, then the stream will return all metrics for the given component. If this is provided, then the stream will return only the metrics specified in the filter.
Classes¤
ComponentDataStreamFilter
¤
Bases: Message
A message for specifying a filter to apply to the stream.
metrics: google.protobuf.internal.containers.RepeatedScalarFieldContainer[frequenz.api.common.v1.metrics.metric_sample_pb2.Metric.ValueType]
property
¤List of metrics to return. Only the specified metrics will be returned.
Note
At least one metric must be specified. If no metric is specified, then the stream will return an error.
Note
Components may not support all metrics. If a component does not support a given metric, then the returned data stream will not contain that metric.
frequenz.api.microgrid.v1.microgrid_pb2.ReceiveComponentDataStreamResponse
¤
Bases: Message
A data sample from a component in the microgrid. Components belonging to all categories and types can be represented using this message.
frequenz.api.microgrid.v1.microgrid_pb2.ReceiveSensorDataStreamRequest
¤
Bases: Message
Request parameters for the RPC ReceiveSensorDataStream
.
Attributes¤
filter: global___ReceiveSensorDataStreamRequest.SensorDataStreamFilter
property
¤
The filter to apply to the stream.
This field is optional. If this is not provided, then the stream will return all metrics for the given component. If this is provided, then the stream will return only the metrics specified in the filter.
sensor_id: builtins.int
instance-attribute
¤
The sensor ID to subscribe to.
Classes¤
SensorDataStreamFilter
¤
Bases: Message
A message for specifying a filter to apply to the stream.
metrics: google.protobuf.internal.containers.RepeatedScalarFieldContainer[frequenz.api.common.v1.metrics.metric_sample_pb2.Metric.ValueType]
property
¤List of metrics to return. Only the specified metrics will be returned.
Note
At least one metric must be specified. If no metric is specified, then the stream will return an error.
Note
Sensors may not support all metrics. If a sensor does not support a given metric, then the returned data stream will not contain that metric.
frequenz.api.microgrid.v1.microgrid_pb2.ReceiveSensorDataStreamResponse
¤
frequenz.api.microgrid.v1.microgrid_pb2.SetComponentPowerActiveRequest
¤
Bases: Message
Request parameters for the RPC SetComponentPowerActive
.
Attributes¤
component_id: builtins.int
instance-attribute
¤
The ID of the component to set the output active power of.
power: builtins.float
instance-attribute
¤
The output active power level, in watts. -ve values are for discharging, and +ve values are for charging.
request_lifetime: builtins.int
instance-attribute
¤
The duration, in seconds, until which the request will stay in effect. This duration has to be between 10 seconds and 15 minutes (including both limits), otherwise the request will be rejected. If not provided, it defaults to 60s.
frequenz.api.microgrid.v1.microgrid_pb2.SetComponentPowerActiveResponse
¤
Bases: Message
Response message for the RPC SetComponentPowerActive
.
Attributes¤
valid_until: google.protobuf.timestamp_pb2.Timestamp
property
¤
The timestamp until which the given power command will stay in effect. After this timestamp, the component power will be set to 0, if the API receives no further power commands. By default, this timestamp will be set to the current time plus 60 seconds.
frequenz.api.microgrid.v1.microgrid_pb2.SetComponentPowerReactiveRequest
¤
Bases: Message
Request parameters for the RPC SetComponentPowerReactive
.
Attributes¤
component_id: builtins.int
instance-attribute
¤
The ID of the component to set the output reactive power of.
power: builtins.float
instance-attribute
¤
The output reactive power level, in VAr.
The standard of polarity is as per the IEEE 1459-2010 standard definitions: - positive reactive is inductive (current is lagging the voltage) - negative reactive is capacitive (current is leading the voltage)
request_lifetime: builtins.int
instance-attribute
¤
The duration, in seconds, until which the request will stay in effect. This duration has to be between 10 seconds and 15 minutes (including both limits), otherwise the request will be rejected. If not provided, it defaults to 60s.
frequenz.api.microgrid.v1.microgrid_pb2.SetComponentPowerReactiveResponse
¤
Bases: Message
Response message for the RPC SetComponentPowerReactive
.
Attributes¤
valid_until: google.protobuf.timestamp_pb2.Timestamp
property
¤
The timestamp until which the given power command will stay in effect. After this timestamp, the component power will be set to 0, if the API receives no further power commands. By default, this timestamp will be set to the current time plus 60 seconds.