未验证 提交 341795f4 编写于 作者: Z zryfish 提交者: GitHub

Merge pull request #228 from carmanzhang/monitor

changed nic related rules
......@@ -54,6 +54,7 @@ const (
type PagedFormatedLevelMetric struct {
CurrentPage int `json:"page"`
TotalPage int `json:"total_page"`
TotalItem int `json:"total_item"`
Message string `json:"msg"`
Metric FormatedLevelMetric `json:"metrics"`
}
......
......@@ -236,6 +236,7 @@ func Page(pageNum string, limitNum string, fmtLevelMetric *FormatedLevelMetric,
return &PagedFormatedLevelMetric{
Message: "paged",
TotalPage: allPage,
TotalItem: maxLength,
CurrentPage: page,
Metric: *fmtLevelMetric,
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册