Skip to content

Commit

Permalink
fix notifyF.tars to newest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Nov 14, 2023
1 parent ee14059 commit 9319267
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 1,119 deletions.
108 changes: 54 additions & 54 deletions tars/protocol/res/NotifyF.tars
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,36 @@

module notifyf
{

/**
* notify信息的键值
*/
struct NotifyKey
{
1 require string name; //为app+servername 例如:Comm.BindServer
2 require string ip; //ip
3 require int page;
};

/**
* 上报信息的单条内容
*/
struct NotifyItem
{
1 require string sTimeStamp;
2 require string sServerId;
3 require int iLevel;
4 require string sMessage;
};

/**
* 上报的信息分页记录
*/
struct NotifyInfo
{
1 require int nextpage;
2 require vector<NotifyItem> notifyItems;
};
//
///**
//* notify信息的键值
//*/
//struct NotifyKey
//{
// 1 require string name; //为app+servername 例如:Comm.BindServer
// 2 require string ip; //ip
// 3 require int page;
//};
//
///**
//* 上报信息的单条内容
//*/
//struct NotifyItem
//{
// 1 require string sTimeStamp;
// 2 require string sServerId;
// 3 require int iLevel;
// 4 require string sMessage;
//};
//
///**
//* 上报的信息分页记录
//*/
//struct NotifyInfo
//{
// 1 require int nextpage;
// 2 require vector<NotifyItem> notifyItems;
//};

/**
* 定义上报信息的等级
Expand Down Expand Up @@ -85,30 +85,30 @@ struct ReportInfo

interface Notify
{
/**
* 框架上报的信息, 保存于数据库中
* @param sServerName, server name
* @param sThreadId, server current thread id
* @param sMessage, message
**/
void reportServer(string sServerName, string sThreadId, string sMessage);


/**
* 业务上报的信息, 用于报警
* @param sServerName, server name
* @param level, notify level
* @param sMessage, message
**/
void notifyServer(string sServerName, NOTIFYLEVEL level, string sMessage);

/**
* 获取上报信息
* @param sServerName, server name
* @param out , notify info detail
* @return int 0=success, others=failed
**/
int getNotifyInfo(NotifyKey stKey, out NotifyInfo stInfo);
///**
//* 框架上报的信息, 保存于数据库中
//* @param sServerName, server name
//* @param sThreadId, server current thread id
//* @param sMessage, message
//**/
//void reportServer(string sServerName, string sThreadId, string sMessage);
//
//
///**
//* 业务上报的信息, 用于报警
//* @param sServerName, server name
//* @param level, notify level
//* @param sMessage, message
//**/
//void notifyServer(string sServerName, NOTIFYLEVEL level, string sMessage);
//
///**
//* 获取上报信息
//* @param sServerName, server name
//* @param out , notify info detail
//* @return int 0=success, others=failed
//**/
//int getNotifyInfo(NotifyKey stKey, out NotifyInfo stInfo);

/*
*上报框架信息以及业务告警信息
Expand Down
2 changes: 1 addition & 1 deletion tars/protocol/res/basef/BaseF.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tars/protocol/res/endpointf/EndpointF.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9319267

Please sign in to comment.