github.com/microsoft/moc@v0.17.1/rpc/cloudagent/admin/logging/moc_cloudagent_logging.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/cloudagent/admin";
     6  package moc.cloudagent.admin;
     7  
     8  service LogAgent {
     9  	rpc Get(LogRequest) returns (stream LogFileResponse) {}
    10  	rpc Set(SetRequest) returns (SetResponse) {};
    11  	rpc GetLevel(GetRequest) returns (GetResponse) {}
    12  }
    13  
    14  enum GetLogType {
    15       All   = 0;
    16       Cloud = 1;
    17       Node  = 2;
    18  }
    19  
    20  message LogRequest {
    21  	GetLogType type = 1;
    22  	string     location = 2;
    23  }
    24  
    25  message LogFileResponse {
    26  	bytes                       file     = 1;
    27  	bool                        done     = 2;
    28  	string                      error    = 3;
    29  	string                      filename = 4;
    30  }
    31  
    32  message SetResponse {
    33  	string 						error    = 1;
    34  }
    35  
    36  message SetRequest {
    37  	int32   verbositylevel         = 1;
    38  	bool    include_nodeagents     = 2;
    39  }
    40  
    41  message GetRequest {}
    42  
    43  message GetResponse {
    44  	string error =1;
    45  	string level =2;
    46  }