verion which did not include the handling in RTService wth creating the

Json file
This commit is contained in:
2024-06-25 20:50:29 +02:00
parent 2650679989
commit 5285f8b26e
215 changed files with 26816 additions and 219 deletions

View File

@@ -0,0 +1,74 @@
/* ========================= LICENSE =================================
*
* Copyright (C) 2024 Markus Lehr
*
+ closed License property of Markus Lehr
*
* ========================= LICENSE =================================
*/
syntax = "proto3";
option py_generic_services = true;
package proto_messages;
///////////////////////////////////////////////////////
// RT Service
///////////////////////////////////////////////////////
message SCreateIn
{
string name = 1;
string id = 2;
int64 samplerate = 3;
int64 sampleperiod = 4;
int64 downtime = 5;
string status = 6;
}
message SDeleteIn
{
string id = 1;
}
message SMonStateIn
{
string id = 1;
}
message SMonStatesIn
{
string query = 1;
}
message SSetMonStateIn
{
string id = 1;
string status = 2;
}
message SResult
{
bool result = 1;
}
message SStateResult
{
repeated string result = 1;
}
service RTService
{
rpc CreateMonitoring(SCreateIn) returns (SResult);
rpc DeleteMonitoring (SDeleteIn) returns (SResult);
rpc GetMonitoringState (SMonStateIn) returns (SResult);
rpc GetMonitoringStates (SMonStatesIn) returns (SStateResult);
rpc SetMonitoringState (SSetMonStateIn) returns (SResult);
}

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: RTService.proto
# Protobuf Python Version: 5.26.1
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fRTService.proto\x12\x0eproto_messages\"q\n\tSCreateIn\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x12\n\nsamplerate\x18\x03 \x01(\x03\x12\x14\n\x0csampleperiod\x18\x04 \x01(\x03\x12\x10\n\x08\x64owntime\x18\x05 \x01(\x03\x12\x0e\n\x06status\x18\x06 \x01(\t\"\x17\n\tSDeleteIn\x12\n\n\x02id\x18\x01 \x01(\t\"\x19\n\x0bSMonStateIn\x12\n\n\x02id\x18\x01 \x01(\t\"\x1d\n\x0cSMonStatesIn\x12\r\n\x05query\x18\x01 \x01(\t\",\n\x0eSSetMonStateIn\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\t\"\x19\n\x07SResult\x12\x0e\n\x06result\x18\x01 \x01(\x08\"\x1e\n\x0cSStateResult\x12\x0e\n\x06result\x18\x01 \x03(\t2\x89\x03\n\tRTService\x12\x46\n\x10\x43reateMonitoring\x12\x19.proto_messages.SCreateIn\x1a\x17.proto_messages.SResult\x12\x46\n\x10\x44\x65leteMonitoring\x12\x19.proto_messages.SDeleteIn\x1a\x17.proto_messages.SResult\x12J\n\x12GetMonitoringState\x12\x1b.proto_messages.SMonStateIn\x1a\x17.proto_messages.SResult\x12Q\n\x13GetMonitoringStates\x12\x1c.proto_messages.SMonStatesIn\x1a\x1c.proto_messages.SStateResult\x12M\n\x12SetMonitoringState\x12\x1e.proto_messages.SSetMonStateIn\x1a\x17.proto_messages.SResultB\x03\x90\x01\x01\x62\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'RTService_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\220\001\001'
_globals['_SCREATEIN']._serialized_start=35
_globals['_SCREATEIN']._serialized_end=148
_globals['_SDELETEIN']._serialized_start=150
_globals['_SDELETEIN']._serialized_end=173
_globals['_SMONSTATEIN']._serialized_start=175
_globals['_SMONSTATEIN']._serialized_end=200
_globals['_SMONSTATESIN']._serialized_start=202
_globals['_SMONSTATESIN']._serialized_end=231
_globals['_SSETMONSTATEIN']._serialized_start=233
_globals['_SSETMONSTATEIN']._serialized_end=277
_globals['_SRESULT']._serialized_start=279
_globals['_SRESULT']._serialized_end=304
_globals['_SSTATERESULT']._serialized_start=306
_globals['_SSTATERESULT']._serialized_end=336
_globals['_RTSERVICE']._serialized_start=339
_globals['_RTSERVICE']._serialized_end=732
_builder.BuildServices(DESCRIPTOR, 'RTService_pb2', _globals)
# @@protoc_insertion_point(module_scope)