-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New protocol buffer for topology data (#12)
## Description new protocol buffer for topology data ## Changes Made new protocol buffer for topology data ## Related Issues Fixes #10 ## Checklist - [x] I have used a PR title that is descriptive enough for a release note. - [x] I have tested these changes locally. - [x] I have added appropriate tests or updated existing tests. - [ ] I have tested these changes on a dedicated VM or a customer VM [name of the VM] - [x] I have added appropriate documentation or updated existing documentation. --------- Co-authored-by: Bot <[email protected]>
- Loading branch information
Showing
8 changed files
with
1,457 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Package: grid.v1 | ||
|
||
<div class="comment"><span><!-- markdownlint-disable --></span><br/><span>Messages to support topology data exchange in the platform.</span><br/><span></span><br/></div> | ||
|
||
## Imports | ||
|
||
| Import | Description | | ||
|--------|-------------| | ||
|
||
|
||
|
||
## Options | ||
|
||
| Name | Value | Description | | ||
|------------|-----------|-------------| | ||
| go_package | ./grid/v1 | | | ||
|
||
|
||
|
||
|
||
### Topology Diagram | ||
|
||
```mermaid | ||
classDiagram | ||
direction LR | ||
%% A topology computed information. | ||
%% Headers used in rabbitMQ: | ||
%% * `id`: id of the `Topology` | ||
%% * `type`: always `Topology` | ||
%% * `producerId`: the id of the producer (e.g. a PMU) linked to the dataset. | ||
%% * `timestampId`: related measurement Unix msec timestamp (if any) | ||
%% * `subnetworkId`: the sub network id for which the topology was computed | ||
%% | ||
class Topology { | ||
+ uint64 createdAt | ||
+ bytes tp | ||
} | ||
``` | ||
|
||
## Message: Topology | ||
<div style="font-size: 12px; margin-top: -10px;" class="fqn">FQN: grid.v1.Topology</div> | ||
|
||
<div class="comment"><span>A topology computed information.</span><br/><span>Headers used in rabbitMQ:</span><br/><span>* `id`: id of the `Topology`</span><br/><span>* `type`: always `Topology`</span><br/><span>* `producerId`: the id of the producer (e.g. a PMU) linked to the dataset.</span><br/><span>* `timestampId`: related measurement Unix msec timestamp (if any)</span><br/><span>* `subnetworkId`: the sub network id for which the topology was computed</span><br/><span></span><br/></div> | ||
|
||
| Field | Ordinal | Type | Label | Description | | ||
|-----------|---------|--------|-------|-------------------------------------------------------------------| | ||
| createdAt | 1 | uint64 | | The time of creation of the topology data (Unix msec timestamp). | | ||
| tp | 2 | bytes | | The TP profile file serialized as bytes. | | ||
|
||
|
||
|
||
|
||
<!-- Created by: Proto Diagram Tool --> | ||
<!-- https://github.com/GoogleCloudPlatform/proto-gen-md-diagrams --> |
Oops, something went wrong.