@@ -79,9 +79,6 @@ service Dapr {
79
79
// Unregister an actor reminder.
80
80
rpc UnregisterActorReminder (UnregisterActorReminderRequest ) returns (google .protobuf .Empty ) {}
81
81
82
- // Rename an actor reminder.
83
- rpc RenameActorReminder (RenameActorReminderRequest ) returns (google .protobuf .Empty ) {}
84
-
85
82
// Gets the state for a specific actor.
86
83
rpc GetActorState (GetActorStateRequest ) returns (GetActorStateResponse ) {}
87
84
@@ -122,7 +119,7 @@ service Dapr {
122
119
rpc DecryptAlpha1 (stream DecryptRequest ) returns (stream DecryptResponse );
123
120
124
121
// Gets metadata of the sidecar
125
- rpc GetMetadata (google . protobuf . Empty ) returns (GetMetadataResponse ) {}
122
+ rpc GetMetadata (GetMetadataRequest ) returns (GetMetadataResponse ) {}
126
123
127
124
// Sets value in extended metadata of the sidecar
128
125
rpc SetMetadata (SetMetadataRequest ) returns (google .protobuf .Empty ) {}
@@ -190,7 +187,7 @@ service Dapr {
190
187
// Raise an event to a running workflow instance
191
188
rpc RaiseEventWorkflowBeta1 (RaiseEventWorkflowRequest ) returns (google .protobuf .Empty ) {}
192
189
// Shutdown the sidecar
193
- rpc Shutdown (google . protobuf . Empty ) returns (google .protobuf .Empty ) {}
190
+ rpc Shutdown (ShutdownRequest ) returns (google .protobuf .Empty ) {}
194
191
}
195
192
196
193
// InvokeServiceRequest represents the request message for Service invocation.
@@ -407,15 +404,13 @@ message BulkPublishResponse {
407
404
408
405
// BulkPublishResponseFailedEntry is the message containing the entryID and error of a failed event in BulkPublishEvent call
409
406
message BulkPublishResponseFailedEntry {
410
-
411
407
// The response scoped unique ID referring to this message
412
408
string entry_id = 1 ;
413
409
414
410
// The error message if any on failure
415
411
string error = 2 ;
416
412
}
417
413
418
-
419
414
// InvokeBindingRequest is the message to send data to output bindings
420
415
message InvokeBindingRequest {
421
416
// The name of the output binding to invoke.
@@ -544,14 +539,6 @@ message UnregisterActorReminderRequest {
544
539
string name = 3 ;
545
540
}
546
541
547
- // RenameActorReminderRequest is the message to rename an actor reminder.
548
- message RenameActorReminderRequest {
549
- string actor_type = 1 ;
550
- string actor_id = 2 ;
551
- string old_name = 3 ;
552
- string new_name = 4 ;
553
- }
554
-
555
542
// GetActorStateRequest is the message to get key-value states from specific actor.
556
543
message GetActorStateRequest {
557
544
string actor_type = 1 ;
@@ -600,17 +587,45 @@ message InvokeActorResponse {
600
587
bytes data = 1 ;
601
588
}
602
589
603
- // GetMetadataResponse is a message that is returned on GetMetadata rpc call
590
+ // GetMetadataRequest is the message for the GetMetadata request.
591
+ message GetMetadataRequest {
592
+ // Empty
593
+ }
594
+
595
+ // GetMetadataResponse is a message that is returned on GetMetadata rpc call.
604
596
message GetMetadataResponse {
605
597
string id = 1 ;
606
- repeated ActiveActorsCount active_actors_count = 2 [json_name = "actors" ];
598
+ // Deprecated alias for actor_runtime.active_actors.
599
+ repeated ActiveActorsCount active_actors_count = 2 [json_name = "actors" , deprecated = true ];
607
600
repeated RegisteredComponents registered_components = 3 [json_name = "components" ];
608
601
map <string , string > extended_metadata = 4 [json_name = "extended" ];
609
602
repeated PubsubSubscription subscriptions = 5 [json_name = "subscriptions" ];
610
603
repeated MetadataHTTPEndpoint http_endpoints = 6 [json_name = "httpEndpoints" ];
611
604
AppConnectionProperties app_connection_properties = 7 [json_name = "appConnectionProperties" ];
612
605
string runtime_version = 8 [json_name = "runtimeVersion" ];
613
606
repeated string enabled_features = 9 [json_name = "enabledFeatures" ];
607
+ ActorRuntime actor_runtime = 10 [json_name = "actorRuntime" ];
608
+ }
609
+
610
+ message ActorRuntime {
611
+ enum ActorRuntimeStatus {
612
+ // Indicates that the actor runtime is still being initialized.
613
+ INITIALIZING = 0 ;
614
+ // Indicates that the actor runtime is disabled.
615
+ // This normally happens when Dapr is started without "placement-host-address"
616
+ DISABLED = 1 ;
617
+ // Indicates the actor runtime is running, either as an actor host or client.
618
+ RUNNING = 2 ;
619
+ }
620
+
621
+ // Contains an enum indicating whether the actor runtime has been initialized.
622
+ ActorRuntimeStatus runtime_status = 1 [json_name = "runtimeStatus" ];
623
+ // Count of active actors per type.
624
+ repeated ActiveActorsCount active_actors = 2 [json_name = "activeActors" ];
625
+ // Indicates whether the actor runtime is ready to host actors.
626
+ bool host_ready = 3 [json_name = "hostReady" ];
627
+ // Custom message from the placement provider.
628
+ string placement = 4 [json_name = "placement" ];
614
629
}
615
630
616
631
message ActiveActorsCount {
@@ -1088,3 +1103,8 @@ message PurgeWorkflowRequest {
1088
1103
// Name of the workflow component.
1089
1104
string workflow_component = 2 [json_name = "workflowComponent" ];
1090
1105
}
1106
+
1107
+ // ShutdownRequest is the request for Shutdown.
1108
+ message ShutdownRequest {
1109
+ // Empty
1110
+ }
0 commit comments