Support metrics from multiple component connections in the aggregation RPC #51
Labels
part:docs
Affects the documentation
part:proto
Affects the protocol buffer definition files
priority:low
This should be addressed only if there is nothing else on the table
type:enhancement
New feature or enhancement visitble to users
Milestone
What's needed?
To support specifying different connections for component metrics in the aggregation formulas, we'll need to extend the syntax to allow an optional source specification after the component ID.
Proposed solution
Example Formula:
(#4[source1] + #5[source2])
Proposed Additions:
Use cases
One might have an inverter with multiple DC strings (connections), and you want to aggregate metrics from specific strings.
Alternatives and workarounds
Alternative Syntax Options
a. Using the @ Symbol
Syntax:
#ComponentID@source_name (e.g., #4@source1)
Pros:
Unambiguous: The @ symbol is less commonly used in mathematical expressions, reducing the risk of parsing conflicts.
Clear Association: Clearly associates the source with the component ID.
Cons:
User Familiarity: Users might be less accustomed to this notation, but it's often used in email addresses and annotations, so it's not entirely unfamiliar.
b. Using a Dot .
Syntax:
#ComponentID.source_name (e.g., #4.source1)
Pros:
Familiarity: Dots are commonly used for object property access in many programming languages.
Cons:
Parsing Issues: Dots are also used in floating-point numbers (e.g., 3.14), which might complicate parsing.
Potential Ambiguity: Could be confused with decimal points in numbers.
c. Using a Colon :
Syntax:
#ComponentID:source_name (e.g., #4:source1)
Pros:
Distinct Separator: Colons are clear separators and not commonly used in mathematical expressions.
Cons:
Potential Conflicts: If the expression language uses colons for other purposes (e.g., ternary operators), this could cause issues.
Additional context
This is pending the following issue.
The text was updated successfully, but these errors were encountered: