github.com/microsoft/moc@v0.17.1/rpc/common/admin/health/moc_common_health.proto (about)

     1  // Copyright (c) Microsoft Corporation.
     2  // Licensed under the Apache v2.0 license.
     3  
     4  syntax = "proto3";
     5  option go_package = "github.com/microsoft/moc/rpc/common/admin";
     6  package moc.common.admin;
     7  
     8  import "google/protobuf/empty.proto";
     9  import "google/protobuf/wrappers.proto";
    10  import "moc_common_common.proto";
    11  import "moc_common_nodeinfo.proto";
    12  
    13  message HealthRequest{
    14  	uint32 timeoutSeconds = 1;
    15  }
    16  
    17  message HealthResponse {
    18  	google.protobuf.BoolValue Result = 2;
    19  	string  Error = 3;
    20  	HealthState State = 4;
    21  	bool Rebooted = 5;
    22  }
    23  
    24  message AgentInfoResponse{
    25  	NodeInfo node = 1;
    26  	google.protobuf.BoolValue Result = 2;
    27  	string  Error = 3;
    28  	string deploymentId = 4;
    29  }
    30  
    31  service HealthAgent {
    32  	rpc CheckHealth(HealthRequest) returns (HealthResponse) {}
    33  	rpc GetAgentInfo(google.protobuf.Empty) returns (AgentInfoResponse) {}
    34  }
    35