1 Star 1 Fork 1

小青子衿/lua与protobuf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
zmqmsg.proto 3.55 KB
一键复制 编辑 原始数据 按行查看 历史
小青子衿 提交于 2021-01-28 11:18 . add library
syntax = "proto3";
package zmqmsg;
//任务汇报
message taskReport
{
enum Type {
CREATE = 0;
START = 1;
PROGRESS = 2;
COMPLETE = 3;
FAILD = 4;
}
bytes taskName = 1;
Type taskType = 2;
bytes taskDesc = 3;
int32 queueNum = 4;
}
//表格数据存储
message List{
repeated bytes value = 1;
}
//组装二级指令数据
message secCmdData{
List columnName = 1;
repeated List rowList = 2;
bytes ossName = 3;
}
message CmdResultData{
repeated secCmdData cmdData = 1;
}
//-------------任务扫描结构体
message TaskScanData{
//网元名
repeated bytes vecExchids = 1;
//级别
repeated string vecLevels = 2;
//周期
int32 nPerlen = 3;
//每个线程的Nodeb数
int32 nNodebNumEveryThread = 4;
//
DataCollectReq collReq = 5;
};
//-------------数据采集
message DataCollectReq{
//任务名
string taskName = 1;
//数据类型
string dataType = 2;
//采集类型
string collectType = 3;
//网元名 根据网元名查找网元配置
bytes ossName = 4;
//周期
int32 nPerlen = 5;
////脚本内容 8 9 10为CDD专用,STS忽略之
message Commands{
string level = 1;
string cmdType = 2;
bytes cmd = 3;
string netType = 4;
repeated bytes scriptNodes = 5;
}
repeated Commands cmds = 6;
bytes nodeList = 7;
//每个线程的Nodeb数
int32 nNodebNumEveryThread = 8;
//采集时间
int64 collectTime = 9;
repeated string strStsLevels = 10;
//数据存储方式,0 、保存到数据库 1、通过数据包返回
int32 saveType = 11;
}
//大任务数据包
message WholeCollectReq{
//网元名 根据网元名查找网元配置
repeated bytes ossNames = 1;
//cllReq中的成员变量ossName客户端不用填写,由划分模块根据网元列表划分多个子任务来填写每个子任务的网元名
DataCollectReq cllReq = 2;
}
message DataDecodeReq{
DataCollectReq collReq = 1;
//执行模块的结果,提供给解码入库模块
bytes execRsltDir = 2;
}
//指令组 一组相关联的指令,0不允许失败,1允许失败
message CmdGroup{
message CmdPackage{
bytes cmdContent = 1;
bytes cmdReply = 2;
//-5 TELNET连接失败 -4 夺权失败 -3 发送失败 -2 发送成功,执行失败 -1 同组指令失败,略过未下发 1 发送成功,执行成功
int32 cmdRslt = 3;
}
repeated CmdPackage cmdList = 1;
int32 allowFailed = 2;
}
//指令下发请求 多个指令组 既包含多个相关联的指令组(不允许失败)也包含多个不相关的指令组(允许失败)
//下发顺序按照指令组顺序
message CmdDisposeReq{
string taskName = 1;
string IP = 2;
int32 port = 3;
string user = 4;
string password = 5;
string protocol = 6; //telnet协议 TELNET/SSH2
/*
字段名字不区分大小写
HW NODEB
ZTE MEID SubNetwork
*/
map<string, bytes> nodebData = 7;
string codeFmt = 8; //基站编码格式 GBK/UTF-8
repeated CmdGroup cmdGrps = 9;
int32 cmdTimeOver = 10; //单位:秒
int32 mutexRetryNum = 11; //默认1次
int32 mutexRetryInterval = 12; //单位:秒
int32 isAsyn = 13; //中兴特有 是否发送同步指令 0否,1是
}
message CmdDisposeResult{
repeated CmdGroup cmdGrps = 1;
string asynRslt = 2; //中兴,如果发送了sync指令
}
//任务请求
message taskRequest
{
string reqName = 1;
bytes data = 2;
}
//任务应答
message taskReply
{
enum type{
PROCESSING = 0;
SUCCESS = 1;
PARTIAL = 2;
FAILD = 3;
}
string taskName = 1;
type code = 2;
bytes msgInfo = 3;
//详情类型
string detailName = 4;
//详情结构
bytes details = 5;
}
message DataRecord
{
bytes ossName = 1;
string level = 2;
int32 dataNum = 3;
}
//采集结果
message CollectResult
{
repeated DataRecord ossLvRes = 1;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/little_gitee/lua-and-protobuf.git
git@gitee.com:little_gitee/lua-and-protobuf.git
little_gitee
lua-and-protobuf
lua与protobuf
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385