acl/app/master/tools/lib_global/json/service_struct.stub
2018-01-31 14:28:45 +08:00

71 lines
981 B
Plaintext

/**
* Copyright (C) 2015-2018 IQIYI
* All rights reserved.
*
* AUTHOR(S)
* Zheng Shuxin
* E-mail: zhengshuxin@qiyi.com
*
* VERSION
* Wed 03 Jan 2018 05:51:29 PM CST
*/
#pragma once
struct service_base
{
int status;
// Gson@optional
acl::string cmd;
};
struct service_info_t
{
int status;
long start;
acl::string name;
acl::string conf;
// Gson@optional
acl::string path;
// Gson@optional
acl::string version;
// Gson@optional
int fds;
// Gson@optional
long mem;
// Gson@optional
double cpu;
// Gson@optional
long io;
service_info_t(void)
{
status = -1;
start = -1;
fds = -1;
mem = -1;
cpu = -1;
io = -1;
}
};
struct service_list_res_t : service_base
{
std::vector<service_info_t> data;
};
struct service_dead_res_t : service_base
{
service_dead_res_t(void)
{
pid = -1;
}
acl::string path;
// Gson@optional
acl::string conf;
acl::string version;
int pid;
acl::string rcpt;
acl::string info;
};