Skip to content

Commit 782bf2c

Browse files
committed
Remove possibility to update dry_run and type fields
fixes frequenz-io/frequenz-service-dispatch#76 fixes frequenz-io/frequenz-service-dispatch#74 Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent f7a8385 commit 782bf2c

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

proto/frequenz/api/dispatch/v1/dispatch.proto

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -378,32 +378,26 @@ message UpdateMicrogridDispatchRequest {
378378
repeated uint32 bymonths = 8;
379379
}
380380

381-
// The type of dispatch
382-
optional string type = 1;
383-
384381
// The start time
385382
// When updating a dispatch, ensure that the starting timestamp is set to
386383
// the current time or any future time.
387384
// Timestamps earlier than the current time are not allowed.
388-
google.protobuf.Timestamp start_time = 2;
385+
google.protobuf.Timestamp start_time = 1;
389386

390387
// Duration in seconds
391-
optional uint32 duration = 3;
388+
optional uint32 duration = 2;
392389

393390
// The component selector
394-
ComponentSelector selector = 4;
391+
ComponentSelector selector = 3;
395392

396393
// The "active" status
397-
optional bool is_active = 5;
398-
399-
// The "dry run" status
400-
optional bool is_dry_run = 6;
394+
optional bool is_active = 4;
401395

402396
// The dispatch payload
403-
google.protobuf.Struct payload = 7;
397+
google.protobuf.Struct payload = 5;
404398

405399
// The recurrence rule
406-
RecurrenceRuleUpdate recurrence = 8;
400+
RecurrenceRuleUpdate recurrence = 6;
407401
}
408402

409403
// ID of the microgrid

0 commit comments

Comments
 (0)