go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/providers-sdk/v1/upstream/health/health.proto (about)

     1  // Copyright 2015 The gRPC Authors
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // The canonical version of this proto can be found at
    16  // https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto
    17  
    18  syntax = "proto3";
    19  
    20  package mondoo.cnquery.health.v1;
    21  
    22  option go_package = "go.mondoo.com/cnquery/providers-sdk/v1/upstream/health";
    23  
    24  service Health { rpc Check(HealthCheckRequest) returns (HealthCheckResponse); }
    25  
    26  message HealthCheckRequest { string service = 1; }
    27  
    28  message HealthCheckResponse {
    29    enum ServingStatus {
    30      UNKNOWN = 0;
    31      SERVING = 1;
    32      NOT_SERVING = 2;
    33      SERVICE_UNKNOWN = 3; // Used only by the Watch method.
    34    }
    35    ServingStatus status = 1;
    36  
    37    // returns rfc 3339 timestamp
    38    string time = 2;
    39  
    40    // returns the major api version
    41    string apiVersion = 3;
    42  
    43    // returns the git commit checksum
    44    string build = 4;
    45  }
    46  
    47