Skip to content

Commit

Permalink
Buf re-generated protos
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot authored and chicco785 committed Oct 13, 2023
1 parent dc58be4 commit 20aecdb
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 38 deletions.
3 changes: 2 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# ProtoBuf Release Notes

## 0.0.1-dev - 2023-10-11
## 0.0.1-dev - 2023-10-12

### Features

- Notification message: support Trigger requirements (PR #6 by @chicco785)
- Add protocol buffer to describe faults (PR #3 by @chicco785)

### Refactoring
Expand Down
26 changes: 15 additions & 11 deletions docs/task.proto.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
| NOTIFICATION_TYPE_DATA_COMPLETE | 1 | |
| NOTIFICATION_TYPE_DATA_TIMEOUT_1 | 2 | |
| NOTIFICATION_TYPE_DATA_TIMEOUT_2 | 3 | |
| NOTIFICATION_TYPE_TRIGGER | 4 | |



Expand Down Expand Up @@ -74,6 +75,7 @@ class NotificationType{
NOTIFICATION_TYPE_DATA_COMPLETE
NOTIFICATION_TYPE_DATA_TIMEOUT_1
NOTIFICATION_TYPE_DATA_TIMEOUT_2
NOTIFICATION_TYPE_TRIGGER
}
```
### Task Diagram
Expand All @@ -100,14 +102,15 @@ Task --> `TaskType`
classDiagram
direction LR
%% A notification message.
%% A notification message. Headers used in rabbitMQ: `notificationType` `producerId` `timestampID`
class Notification {
+ int64 createdAt
+ string id
+ Optional~string~ measurementID
+ string message
+ NotificationType notificationType
+ Optional~string~ producerID
+ Optional~int64~ timestampID
}
Notification --> `NotificationType`
Expand All @@ -131,16 +134,17 @@ Notification --> `NotificationType`
## Message: Notification
<div style="font-size: 12px; margin-top: -10px;" class="fqn">FQN: task.v1.Notification</div>

<div class="comment"><span>A notification message.</span><br/></div>

| Field | Ordinal | Type | Label | Description |
|------------------|---------|------------------|----------|---------------------------------------------------|
| createdAt | 3 | int64 | | Notification creation time (Unix Nano timestamp) |
| id | 1 | string | | Id of the notification |
| measurementID | 5 | string | Optional | Related measurement id (if any) |
| message | 4 | string | | Notification message |
| notificationType | 2 | NotificationType | | Notification type |
| timestampID | 6 | int64 | Optional | Related measurement timestamp (if any) |
<div class="comment"><span>A notification message. Headers used in rabbitMQ: `notificationType` `producerId` `timestampID`</span><br/></div>

| Field | Ordinal | Type | Label | Description |
|------------------|---------|------------------|----------|--------------------------------------------------------------------------------------|
| createdAt | 3 | int64 | | Notification creation time (Unix Nano timestamp) |
| id | 1 | string | | Id of the notification |
| measurementID | 5 | string | Optional | Related measurement id (if any) |
| message | 4 | string | | Notification message, it can be a string or a integer (which maps to a enum value). |
| notificationType | 2 | NotificationType | | Notification type |
| producerID | 7 | string | Optional | The id of the producer (e.g. a PMU) linked to the notification |
| timestampID | 6 | int64 | Optional | Related measurement timestamp (if any) |



Expand Down
68 changes: 42 additions & 26 deletions pkg/task/v1/task.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 20aecdb

Please sign in to comment.