上传修改的预统计接口的关键字和case,以及自定义库GetTimeLibrary
This commit is contained in:
@@ -10,18 +10,13 @@ SecurityEventActionHit-bytes
|
||||
# dashboard界面 安全策略各动作命中计数 bytes bifang和bigData对比
|
||||
[Documentation]
|
||||
... 描述:Security-Action-bytes
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
... endtime(必传,结束时间)
|
||||
... logType(必填,日志类型。)
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
${logType} Set Variable security_event_hits_log
|
||||
#${timeGranularity} Set Variable 300
|
||||
#${limit} Set Variable 5
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&logType=${logType}&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/policyevent/hit/action
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -39,18 +34,13 @@ SecurityEventActionHit-packets
|
||||
# dashboard界面 安全策略各动作命中计数 packets bifang和bigData对比
|
||||
[Documentation]
|
||||
... 描述:Security-Action-packets
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
... endtime(必传,结束时间)
|
||||
... logType(必填,日志类型。)
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
${logType} Set Variable security_event_hits_log
|
||||
#${timeGranularity} Set Variable 300
|
||||
#${limit} Set Variable 5
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&logType=${logType}&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/policyevent/hit/action
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -68,18 +58,13 @@ SecurityEventActionHit-sessions
|
||||
# dashboard界面 安全策略各动作命中计数 sessions bifang和bigData对比
|
||||
[Documentation]
|
||||
... 描述:Security-Action-sessions
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
... endtime(必传,结束时间)
|
||||
... logType(必填,日志类型。)
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
${logType} Set Variable security_event_hits_log
|
||||
#${timeGranularity} Set Variable 300
|
||||
#${limit} Set Variable 5
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&logType=${logType}&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/policyevent/hit/action
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -97,18 +82,13 @@ SecurityEventActionHit-thrend-bytes
|
||||
# dashboard界面 安全策略各动作命中计数趋势 bytes bifang和bigData对比
|
||||
[Documentation]
|
||||
... 描述:Security-Action-thrend-bytes
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
... endtime(必传,结束时间)
|
||||
... logType(必填,日志类型。)
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
${logType} Set Variable security_event_hits_log
|
||||
#${timeGranularity} Set Variable 300
|
||||
#${limit} Set Variable 5
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&logType=${logType}&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/policyevent/hit/action
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -129,18 +109,13 @@ SecurityEventActionHit-thrend-packets
|
||||
# dashboard界面 安全策略各动作命中计数趋势 packets bifang和bigData对比
|
||||
[Documentation]
|
||||
... 描述:Security-Action-thrend-packets
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... timeGranularity(必传,时间粒度300s )
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
... endtime(必传,结束时间)
|
||||
... logType(必填,日志类型。)
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
${logType} Set Variable security_event_hits_log
|
||||
#${timeGranularity} Set Variable 300
|
||||
#${limit} Set Variable 5
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&logType=${logType}&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/policyevent/hit/action
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -160,18 +135,13 @@ SecurityEventActionHit-thrend-sessions
|
||||
# dashboard界面 安全策略各动作命中计数趋势 sessions bifang和bigData对比
|
||||
[Documentation]
|
||||
... 描述:Security-Action-thrend-packets
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... timeGranularity(必传,时间粒度300s )
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
... endtime(必传,结束时间)
|
||||
... logType(必填,日志类型。)
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
${logType} Set Variable security_event_hits_log
|
||||
#${timeGranularity} Set Variable 300
|
||||
#${limit} Set Variable 5
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&logType=${logType}&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/policyevent/hit/action
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -191,18 +161,13 @@ ProxyEventActionHit-sessions
|
||||
# dashboard界面 代理策略各动作命中计数 sessions bifang和bigData对比
|
||||
[Documentation]
|
||||
... 描述:Proxy-Action-sessions
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... timeGranularity(必传,时间粒度300s )
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
... endtime(必传,结束时间)
|
||||
... logType(必填,日志类型。)
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
${logType} Set Variable proxy_event_hits_log
|
||||
#${timeGranularity} Set Variable 300
|
||||
#${limit} Set Variable 5
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&logType=${logType}&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/policyevent/hit/action
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
@@ -220,18 +185,13 @@ ProxyEventActionHit-trend-sessions
|
||||
# dashboard界面 代理策略各动作命中计数趋势 sessions bifang和bigData对比
|
||||
[Documentation]
|
||||
... 描述:Proxy-Action-trend-sessions
|
||||
... 参数:timeNum(必传,查询的时间范围类型 1 当前时间前一小时 2 当前时间前一天 3 当前时间前一周)
|
||||
... timeGranularity(必传,时间粒度300s )
|
||||
... 参数:starttime(必传,开始时间紧)
|
||||
... timeGranularity(必传,时间粒度 )
|
||||
... limit(必传,限制条数)
|
||||
... param(非必传,参数数量为2位,依次顺序为'startTime'、'endTime',自定义时两个参数必须都有,如果没有就使用timeNum查询)
|
||||
[Arguments] ${timeNum} ${timeGranularity} ${limit} @{param}
|
||||
${length} Run Keyword If ${param}!=[] Get Length ${param}
|
||||
... ELSE Set Variable ${0}
|
||||
${startTime} ${endTime} Run Keyword If ${length}==${0} GetFormateTime ${timeNum}
|
||||
... ELSE IF ${length}>${0} Set Variable ${param[0]} ${param[1]}
|
||||
... endtime(必传,结束时间)
|
||||
... logType(必填,日志类型。)
|
||||
[Arguments] ${starttime} ${endtime} ${timeGranularity} ${limit}
|
||||
${logType} Set Variable proxy_event_hits_log
|
||||
#${timeGranularity} Set Variable 300
|
||||
#${limit} Set Variable 5
|
||||
${data} Set Variable startTime=${startTime}&endTime=${endTime}&logType=${logType}&timeGranularity=${timeGranularity}&limit=${limit}
|
||||
${url1} Set Variable report/policyevent/hit/action
|
||||
${bfResponse} trafficBFRequest ${url1} ${data}
|
||||
|
||||
Reference in New Issue
Block a user