|
| 1 | +// The MIT License |
| 2 | +// |
| 3 | +// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. |
| 4 | +// |
| 5 | +// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 6 | +// of this software and associated documentation files (the "Software"), to deal |
| 7 | +// in the Software without restriction, including without limitation the rights |
| 8 | +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 9 | +// copies of the Software, and to permit persons to whom the Software is |
| 10 | +// furnished to do so, subject to the following conditions: |
| 11 | +// |
| 12 | +// The above copyright notice and this permission notice shall be included in |
| 13 | +// all copies or substantial portions of the Software. |
| 14 | +// |
| 15 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 18 | +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 20 | +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 21 | +// THE SOFTWARE. |
| 22 | + |
| 23 | +syntax = "proto3"; |
| 24 | + |
| 25 | +package temporal.api.cluster.v1; |
| 26 | + |
| 27 | +option go_package = "go.temporal.io/api/cluster/v1;command"; |
| 28 | +option java_package = "io.temporal.api.cluster.v1"; |
| 29 | +option java_multiple_files = true; |
| 30 | +option java_outer_classname = "MessageProto"; |
| 31 | +option ruby_package = "Temporal::Api::Cluster::V1"; |
| 32 | +option csharp_namespace = "Temporal.Api.Cluster.V1"; |
| 33 | + |
| 34 | +import "dependencies/gogoproto/gogo.proto"; |
| 35 | +import "google/protobuf/timestamp.proto"; |
| 36 | + |
| 37 | +import "temporal/api/enums/v1/cluster.proto"; |
| 38 | +import "temporal/api/enums/v1/common.proto"; |
| 39 | +import "temporal/api/version/v1/message.proto"; |
| 40 | + |
| 41 | +// data column |
| 42 | +message ClusterMetadata { |
| 43 | + string cluster = 1; |
| 44 | + int32 history_shard_count = 2; |
| 45 | + string cluster_id = 3; |
| 46 | + temporal.api.version.v1.VersionInfo version_info = 4; |
| 47 | + map<string,IndexSearchAttributes> index_search_attributes = 5; |
| 48 | + string cluster_address = 6; |
| 49 | + int64 failover_version_increment = 7; |
| 50 | + int64 initial_failover_version = 8; |
| 51 | + bool is_global_namespace_enabled = 9; |
| 52 | + bool is_connection_enabled = 10; |
| 53 | +} |
| 54 | + |
| 55 | +message IndexSearchAttributes{ |
| 56 | + map<string,temporal.api.enums.v1.IndexedValueType> custom_search_attributes = 1; |
| 57 | +} |
| 58 | + |
| 59 | +message HostInfo { |
| 60 | + string identity = 1; |
| 61 | +} |
| 62 | + |
| 63 | +message RingInfo { |
| 64 | + string role = 1; |
| 65 | + int32 member_count = 2; |
| 66 | + repeated HostInfo members = 3; |
| 67 | +} |
| 68 | + |
| 69 | +message MembershipInfo { |
| 70 | + HostInfo current_host = 1; |
| 71 | + repeated string reachable_members = 2; |
| 72 | + repeated RingInfo rings = 3; |
| 73 | +} |
| 74 | + |
| 75 | +message ClusterMember { |
| 76 | + temporal.api.enums.v1.ClusterMemberRole role = 1; |
| 77 | + string host_id = 2; |
| 78 | + string rpc_address = 3; |
| 79 | + int32 rpc_port = 4; |
| 80 | + google.protobuf.Timestamp session_start_time = 5 [(gogoproto.stdtime) = true]; |
| 81 | + google.protobuf.Timestamp last_heartbit_time = 6 [(gogoproto.stdtime) = true]; |
| 82 | + google.protobuf.Timestamp record_expiry_time = 7 [(gogoproto.stdtime) = true]; |
| 83 | +} |
0 commit comments