// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v6.32.1 // source: proto/agent.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) type JobType int32 const ( JobType_DISCOVER JobType = 0 JobType_POLL JobType = 1 JobType_MIKROTIK JobType = 2 JobType_TEST_CREDENTIALS JobType = 3 JobType_PING JobType = 4 ) // Enum value maps for JobType. var ( JobType_name = map[int32]string{ 0: "DISCOVER", 1: "POLL", 2: "MIKROTIK", 3: "TEST_CREDENTIALS", 4: "PING", } JobType_value = map[string]int32{ "DISCOVER": 0, "POLL": 1, "MIKROTIK": 2, "TEST_CREDENTIALS": 3, "PING": 4, } ) func (x JobType) Enum() *JobType { p := new(JobType) *p = x return p } func (x JobType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (JobType) Descriptor() protoreflect.EnumDescriptor { return file_proto_agent_proto_enumTypes[0].Descriptor() } func (JobType) Type() protoreflect.EnumType { return &file_proto_agent_proto_enumTypes[0] } func (x JobType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use JobType.Descriptor instead. func (JobType) EnumDescriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{0} } type QueryType int32 const ( QueryType_GET QueryType = 0 QueryType_WALK QueryType = 1 ) // Enum value maps for QueryType. var ( QueryType_name = map[int32]string{ 0: "GET", 1: "WALK", } QueryType_value = map[string]int32{ "GET": 0, "WALK": 1, } ) func (x QueryType) Enum() *QueryType { p := new(QueryType) *p = x return p } func (x QueryType) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (QueryType) Descriptor() protoreflect.EnumDescriptor { return file_proto_agent_proto_enumTypes[1].Descriptor() } func (QueryType) Type() protoreflect.EnumType { return &file_proto_agent_proto_enumTypes[1] } func (x QueryType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use QueryType.Descriptor instead. func (QueryType) EnumDescriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{1} } // Configuration received from the API type AgentConfig struct { state protoimpl.MessageState `protogen:"open.v1"` Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` PollIntervalSeconds uint32 `protobuf:"varint,2,opt,name=poll_interval_seconds,json=pollIntervalSeconds,proto3" json:"poll_interval_seconds,omitempty"` Devices []*Device `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AgentConfig) Reset() { *x = AgentConfig{} mi := &file_proto_agent_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AgentConfig) String() string { return protoimpl.X.MessageStringOf(x) } func (*AgentConfig) ProtoMessage() {} func (x *AgentConfig) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AgentConfig.ProtoReflect.Descriptor instead. func (*AgentConfig) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{0} } func (x *AgentConfig) GetVersion() string { if x != nil { return x.Version } return "" } func (x *AgentConfig) GetPollIntervalSeconds() uint32 { if x != nil { return x.PollIntervalSeconds } return 0 } func (x *AgentConfig) GetDevices() []*Device { if x != nil { return x.Devices } return nil } type Device struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` IpAddress string `protobuf:"bytes,3,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` Snmp *SnmpConfig `protobuf:"bytes,4,opt,name=snmp,proto3" json:"snmp,omitempty"` PollIntervalSeconds uint32 `protobuf:"varint,5,opt,name=poll_interval_seconds,json=pollIntervalSeconds,proto3" json:"poll_interval_seconds,omitempty"` Sensors []*Sensor `protobuf:"bytes,6,rep,name=sensors,proto3" json:"sensors,omitempty"` Interfaces []*Interface `protobuf:"bytes,7,rep,name=interfaces,proto3" json:"interfaces,omitempty"` MonitoringEnabled bool `protobuf:"varint,8,opt,name=monitoring_enabled,json=monitoringEnabled,proto3" json:"monitoring_enabled,omitempty"` CheckIntervalSeconds uint32 `protobuf:"varint,9,opt,name=check_interval_seconds,json=checkIntervalSeconds,proto3" json:"check_interval_seconds,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Device) Reset() { *x = Device{} mi := &file_proto_agent_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Device) String() string { return protoimpl.X.MessageStringOf(x) } func (*Device) ProtoMessage() {} func (x *Device) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Device.ProtoReflect.Descriptor instead. func (*Device) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{1} } func (x *Device) GetId() string { if x != nil { return x.Id } return "" } func (x *Device) GetName() string { if x != nil { return x.Name } return "" } func (x *Device) GetIpAddress() string { if x != nil { return x.IpAddress } return "" } func (x *Device) GetSnmp() *SnmpConfig { if x != nil { return x.Snmp } return nil } func (x *Device) GetPollIntervalSeconds() uint32 { if x != nil { return x.PollIntervalSeconds } return 0 } func (x *Device) GetSensors() []*Sensor { if x != nil { return x.Sensors } return nil } func (x *Device) GetInterfaces() []*Interface { if x != nil { return x.Interfaces } return nil } func (x *Device) GetMonitoringEnabled() bool { if x != nil { return x.MonitoringEnabled } return false } func (x *Device) GetCheckIntervalSeconds() uint32 { if x != nil { return x.CheckIntervalSeconds } return 0 } type SnmpConfig struct { state protoimpl.MessageState `protogen:"open.v1"` Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Community string `protobuf:"bytes,3,opt,name=community,proto3" json:"community,omitempty"` Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` Transport string `protobuf:"bytes,5,opt,name=transport,proto3" json:"transport,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SnmpConfig) Reset() { *x = SnmpConfig{} mi := &file_proto_agent_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SnmpConfig) String() string { return protoimpl.X.MessageStringOf(x) } func (*SnmpConfig) ProtoMessage() {} func (x *SnmpConfig) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SnmpConfig.ProtoReflect.Descriptor instead. func (*SnmpConfig) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{2} } func (x *SnmpConfig) GetEnabled() bool { if x != nil { return x.Enabled } return false } func (x *SnmpConfig) GetVersion() string { if x != nil { return x.Version } return "" } func (x *SnmpConfig) GetCommunity() string { if x != nil { return x.Community } return "" } func (x *SnmpConfig) GetPort() uint32 { if x != nil { return x.Port } return 0 } func (x *SnmpConfig) GetTransport() string { if x != nil { return x.Transport } return "" } type Sensor struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` Divisor float64 `protobuf:"fixed64,4,opt,name=divisor,proto3" json:"divisor,omitempty"` Unit string `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"` Metadata map[string]string `protobuf:"bytes,6,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Sensor) Reset() { *x = Sensor{} mi := &file_proto_agent_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Sensor) String() string { return protoimpl.X.MessageStringOf(x) } func (*Sensor) ProtoMessage() {} func (x *Sensor) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Sensor.ProtoReflect.Descriptor instead. func (*Sensor) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{3} } func (x *Sensor) GetId() string { if x != nil { return x.Id } return "" } func (x *Sensor) GetType() string { if x != nil { return x.Type } return "" } func (x *Sensor) GetOid() string { if x != nil { return x.Oid } return "" } func (x *Sensor) GetDivisor() float64 { if x != nil { return x.Divisor } return 0 } func (x *Sensor) GetUnit() string { if x != nil { return x.Unit } return "" } func (x *Sensor) GetMetadata() map[string]string { if x != nil { return x.Metadata } return nil } type Interface struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` IfIndex uint32 `protobuf:"varint,2,opt,name=if_index,json=ifIndex,proto3" json:"if_index,omitempty"` IfName string `protobuf:"bytes,3,opt,name=if_name,json=ifName,proto3" json:"if_name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Interface) Reset() { *x = Interface{} mi := &file_proto_agent_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Interface) String() string { return protoimpl.X.MessageStringOf(x) } func (*Interface) ProtoMessage() {} func (x *Interface) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Interface.ProtoReflect.Descriptor instead. func (*Interface) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{4} } func (x *Interface) GetId() string { if x != nil { return x.Id } return "" } func (x *Interface) GetIfIndex() uint32 { if x != nil { return x.IfIndex } return 0 } func (x *Interface) GetIfName() string { if x != nil { return x.IfName } return "" } // Metrics submitted to the API type MetricBatch struct { state protoimpl.MessageState `protogen:"open.v1"` Metrics []*Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MetricBatch) Reset() { *x = MetricBatch{} mi := &file_proto_agent_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MetricBatch) String() string { return protoimpl.X.MessageStringOf(x) } func (*MetricBatch) ProtoMessage() {} func (x *MetricBatch) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MetricBatch.ProtoReflect.Descriptor instead. func (*MetricBatch) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{5} } func (x *MetricBatch) GetMetrics() []*Metric { if x != nil { return x.Metrics } return nil } type Metric struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to MetricType: // // *Metric_SensorReading // *Metric_InterfaceStat // *Metric_NeighborDiscovery // *Metric_MonitoringCheck MetricType isMetric_MetricType `protobuf_oneof:"metric_type"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Metric) Reset() { *x = Metric{} mi := &file_proto_agent_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Metric) String() string { return protoimpl.X.MessageStringOf(x) } func (*Metric) ProtoMessage() {} func (x *Metric) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Metric.ProtoReflect.Descriptor instead. func (*Metric) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{6} } func (x *Metric) GetMetricType() isMetric_MetricType { if x != nil { return x.MetricType } return nil } func (x *Metric) GetSensorReading() *SensorReading { if x != nil { if x, ok := x.MetricType.(*Metric_SensorReading); ok { return x.SensorReading } } return nil } func (x *Metric) GetInterfaceStat() *InterfaceStat { if x != nil { if x, ok := x.MetricType.(*Metric_InterfaceStat); ok { return x.InterfaceStat } } return nil } func (x *Metric) GetNeighborDiscovery() *NeighborDiscovery { if x != nil { if x, ok := x.MetricType.(*Metric_NeighborDiscovery); ok { return x.NeighborDiscovery } } return nil } func (x *Metric) GetMonitoringCheck() *MonitoringCheck { if x != nil { if x, ok := x.MetricType.(*Metric_MonitoringCheck); ok { return x.MonitoringCheck } } return nil } type isMetric_MetricType interface { isMetric_MetricType() } type Metric_SensorReading struct { SensorReading *SensorReading `protobuf:"bytes,1,opt,name=sensor_reading,json=sensorReading,proto3,oneof"` } type Metric_InterfaceStat struct { InterfaceStat *InterfaceStat `protobuf:"bytes,2,opt,name=interface_stat,json=interfaceStat,proto3,oneof"` } type Metric_NeighborDiscovery struct { NeighborDiscovery *NeighborDiscovery `protobuf:"bytes,3,opt,name=neighbor_discovery,json=neighborDiscovery,proto3,oneof"` } type Metric_MonitoringCheck struct { MonitoringCheck *MonitoringCheck `protobuf:"bytes,4,opt,name=monitoring_check,json=monitoringCheck,proto3,oneof"` } func (*Metric_SensorReading) isMetric_MetricType() {} func (*Metric_InterfaceStat) isMetric_MetricType() {} func (*Metric_NeighborDiscovery) isMetric_MetricType() {} func (*Metric_MonitoringCheck) isMetric_MetricType() {} type SensorReading struct { state protoimpl.MessageState `protogen:"open.v1"` SensorId string `protobuf:"bytes,1,opt,name=sensor_id,json=sensorId,proto3" json:"sensor_id,omitempty"` Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Unix timestamp in seconds unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SensorReading) Reset() { *x = SensorReading{} mi := &file_proto_agent_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SensorReading) String() string { return protoimpl.X.MessageStringOf(x) } func (*SensorReading) ProtoMessage() {} func (x *SensorReading) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SensorReading.ProtoReflect.Descriptor instead. func (*SensorReading) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{7} } func (x *SensorReading) GetSensorId() string { if x != nil { return x.SensorId } return "" } func (x *SensorReading) GetValue() float64 { if x != nil { return x.Value } return 0 } func (x *SensorReading) GetStatus() string { if x != nil { return x.Status } return "" } func (x *SensorReading) GetTimestamp() int64 { if x != nil { return x.Timestamp } return 0 } type InterfaceStat struct { state protoimpl.MessageState `protogen:"open.v1"` InterfaceId string `protobuf:"bytes,1,opt,name=interface_id,json=interfaceId,proto3" json:"interface_id,omitempty"` IfInOctets int64 `protobuf:"varint,2,opt,name=if_in_octets,json=ifInOctets,proto3" json:"if_in_octets,omitempty"` IfOutOctets int64 `protobuf:"varint,3,opt,name=if_out_octets,json=ifOutOctets,proto3" json:"if_out_octets,omitempty"` IfInErrors int64 `protobuf:"varint,4,opt,name=if_in_errors,json=ifInErrors,proto3" json:"if_in_errors,omitempty"` IfOutErrors int64 `protobuf:"varint,5,opt,name=if_out_errors,json=ifOutErrors,proto3" json:"if_out_errors,omitempty"` IfInDiscards int64 `protobuf:"varint,6,opt,name=if_in_discards,json=ifInDiscards,proto3" json:"if_in_discards,omitempty"` IfOutDiscards int64 `protobuf:"varint,7,opt,name=if_out_discards,json=ifOutDiscards,proto3" json:"if_out_discards,omitempty"` Timestamp int64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Unix timestamp in seconds unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InterfaceStat) Reset() { *x = InterfaceStat{} mi := &file_proto_agent_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *InterfaceStat) String() string { return protoimpl.X.MessageStringOf(x) } func (*InterfaceStat) ProtoMessage() {} func (x *InterfaceStat) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use InterfaceStat.ProtoReflect.Descriptor instead. func (*InterfaceStat) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{8} } func (x *InterfaceStat) GetInterfaceId() string { if x != nil { return x.InterfaceId } return "" } func (x *InterfaceStat) GetIfInOctets() int64 { if x != nil { return x.IfInOctets } return 0 } func (x *InterfaceStat) GetIfOutOctets() int64 { if x != nil { return x.IfOutOctets } return 0 } func (x *InterfaceStat) GetIfInErrors() int64 { if x != nil { return x.IfInErrors } return 0 } func (x *InterfaceStat) GetIfOutErrors() int64 { if x != nil { return x.IfOutErrors } return 0 } func (x *InterfaceStat) GetIfInDiscards() int64 { if x != nil { return x.IfInDiscards } return 0 } func (x *InterfaceStat) GetIfOutDiscards() int64 { if x != nil { return x.IfOutDiscards } return 0 } func (x *InterfaceStat) GetTimestamp() int64 { if x != nil { return x.Timestamp } return 0 } type NeighborDiscovery struct { state protoimpl.MessageState `protogen:"open.v1"` InterfaceId string `protobuf:"bytes,1,opt,name=interface_id,json=interfaceId,proto3" json:"interface_id,omitempty"` Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` // "lldp" or "cdp" RemoteChassisId string `protobuf:"bytes,3,opt,name=remote_chassis_id,json=remoteChassisId,proto3" json:"remote_chassis_id,omitempty"` RemoteSystemName string `protobuf:"bytes,4,opt,name=remote_system_name,json=remoteSystemName,proto3" json:"remote_system_name,omitempty"` RemoteSystemDescription string `protobuf:"bytes,5,opt,name=remote_system_description,json=remoteSystemDescription,proto3" json:"remote_system_description,omitempty"` RemotePlatform string `protobuf:"bytes,6,opt,name=remote_platform,json=remotePlatform,proto3" json:"remote_platform,omitempty"` RemotePortId string `protobuf:"bytes,7,opt,name=remote_port_id,json=remotePortId,proto3" json:"remote_port_id,omitempty"` RemotePortDescription string `protobuf:"bytes,8,opt,name=remote_port_description,json=remotePortDescription,proto3" json:"remote_port_description,omitempty"` RemoteAddress string `protobuf:"bytes,9,opt,name=remote_address,json=remoteAddress,proto3" json:"remote_address,omitempty"` RemoteCapabilities []string `protobuf:"bytes,10,rep,name=remote_capabilities,json=remoteCapabilities,proto3" json:"remote_capabilities,omitempty"` Timestamp int64 `protobuf:"varint,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Unix timestamp in seconds unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *NeighborDiscovery) Reset() { *x = NeighborDiscovery{} mi := &file_proto_agent_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *NeighborDiscovery) String() string { return protoimpl.X.MessageStringOf(x) } func (*NeighborDiscovery) ProtoMessage() {} func (x *NeighborDiscovery) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use NeighborDiscovery.ProtoReflect.Descriptor instead. func (*NeighborDiscovery) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{9} } func (x *NeighborDiscovery) GetInterfaceId() string { if x != nil { return x.InterfaceId } return "" } func (x *NeighborDiscovery) GetProtocol() string { if x != nil { return x.Protocol } return "" } func (x *NeighborDiscovery) GetRemoteChassisId() string { if x != nil { return x.RemoteChassisId } return "" } func (x *NeighborDiscovery) GetRemoteSystemName() string { if x != nil { return x.RemoteSystemName } return "" } func (x *NeighborDiscovery) GetRemoteSystemDescription() string { if x != nil { return x.RemoteSystemDescription } return "" } func (x *NeighborDiscovery) GetRemotePlatform() string { if x != nil { return x.RemotePlatform } return "" } func (x *NeighborDiscovery) GetRemotePortId() string { if x != nil { return x.RemotePortId } return "" } func (x *NeighborDiscovery) GetRemotePortDescription() string { if x != nil { return x.RemotePortDescription } return "" } func (x *NeighborDiscovery) GetRemoteAddress() string { if x != nil { return x.RemoteAddress } return "" } func (x *NeighborDiscovery) GetRemoteCapabilities() []string { if x != nil { return x.RemoteCapabilities } return nil } func (x *NeighborDiscovery) GetTimestamp() int64 { if x != nil { return x.Timestamp } return 0 } type MonitoringCheck struct { state protoimpl.MessageState `protogen:"open.v1"` DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // "success" or "failure" ResponseTimeMs float64 `protobuf:"fixed64,3,opt,name=response_time_ms,json=responseTimeMs,proto3" json:"response_time_ms,omitempty"` // Optional - only present on success Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Unix timestamp in seconds unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MonitoringCheck) Reset() { *x = MonitoringCheck{} mi := &file_proto_agent_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MonitoringCheck) String() string { return protoimpl.X.MessageStringOf(x) } func (*MonitoringCheck) ProtoMessage() {} func (x *MonitoringCheck) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MonitoringCheck.ProtoReflect.Descriptor instead. func (*MonitoringCheck) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{10} } func (x *MonitoringCheck) GetDeviceId() string { if x != nil { return x.DeviceId } return "" } func (x *MonitoringCheck) GetStatus() string { if x != nil { return x.Status } return "" } func (x *MonitoringCheck) GetResponseTimeMs() float64 { if x != nil { return x.ResponseTimeMs } return 0 } func (x *MonitoringCheck) GetTimestamp() int64 { if x != nil { return x.Timestamp } return 0 } // Heartbeat metadata type HeartbeatMetadata struct { state protoimpl.MessageState `protogen:"open.v1"` Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` UptimeSeconds uint64 `protobuf:"varint,3,opt,name=uptime_seconds,json=uptimeSeconds,proto3" json:"uptime_seconds,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *HeartbeatMetadata) Reset() { *x = HeartbeatMetadata{} mi := &file_proto_agent_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *HeartbeatMetadata) String() string { return protoimpl.X.MessageStringOf(x) } func (*HeartbeatMetadata) ProtoMessage() {} func (x *HeartbeatMetadata) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use HeartbeatMetadata.ProtoReflect.Descriptor instead. func (*HeartbeatMetadata) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{11} } func (x *HeartbeatMetadata) GetVersion() string { if x != nil { return x.Version } return "" } func (x *HeartbeatMetadata) GetHostname() string { if x != nil { return x.Hostname } return "" } func (x *HeartbeatMetadata) GetUptimeSeconds() uint64 { if x != nil { return x.UptimeSeconds } return 0 } type HeartbeatResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *HeartbeatResponse) Reset() { *x = HeartbeatResponse{} mi := &file_proto_agent_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *HeartbeatResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*HeartbeatResponse) ProtoMessage() {} func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead. func (*HeartbeatResponse) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{12} } func (x *HeartbeatResponse) GetStatus() string { if x != nil { return x.Status } return "" } type AgentJobList struct { state protoimpl.MessageState `protogen:"open.v1"` Jobs []*AgentJob `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AgentJobList) Reset() { *x = AgentJobList{} mi := &file_proto_agent_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AgentJobList) String() string { return protoimpl.X.MessageStringOf(x) } func (*AgentJobList) ProtoMessage() {} func (x *AgentJobList) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AgentJobList.ProtoReflect.Descriptor instead. func (*AgentJobList) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{13} } func (x *AgentJobList) GetJobs() []*AgentJob { if x != nil { return x.Jobs } return nil } type AgentJob struct { state protoimpl.MessageState `protogen:"open.v1"` JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` JobType JobType `protobuf:"varint,2,opt,name=job_type,json=jobType,proto3,enum=towerops.agent.JobType" json:"job_type,omitempty"` DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` SnmpDevice *SnmpDevice `protobuf:"bytes,4,opt,name=snmp_device,json=snmpDevice,proto3" json:"snmp_device,omitempty"` Queries []*SnmpQuery `protobuf:"bytes,5,rep,name=queries,proto3" json:"queries,omitempty"` MikrotikDevice *MikrotikDevice `protobuf:"bytes,6,opt,name=mikrotik_device,json=mikrotikDevice,proto3" json:"mikrotik_device,omitempty"` MikrotikCommands []*MikrotikCommand `protobuf:"bytes,7,rep,name=mikrotik_commands,json=mikrotikCommands,proto3" json:"mikrotik_commands,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AgentJob) Reset() { *x = AgentJob{} mi := &file_proto_agent_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AgentJob) String() string { return protoimpl.X.MessageStringOf(x) } func (*AgentJob) ProtoMessage() {} func (x *AgentJob) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AgentJob.ProtoReflect.Descriptor instead. func (*AgentJob) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{14} } func (x *AgentJob) GetJobId() string { if x != nil { return x.JobId } return "" } func (x *AgentJob) GetJobType() JobType { if x != nil { return x.JobType } return JobType_DISCOVER } func (x *AgentJob) GetDeviceId() string { if x != nil { return x.DeviceId } return "" } func (x *AgentJob) GetSnmpDevice() *SnmpDevice { if x != nil { return x.SnmpDevice } return nil } func (x *AgentJob) GetQueries() []*SnmpQuery { if x != nil { return x.Queries } return nil } func (x *AgentJob) GetMikrotikDevice() *MikrotikDevice { if x != nil { return x.MikrotikDevice } return nil } func (x *AgentJob) GetMikrotikCommands() []*MikrotikCommand { if x != nil { return x.MikrotikCommands } return nil } type SnmpDevice struct { state protoimpl.MessageState `protogen:"open.v1"` Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Community string `protobuf:"bytes,2,opt,name=community,proto3" json:"community,omitempty"` // v1/v2c only (deprecated for v3) Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` // SNMPv3 credentials (optional, backward compatible) V3SecurityLevel string `protobuf:"bytes,5,opt,name=v3_security_level,json=v3SecurityLevel,proto3" json:"v3_security_level,omitempty"` // "noAuthNoPriv" | "authNoPriv" | "authPriv" V3Username string `protobuf:"bytes,6,opt,name=v3_username,json=v3Username,proto3" json:"v3_username,omitempty"` V3AuthProtocol string `protobuf:"bytes,7,opt,name=v3_auth_protocol,json=v3AuthProtocol,proto3" json:"v3_auth_protocol,omitempty"` // "MD5" | "SHA" | "SHA-256" | etc. V3AuthPassword string `protobuf:"bytes,8,opt,name=v3_auth_password,json=v3AuthPassword,proto3" json:"v3_auth_password,omitempty"` // Decrypted before sending V3PrivProtocol string `protobuf:"bytes,9,opt,name=v3_priv_protocol,json=v3PrivProtocol,proto3" json:"v3_priv_protocol,omitempty"` // "DES" | "AES" | "AES-256" | etc. V3PrivPassword string `protobuf:"bytes,10,opt,name=v3_priv_password,json=v3PrivPassword,proto3" json:"v3_priv_password,omitempty"` // Decrypted before sending Transport string `protobuf:"bytes,11,opt,name=transport,proto3" json:"transport,omitempty"` // "udp" | "tcp" unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SnmpDevice) Reset() { *x = SnmpDevice{} mi := &file_proto_agent_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SnmpDevice) String() string { return protoimpl.X.MessageStringOf(x) } func (*SnmpDevice) ProtoMessage() {} func (x *SnmpDevice) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SnmpDevice.ProtoReflect.Descriptor instead. func (*SnmpDevice) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{15} } func (x *SnmpDevice) GetIp() string { if x != nil { return x.Ip } return "" } func (x *SnmpDevice) GetCommunity() string { if x != nil { return x.Community } return "" } func (x *SnmpDevice) GetVersion() string { if x != nil { return x.Version } return "" } func (x *SnmpDevice) GetPort() uint32 { if x != nil { return x.Port } return 0 } func (x *SnmpDevice) GetV3SecurityLevel() string { if x != nil { return x.V3SecurityLevel } return "" } func (x *SnmpDevice) GetV3Username() string { if x != nil { return x.V3Username } return "" } func (x *SnmpDevice) GetV3AuthProtocol() string { if x != nil { return x.V3AuthProtocol } return "" } func (x *SnmpDevice) GetV3AuthPassword() string { if x != nil { return x.V3AuthPassword } return "" } func (x *SnmpDevice) GetV3PrivProtocol() string { if x != nil { return x.V3PrivProtocol } return "" } func (x *SnmpDevice) GetV3PrivPassword() string { if x != nil { return x.V3PrivPassword } return "" } func (x *SnmpDevice) GetTransport() string { if x != nil { return x.Transport } return "" } type SnmpQuery struct { state protoimpl.MessageState `protogen:"open.v1"` QueryType QueryType `protobuf:"varint,1,opt,name=query_type,json=queryType,proto3,enum=towerops.agent.QueryType" json:"query_type,omitempty"` Oids []string `protobuf:"bytes,2,rep,name=oids,proto3" json:"oids,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SnmpQuery) Reset() { *x = SnmpQuery{} mi := &file_proto_agent_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SnmpQuery) String() string { return protoimpl.X.MessageStringOf(x) } func (*SnmpQuery) ProtoMessage() {} func (x *SnmpQuery) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SnmpQuery.ProtoReflect.Descriptor instead. func (*SnmpQuery) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{16} } func (x *SnmpQuery) GetQueryType() QueryType { if x != nil { return x.QueryType } return QueryType_GET } func (x *SnmpQuery) GetOids() []string { if x != nil { return x.Oids } return nil } type SnmpResult struct { state protoimpl.MessageState `protogen:"open.v1"` DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` JobType JobType `protobuf:"varint,2,opt,name=job_type,json=jobType,proto3,enum=towerops.agent.JobType" json:"job_type,omitempty"` OidValues map[string]string `protobuf:"bytes,3,rep,name=oid_values,json=oidValues,proto3" json:"oid_values,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` JobId string `protobuf:"bytes,5,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SnmpResult) Reset() { *x = SnmpResult{} mi := &file_proto_agent_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SnmpResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*SnmpResult) ProtoMessage() {} func (x *SnmpResult) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SnmpResult.ProtoReflect.Descriptor instead. func (*SnmpResult) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{17} } func (x *SnmpResult) GetDeviceId() string { if x != nil { return x.DeviceId } return "" } func (x *SnmpResult) GetJobType() JobType { if x != nil { return x.JobType } return JobType_DISCOVER } func (x *SnmpResult) GetOidValues() map[string]string { if x != nil { return x.OidValues } return nil } func (x *SnmpResult) GetTimestamp() int64 { if x != nil { return x.Timestamp } return 0 } func (x *SnmpResult) GetJobId() string { if x != nil { return x.JobId } return "" } type AgentHeartbeat struct { state protoimpl.MessageState `protogen:"open.v1"` Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"` UptimeSeconds uint64 `protobuf:"varint,3,opt,name=uptime_seconds,json=uptimeSeconds,proto3" json:"uptime_seconds,omitempty"` IpAddress string `protobuf:"bytes,4,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` Arch string `protobuf:"bytes,5,opt,name=arch,proto3" json:"arch,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AgentHeartbeat) Reset() { *x = AgentHeartbeat{} mi := &file_proto_agent_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AgentHeartbeat) String() string { return protoimpl.X.MessageStringOf(x) } func (*AgentHeartbeat) ProtoMessage() {} func (x *AgentHeartbeat) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AgentHeartbeat.ProtoReflect.Descriptor instead. func (*AgentHeartbeat) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{18} } func (x *AgentHeartbeat) GetVersion() string { if x != nil { return x.Version } return "" } func (x *AgentHeartbeat) GetHostname() string { if x != nil { return x.Hostname } return "" } func (x *AgentHeartbeat) GetUptimeSeconds() uint64 { if x != nil { return x.UptimeSeconds } return 0 } func (x *AgentHeartbeat) GetIpAddress() string { if x != nil { return x.IpAddress } return "" } func (x *AgentHeartbeat) GetArch() string { if x != nil { return x.Arch } return "" } type AgentError struct { state protoimpl.MessageState `protogen:"open.v1"` DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *AgentError) Reset() { *x = AgentError{} mi := &file_proto_agent_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *AgentError) String() string { return protoimpl.X.MessageStringOf(x) } func (*AgentError) ProtoMessage() {} func (x *AgentError) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AgentError.ProtoReflect.Descriptor instead. func (*AgentError) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{19} } func (x *AgentError) GetDeviceId() string { if x != nil { return x.DeviceId } return "" } func (x *AgentError) GetErrorMessage() string { if x != nil { return x.ErrorMessage } return "" } func (x *AgentError) GetTimestamp() int64 { if x != nil { return x.Timestamp } return 0 } type CredentialTestResult struct { state protoimpl.MessageState `protogen:"open.v1"` TestId string `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"` Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // Empty if success SystemDescription string `protobuf:"bytes,4,opt,name=system_description,json=systemDescription,proto3" json:"system_description,omitempty"` // sysDescr.0 value if success Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CredentialTestResult) Reset() { *x = CredentialTestResult{} mi := &file_proto_agent_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CredentialTestResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*CredentialTestResult) ProtoMessage() {} func (x *CredentialTestResult) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CredentialTestResult.ProtoReflect.Descriptor instead. func (*CredentialTestResult) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{20} } func (x *CredentialTestResult) GetTestId() string { if x != nil { return x.TestId } return "" } func (x *CredentialTestResult) GetSuccess() bool { if x != nil { return x.Success } return false } func (x *CredentialTestResult) GetErrorMessage() string { if x != nil { return x.ErrorMessage } return "" } func (x *CredentialTestResult) GetSystemDescription() string { if x != nil { return x.SystemDescription } return "" } func (x *CredentialTestResult) GetTimestamp() int64 { if x != nil { return x.Timestamp } return 0 } type MikrotikDevice struct { state protoimpl.MessageState `protogen:"open.v1"` Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` UseSsl bool `protobuf:"varint,5,opt,name=use_ssl,json=useSsl,proto3" json:"use_ssl,omitempty"` SshPort uint32 `protobuf:"varint,6,opt,name=ssh_port,json=sshPort,proto3" json:"ssh_port,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MikrotikDevice) Reset() { *x = MikrotikDevice{} mi := &file_proto_agent_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MikrotikDevice) String() string { return protoimpl.X.MessageStringOf(x) } func (*MikrotikDevice) ProtoMessage() {} func (x *MikrotikDevice) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MikrotikDevice.ProtoReflect.Descriptor instead. func (*MikrotikDevice) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{21} } func (x *MikrotikDevice) GetIp() string { if x != nil { return x.Ip } return "" } func (x *MikrotikDevice) GetPort() uint32 { if x != nil { return x.Port } return 0 } func (x *MikrotikDevice) GetUsername() string { if x != nil { return x.Username } return "" } func (x *MikrotikDevice) GetPassword() string { if x != nil { return x.Password } return "" } func (x *MikrotikDevice) GetUseSsl() bool { if x != nil { return x.UseSsl } return false } func (x *MikrotikDevice) GetSshPort() uint32 { if x != nil { return x.SshPort } return 0 } type MikrotikCommand struct { state protoimpl.MessageState `protogen:"open.v1"` Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` Args map[string]string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MikrotikCommand) Reset() { *x = MikrotikCommand{} mi := &file_proto_agent_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MikrotikCommand) String() string { return protoimpl.X.MessageStringOf(x) } func (*MikrotikCommand) ProtoMessage() {} func (x *MikrotikCommand) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MikrotikCommand.ProtoReflect.Descriptor instead. func (*MikrotikCommand) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{22} } func (x *MikrotikCommand) GetCommand() string { if x != nil { return x.Command } return "" } func (x *MikrotikCommand) GetArgs() map[string]string { if x != nil { return x.Args } return nil } type MikrotikResult struct { state protoimpl.MessageState `protogen:"open.v1"` DeviceId string `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` Sentences []*MikrotikSentence `protobuf:"bytes,3,rep,name=sentences,proto3" json:"sentences,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MikrotikResult) Reset() { *x = MikrotikResult{} mi := &file_proto_agent_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MikrotikResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*MikrotikResult) ProtoMessage() {} func (x *MikrotikResult) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MikrotikResult.ProtoReflect.Descriptor instead. func (*MikrotikResult) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{23} } func (x *MikrotikResult) GetDeviceId() string { if x != nil { return x.DeviceId } return "" } func (x *MikrotikResult) GetJobId() string { if x != nil { return x.JobId } return "" } func (x *MikrotikResult) GetSentences() []*MikrotikSentence { if x != nil { return x.Sentences } return nil } func (x *MikrotikResult) GetError() string { if x != nil { return x.Error } return "" } func (x *MikrotikResult) GetTimestamp() int64 { if x != nil { return x.Timestamp } return 0 } type MikrotikSentence struct { state protoimpl.MessageState `protogen:"open.v1"` Attributes map[string]string `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MikrotikSentence) Reset() { *x = MikrotikSentence{} mi := &file_proto_agent_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MikrotikSentence) String() string { return protoimpl.X.MessageStringOf(x) } func (*MikrotikSentence) ProtoMessage() {} func (x *MikrotikSentence) ProtoReflect() protoreflect.Message { mi := &file_proto_agent_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MikrotikSentence.ProtoReflect.Descriptor instead. func (*MikrotikSentence) Descriptor() ([]byte, []int) { return file_proto_agent_proto_rawDescGZIP(), []int{24} } func (x *MikrotikSentence) GetAttributes() map[string]string { if x != nil { return x.Attributes } return nil } var File_proto_agent_proto protoreflect.FileDescriptor const file_proto_agent_proto_rawDesc = "" + "\n" + "\x11proto/agent.proto\x12\x0etowerops.agent\"\x8d\x01\n" + "\vAgentConfig\x12\x18\n" + "\aversion\x18\x01 \x01(\tR\aversion\x122\n" + "\x15poll_interval_seconds\x18\x02 \x01(\rR\x13pollIntervalSeconds\x120\n" + "\adevices\x18\x03 \x03(\v2\x16.towerops.agent.DeviceR\adevices\"\x81\x03\n" + "\x06Device\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12\x1d\n" + "\n" + "ip_address\x18\x03 \x01(\tR\tipAddress\x12.\n" + "\x04snmp\x18\x04 \x01(\v2\x1a.towerops.agent.SnmpConfigR\x04snmp\x122\n" + "\x15poll_interval_seconds\x18\x05 \x01(\rR\x13pollIntervalSeconds\x120\n" + "\asensors\x18\x06 \x03(\v2\x16.towerops.agent.SensorR\asensors\x129\n" + "\n" + "interfaces\x18\a \x03(\v2\x19.towerops.agent.InterfaceR\n" + "interfaces\x12-\n" + "\x12monitoring_enabled\x18\b \x01(\bR\x11monitoringEnabled\x124\n" + "\x16check_interval_seconds\x18\t \x01(\rR\x14checkIntervalSeconds\"\x90\x01\n" + "\n" + "SnmpConfig\x12\x18\n" + "\aenabled\x18\x01 \x01(\bR\aenabled\x12\x18\n" + "\aversion\x18\x02 \x01(\tR\aversion\x12\x1c\n" + "\tcommunity\x18\x03 \x01(\tR\tcommunity\x12\x12\n" + "\x04port\x18\x04 \x01(\rR\x04port\x12\x1c\n" + "\ttransport\x18\x05 \x01(\tR\ttransport\"\xeb\x01\n" + "\x06Sensor\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + "\x04type\x18\x02 \x01(\tR\x04type\x12\x10\n" + "\x03oid\x18\x03 \x01(\tR\x03oid\x12\x18\n" + "\adivisor\x18\x04 \x01(\x01R\adivisor\x12\x12\n" + "\x04unit\x18\x05 \x01(\tR\x04unit\x12@\n" + "\bmetadata\x18\x06 \x03(\v2$.towerops.agent.Sensor.MetadataEntryR\bmetadata\x1a;\n" + "\rMetadataEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"O\n" + "\tInterface\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" + "\bif_index\x18\x02 \x01(\rR\aifIndex\x12\x17\n" + "\aif_name\x18\x03 \x01(\tR\x06ifName\"?\n" + "\vMetricBatch\x120\n" + "\ametrics\x18\x01 \x03(\v2\x16.towerops.agent.MetricR\ametrics\"\xc9\x02\n" + "\x06Metric\x12F\n" + "\x0esensor_reading\x18\x01 \x01(\v2\x1d.towerops.agent.SensorReadingH\x00R\rsensorReading\x12F\n" + "\x0einterface_stat\x18\x02 \x01(\v2\x1d.towerops.agent.InterfaceStatH\x00R\rinterfaceStat\x12R\n" + "\x12neighbor_discovery\x18\x03 \x01(\v2!.towerops.agent.NeighborDiscoveryH\x00R\x11neighborDiscovery\x12L\n" + "\x10monitoring_check\x18\x04 \x01(\v2\x1f.towerops.agent.MonitoringCheckH\x00R\x0fmonitoringCheckB\r\n" + "\vmetric_type\"x\n" + "\rSensorReading\x12\x1b\n" + "\tsensor_id\x18\x01 \x01(\tR\bsensorId\x12\x14\n" + "\x05value\x18\x02 \x01(\x01R\x05value\x12\x16\n" + "\x06status\x18\x03 \x01(\tR\x06status\x12\x1c\n" + "\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\"\xaa\x02\n" + "\rInterfaceStat\x12!\n" + "\finterface_id\x18\x01 \x01(\tR\vinterfaceId\x12 \n" + "\fif_in_octets\x18\x02 \x01(\x03R\n" + "ifInOctets\x12\"\n" + "\rif_out_octets\x18\x03 \x01(\x03R\vifOutOctets\x12 \n" + "\fif_in_errors\x18\x04 \x01(\x03R\n" + "ifInErrors\x12\"\n" + "\rif_out_errors\x18\x05 \x01(\x03R\vifOutErrors\x12$\n" + "\x0eif_in_discards\x18\x06 \x01(\x03R\fifInDiscards\x12&\n" + "\x0fif_out_discards\x18\a \x01(\x03R\rifOutDiscards\x12\x1c\n" + "\ttimestamp\x18\b \x01(\x03R\ttimestamp\"\xe5\x03\n" + "\x11NeighborDiscovery\x12!\n" + "\finterface_id\x18\x01 \x01(\tR\vinterfaceId\x12\x1a\n" + "\bprotocol\x18\x02 \x01(\tR\bprotocol\x12*\n" + "\x11remote_chassis_id\x18\x03 \x01(\tR\x0fremoteChassisId\x12,\n" + "\x12remote_system_name\x18\x04 \x01(\tR\x10remoteSystemName\x12:\n" + "\x19remote_system_description\x18\x05 \x01(\tR\x17remoteSystemDescription\x12'\n" + "\x0fremote_platform\x18\x06 \x01(\tR\x0eremotePlatform\x12$\n" + "\x0eremote_port_id\x18\a \x01(\tR\fremotePortId\x126\n" + "\x17remote_port_description\x18\b \x01(\tR\x15remotePortDescription\x12%\n" + "\x0eremote_address\x18\t \x01(\tR\rremoteAddress\x12/\n" + "\x13remote_capabilities\x18\n" + " \x03(\tR\x12remoteCapabilities\x12\x1c\n" + "\ttimestamp\x18\v \x01(\x03R\ttimestamp\"\x8e\x01\n" + "\x0fMonitoringCheck\x12\x1b\n" + "\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12\x16\n" + "\x06status\x18\x02 \x01(\tR\x06status\x12(\n" + "\x10response_time_ms\x18\x03 \x01(\x01R\x0eresponseTimeMs\x12\x1c\n" + "\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\"p\n" + "\x11HeartbeatMetadata\x12\x18\n" + "\aversion\x18\x01 \x01(\tR\aversion\x12\x1a\n" + "\bhostname\x18\x02 \x01(\tR\bhostname\x12%\n" + "\x0euptime_seconds\x18\x03 \x01(\x04R\ruptimeSeconds\"+\n" + "\x11HeartbeatResponse\x12\x16\n" + "\x06status\x18\x01 \x01(\tR\x06status\"<\n" + "\fAgentJobList\x12,\n" + "\x04jobs\x18\x01 \x03(\v2\x18.towerops.agent.AgentJobR\x04jobs\"\xfb\x02\n" + "\bAgentJob\x12\x15\n" + "\x06job_id\x18\x01 \x01(\tR\x05jobId\x122\n" + "\bjob_type\x18\x02 \x01(\x0e2\x17.towerops.agent.JobTypeR\ajobType\x12\x1b\n" + "\tdevice_id\x18\x03 \x01(\tR\bdeviceId\x12;\n" + "\vsnmp_device\x18\x04 \x01(\v2\x1a.towerops.agent.SnmpDeviceR\n" + "snmpDevice\x123\n" + "\aqueries\x18\x05 \x03(\v2\x19.towerops.agent.SnmpQueryR\aqueries\x12G\n" + "\x0fmikrotik_device\x18\x06 \x01(\v2\x1e.towerops.agent.MikrotikDeviceR\x0emikrotikDevice\x12L\n" + "\x11mikrotik_commands\x18\a \x03(\v2\x1f.towerops.agent.MikrotikCommandR\x10mikrotikCommands\"\xfb\x02\n" + "\n" + "SnmpDevice\x12\x0e\n" + "\x02ip\x18\x01 \x01(\tR\x02ip\x12\x1c\n" + "\tcommunity\x18\x02 \x01(\tR\tcommunity\x12\x18\n" + "\aversion\x18\x03 \x01(\tR\aversion\x12\x12\n" + "\x04port\x18\x04 \x01(\rR\x04port\x12*\n" + "\x11v3_security_level\x18\x05 \x01(\tR\x0fv3SecurityLevel\x12\x1f\n" + "\vv3_username\x18\x06 \x01(\tR\n" + "v3Username\x12(\n" + "\x10v3_auth_protocol\x18\a \x01(\tR\x0ev3AuthProtocol\x12(\n" + "\x10v3_auth_password\x18\b \x01(\tR\x0ev3AuthPassword\x12(\n" + "\x10v3_priv_protocol\x18\t \x01(\tR\x0ev3PrivProtocol\x12(\n" + "\x10v3_priv_password\x18\n" + " \x01(\tR\x0ev3PrivPassword\x12\x1c\n" + "\ttransport\x18\v \x01(\tR\ttransport\"Y\n" + "\tSnmpQuery\x128\n" + "\n" + "query_type\x18\x01 \x01(\x0e2\x19.towerops.agent.QueryTypeR\tqueryType\x12\x12\n" + "\x04oids\x18\x02 \x03(\tR\x04oids\"\x9a\x02\n" + "\n" + "SnmpResult\x12\x1b\n" + "\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x122\n" + "\bjob_type\x18\x02 \x01(\x0e2\x17.towerops.agent.JobTypeR\ajobType\x12H\n" + "\n" + "oid_values\x18\x03 \x03(\v2).towerops.agent.SnmpResult.OidValuesEntryR\toidValues\x12\x1c\n" + "\ttimestamp\x18\x04 \x01(\x03R\ttimestamp\x12\x15\n" + "\x06job_id\x18\x05 \x01(\tR\x05jobId\x1a<\n" + "\x0eOidValuesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa0\x01\n" + "\x0eAgentHeartbeat\x12\x18\n" + "\aversion\x18\x01 \x01(\tR\aversion\x12\x1a\n" + "\bhostname\x18\x02 \x01(\tR\bhostname\x12%\n" + "\x0euptime_seconds\x18\x03 \x01(\x04R\ruptimeSeconds\x12\x1d\n" + "\n" + "ip_address\x18\x04 \x01(\tR\tipAddress\x12\x12\n" + "\x04arch\x18\x05 \x01(\tR\x04arch\"l\n" + "\n" + "AgentError\x12\x1b\n" + "\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12#\n" + "\rerror_message\x18\x02 \x01(\tR\ferrorMessage\x12\x1c\n" + "\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\"\xbb\x01\n" + "\x14CredentialTestResult\x12\x17\n" + "\atest_id\x18\x01 \x01(\tR\x06testId\x12\x18\n" + "\asuccess\x18\x02 \x01(\bR\asuccess\x12#\n" + "\rerror_message\x18\x03 \x01(\tR\ferrorMessage\x12-\n" + "\x12system_description\x18\x04 \x01(\tR\x11systemDescription\x12\x1c\n" + "\ttimestamp\x18\x05 \x01(\x03R\ttimestamp\"\xa0\x01\n" + "\x0eMikrotikDevice\x12\x0e\n" + "\x02ip\x18\x01 \x01(\tR\x02ip\x12\x12\n" + "\x04port\x18\x02 \x01(\rR\x04port\x12\x1a\n" + "\busername\x18\x03 \x01(\tR\busername\x12\x1a\n" + "\bpassword\x18\x04 \x01(\tR\bpassword\x12\x17\n" + "\ause_ssl\x18\x05 \x01(\bR\x06useSsl\x12\x19\n" + "\bssh_port\x18\x06 \x01(\rR\asshPort\"\xa3\x01\n" + "\x0fMikrotikCommand\x12\x18\n" + "\acommand\x18\x01 \x01(\tR\acommand\x12=\n" + "\x04args\x18\x02 \x03(\v2).towerops.agent.MikrotikCommand.ArgsEntryR\x04args\x1a7\n" + "\tArgsEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xb8\x01\n" + "\x0eMikrotikResult\x12\x1b\n" + "\tdevice_id\x18\x01 \x01(\tR\bdeviceId\x12\x15\n" + "\x06job_id\x18\x02 \x01(\tR\x05jobId\x12>\n" + "\tsentences\x18\x03 \x03(\v2 .towerops.agent.MikrotikSentenceR\tsentences\x12\x14\n" + "\x05error\x18\x04 \x01(\tR\x05error\x12\x1c\n" + "\ttimestamp\x18\x05 \x01(\x03R\ttimestamp\"\xa3\x01\n" + "\x10MikrotikSentence\x12P\n" + "\n" + "attributes\x18\x01 \x03(\v20.towerops.agent.MikrotikSentence.AttributesEntryR\n" + "attributes\x1a=\n" + "\x0fAttributesEntry\x12\x10\n" + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01*O\n" + "\aJobType\x12\f\n" + "\bDISCOVER\x10\x00\x12\b\n" + "\x04POLL\x10\x01\x12\f\n" + "\bMIKROTIK\x10\x02\x12\x14\n" + "\x10TEST_CREDENTIALS\x10\x03\x12\b\n" + "\x04PING\x10\x04*\x1e\n" + "\tQueryType\x12\a\n" + "\x03GET\x10\x00\x12\b\n" + "\x04WALK\x10\x01B+Z)github.com/towerops-app/towerops-agent/pbb\x06proto3" var ( file_proto_agent_proto_rawDescOnce sync.Once file_proto_agent_proto_rawDescData []byte ) func file_proto_agent_proto_rawDescGZIP() []byte { file_proto_agent_proto_rawDescOnce.Do(func() { file_proto_agent_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_agent_proto_rawDesc), len(file_proto_agent_proto_rawDesc))) }) return file_proto_agent_proto_rawDescData } var file_proto_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_proto_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 29) var file_proto_agent_proto_goTypes = []any{ (JobType)(0), // 0: towerops.agent.JobType (QueryType)(0), // 1: towerops.agent.QueryType (*AgentConfig)(nil), // 2: towerops.agent.AgentConfig (*Device)(nil), // 3: towerops.agent.Device (*SnmpConfig)(nil), // 4: towerops.agent.SnmpConfig (*Sensor)(nil), // 5: towerops.agent.Sensor (*Interface)(nil), // 6: towerops.agent.Interface (*MetricBatch)(nil), // 7: towerops.agent.MetricBatch (*Metric)(nil), // 8: towerops.agent.Metric (*SensorReading)(nil), // 9: towerops.agent.SensorReading (*InterfaceStat)(nil), // 10: towerops.agent.InterfaceStat (*NeighborDiscovery)(nil), // 11: towerops.agent.NeighborDiscovery (*MonitoringCheck)(nil), // 12: towerops.agent.MonitoringCheck (*HeartbeatMetadata)(nil), // 13: towerops.agent.HeartbeatMetadata (*HeartbeatResponse)(nil), // 14: towerops.agent.HeartbeatResponse (*AgentJobList)(nil), // 15: towerops.agent.AgentJobList (*AgentJob)(nil), // 16: towerops.agent.AgentJob (*SnmpDevice)(nil), // 17: towerops.agent.SnmpDevice (*SnmpQuery)(nil), // 18: towerops.agent.SnmpQuery (*SnmpResult)(nil), // 19: towerops.agent.SnmpResult (*AgentHeartbeat)(nil), // 20: towerops.agent.AgentHeartbeat (*AgentError)(nil), // 21: towerops.agent.AgentError (*CredentialTestResult)(nil), // 22: towerops.agent.CredentialTestResult (*MikrotikDevice)(nil), // 23: towerops.agent.MikrotikDevice (*MikrotikCommand)(nil), // 24: towerops.agent.MikrotikCommand (*MikrotikResult)(nil), // 25: towerops.agent.MikrotikResult (*MikrotikSentence)(nil), // 26: towerops.agent.MikrotikSentence nil, // 27: towerops.agent.Sensor.MetadataEntry nil, // 28: towerops.agent.SnmpResult.OidValuesEntry nil, // 29: towerops.agent.MikrotikCommand.ArgsEntry nil, // 30: towerops.agent.MikrotikSentence.AttributesEntry } var file_proto_agent_proto_depIdxs = []int32{ 3, // 0: towerops.agent.AgentConfig.devices:type_name -> towerops.agent.Device 4, // 1: towerops.agent.Device.snmp:type_name -> towerops.agent.SnmpConfig 5, // 2: towerops.agent.Device.sensors:type_name -> towerops.agent.Sensor 6, // 3: towerops.agent.Device.interfaces:type_name -> towerops.agent.Interface 27, // 4: towerops.agent.Sensor.metadata:type_name -> towerops.agent.Sensor.MetadataEntry 8, // 5: towerops.agent.MetricBatch.metrics:type_name -> towerops.agent.Metric 9, // 6: towerops.agent.Metric.sensor_reading:type_name -> towerops.agent.SensorReading 10, // 7: towerops.agent.Metric.interface_stat:type_name -> towerops.agent.InterfaceStat 11, // 8: towerops.agent.Metric.neighbor_discovery:type_name -> towerops.agent.NeighborDiscovery 12, // 9: towerops.agent.Metric.monitoring_check:type_name -> towerops.agent.MonitoringCheck 16, // 10: towerops.agent.AgentJobList.jobs:type_name -> towerops.agent.AgentJob 0, // 11: towerops.agent.AgentJob.job_type:type_name -> towerops.agent.JobType 17, // 12: towerops.agent.AgentJob.snmp_device:type_name -> towerops.agent.SnmpDevice 18, // 13: towerops.agent.AgentJob.queries:type_name -> towerops.agent.SnmpQuery 23, // 14: towerops.agent.AgentJob.mikrotik_device:type_name -> towerops.agent.MikrotikDevice 24, // 15: towerops.agent.AgentJob.mikrotik_commands:type_name -> towerops.agent.MikrotikCommand 1, // 16: towerops.agent.SnmpQuery.query_type:type_name -> towerops.agent.QueryType 0, // 17: towerops.agent.SnmpResult.job_type:type_name -> towerops.agent.JobType 28, // 18: towerops.agent.SnmpResult.oid_values:type_name -> towerops.agent.SnmpResult.OidValuesEntry 29, // 19: towerops.agent.MikrotikCommand.args:type_name -> towerops.agent.MikrotikCommand.ArgsEntry 26, // 20: towerops.agent.MikrotikResult.sentences:type_name -> towerops.agent.MikrotikSentence 30, // 21: towerops.agent.MikrotikSentence.attributes:type_name -> towerops.agent.MikrotikSentence.AttributesEntry 22, // [22:22] is the sub-list for method output_type 22, // [22:22] is the sub-list for method input_type 22, // [22:22] is the sub-list for extension type_name 22, // [22:22] is the sub-list for extension extendee 0, // [0:22] is the sub-list for field type_name } func init() { file_proto_agent_proto_init() } func file_proto_agent_proto_init() { if File_proto_agent_proto != nil { return } file_proto_agent_proto_msgTypes[6].OneofWrappers = []any{ (*Metric_SensorReading)(nil), (*Metric_InterfaceStat)(nil), (*Metric_NeighborDiscovery)(nil), (*Metric_MonitoringCheck)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_agent_proto_rawDesc), len(file_proto_agent_proto_rawDesc)), NumEnums: 2, NumMessages: 29, NumExtensions: 0, NumServices: 0, }, GoTypes: file_proto_agent_proto_goTypes, DependencyIndexes: file_proto_agent_proto_depIdxs, EnumInfos: file_proto_agent_proto_enumTypes, MessageInfos: file_proto_agent_proto_msgTypes, }.Build() File_proto_agent_proto = out.File file_proto_agent_proto_goTypes = nil file_proto_agent_proto_depIdxs = nil }