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
property
¤
bounds: RepeatedCompositeFieldContainer[Bounds]
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.
target_metric
instance-attribute
¤
The target metric whose bounds have to be set.
validity_duration
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
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.
frequenz.api.microgrid.v1.microgrid_pb2.ListConnectionsResponse ¤
Bases: Message
Response message for the RPC ListConnections
.
Contains a list of connections.
Attributes¤
connections
property
¤
connections: RepeatedCompositeFieldContainer[
ComponentConnection
]
The list of connections.
frequenz.api.microgrid.v1.microgrid_pb2.ListSensorRequest ¤
Bases: Message
Request parameters for the RPC ListSensors
.
Contains filtering parameters for listing sensors.
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¤
filter
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.
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
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¤
SensorDataStreamFilter ¤
Bases: Message
A message for specifying a filter to apply to the stream.
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
instance-attribute
¤
The ID of the component to set the output active power of.
power
instance-attribute
¤
The output active power level, in watts. -ve values are for discharging, and +ve values are for charging.
request_lifetime
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
.
frequenz.api.microgrid.v1.microgrid_pb2.SetComponentPowerReactiveRequest ¤
Bases: Message
Request parameters for the RPC SetComponentPowerReactive
.
Attributes¤
component_id
instance-attribute
¤
The ID of the component to set the output reactive power of.
power
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
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
.