All Downloads are FREE. Search and download functionalities are using the official Maven repository.

olaris.polaris-all.2.0.0.0-RC1.source-code.heartbeat.proto Maven / Gradle / Ivy

There is a newer version: 2.0.0.0-RC3
Show newest version
syntax = "proto3";

package v1;

import "service.proto";

option go_package = "github.com/polarismesh/specification/source/go/api/v1/service_manage";
option java_package = "com.tencent.polaris.specification.api.v1.service.manage";

message HeartbeatRecord {
  string instanceId = 1 [ json_name = "instance_id" ];
  reserved 2 to 5;
  int64 lastHeartbeatSec = 6 [ json_name = "last_heartbeat_sec" ];
  bool exist = 7 [ json_name = "exist" ];
}

message InstanceHeartbeat {
  string instanceId = 1 [ json_name = "instance_id" ];
  string service = 2 [ json_name = "service" ];
  string namespace = 3 [ json_name = "namespace" ];
  string host = 4 [ json_name = "host" ];
  uint32 port = 5 [ json_name = "port" ];
}

message HeartbeatsRequest {
  repeated InstanceHeartbeat heartbeats = 1 [ json_name = "heartbeats" ];
}

message HeartbeatsResponse {
}

message GetHeartbeatsRequest {
  repeated string instanceIds = 1 [ json_name = "instance_ids" ];
}

message GetHeartbeatsResponse {
  repeated HeartbeatRecord records = 1 [ json_name = "records" ];
}

message DelHeartbeatsRequest {
  repeated string instanceIds = 1 [ json_name = "instance_ids" ];
}

message DelHeartbeatsResponse {
  uint32 code = 1;
  string info = 2;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy