summaryrefslogtreecommitdiffstats
path: root/aclk/aclk-schemas/proto/nodeinstance/connection/v1/connection.proto
blob: f0c02461e1fdf332a9cdee0c9d6e9ca372209f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
syntax = "proto3";
option go_package = "nodeinstance/connection/v1;nodeinstanceconnection";

package nodeinstance.v1;

import "google/protobuf/timestamp.proto";
import "proto/aclk/v1/lib.proto";

message UpdateNodeInstanceConnection {
    string claim_id = 1;
    string node_id = 2;

    // liveness whether node data are actively streamed to the agent.
    bool liveness = 3;

    // queryable whether the agent has data about the node.
    bool queryable = 4;

    int64 session_id = 5;

    google.protobuf.Timestamp updated_at = 6;

    // mqtt_broker_addr shard to use for reaching the agent
    // cloud injects this information.
    string mqtt_broker_addr = 7;

    // vmq_instance_id broker shard to use for reaching the agent
    // cloud injects this information.
    int32 vmq_instance_id = 8;

    // hops is the number of streaming hops between collection of node data
    // and the claimed agent. Zero if no streaming is involved.
    int32 hops = 9;

    // capabilities of node instance NOT the NODE or agent!!!
    repeated aclk_lib.v1.Capability capabilities = 10;
}