本文整理汇总了Java中com.huawei.esdk.fusioncompute.local.model.alarm.HistoryAlarmQueryParams类的典型用法代码示例。如果您正苦于以下问题:Java HistoryAlarmQueryParams类的具体用法?Java HistoryAlarmQueryParams怎么用?Java HistoryAlarmQueryParams使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
HistoryAlarmQueryParams类属于com.huawei.esdk.fusioncompute.local.model.alarm包,在下文中一共展示了HistoryAlarmQueryParams类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testQueryHistoryAlarms
import com.huawei.esdk.fusioncompute.local.model.alarm.HistoryAlarmQueryParams; //导入依赖的package包/类
@Test
public void testQueryHistoryAlarms()
{
HistoryAlarmQueryParams par = new HistoryAlarmQueryParams();
String siteUri = "/service/sites/3CD306E7";
// List<String> al = new ArrayList<String>();
// par.setAlarmLevel(al);
par.setLimit(100);
par.setOffset(0);
// List<String> or = new ArrayList<String>();
// or.add("cleartype ASC");
// or.add("occurtime DESC");
// par.setOrder(or);
// par.setDisplay(0);
//
// par.setOccurStartTime("1307790455960");
// par.setOccurStopTime("1407844379863");
alarmResource.queryHistoryAlarms(par, siteUri);
}
示例2: testQueryHistoryAlarms
import com.huawei.esdk.fusioncompute.local.model.alarm.HistoryAlarmQueryParams; //导入依赖的package包/类
@Test
public void testQueryHistoryAlarms()
{
HistoryAlarmQueryParams par = new HistoryAlarmQueryParams();
String siteUri = "/service/sites/400E07BB";
List<String> al = new ArrayList<String>();
par.setAlarmLevel(al);
par.setLimit(10);
par.setOffset(10);
List<String> or = new ArrayList<String>();
or.add("cleartype ASC");
or.add("occurtime DESC");
par.setOrder(or);
par.setDisplay(0);
par.setOccurStartTime("1307790455960");
par.setOccurStopTime("1407844379863");
FCSDKResponse<PageList<Alarm>> lists = alarmResource.queryHistoryAlarms(par, siteUri);
List<Alarm> list = lists.getResult().getList();
for (Alarm alarm : list)
{
System.out.println(alarm.getSvAlarmName());
}
}
示例3: queryHistoryAlarms
import com.huawei.esdk.fusioncompute.local.model.alarm.HistoryAlarmQueryParams; //导入依赖的package包/类
/**
*
* 查询历史告警。
* <p><b>代码示例:</b></p><br>
* HistoryAlarmQueryParams par = new HistoryAlarmQueryParams();<br>
* par.setLimit(100);<br>
* par.setOffset(0);<br>
* alarmResource.queryHistoryAlarms(par, "/service/sites/3CD306E7");<br>
*
* @param queryHistoryAlarmsReq 【必选】历史告警请求信息。
* @param siteUri 【必选】站点URI。
* @return {@code FCSDKResponse<PageList<HistoryAlarm>>} 查询历史告警响应。
* @since eSDK Cloud V100R003C50
* @uri
* @code
*/
public FCSDKResponse<PageList<HistoryAlarm>> queryHistoryAlarms(HistoryAlarmQueryParams queryHistoryAlarmsReq,
String siteUri);
示例4: queryHistoryAlarms
import com.huawei.esdk.fusioncompute.local.model.alarm.HistoryAlarmQueryParams; //导入依赖的package包/类
/**
*
* 查询历史告警。
* <p><b>代码示例:</b></p><br>
* HistoryAlarmQueryParams par = new HistoryAlarmQueryParams();<br>
* par.setLimit(100);<br>
* par.setOffset(0);<br>
* alarmResource.queryHistoryAlarms(par, "/service/sites/3CD306E7");<br>
*
* @param queryHistoryAlarmsReq 【必选】历史告警请求信息。
* @param siteUri 【必选】站点URI。
* @return {@code FCSDKResponse<PageList<HistoryAlarm>>} 查询历史告警响应。
* @since eSDK Cloud V100R003C50
*/
public FCSDKResponse<PageList<HistoryAlarm>> queryHistoryAlarms(HistoryAlarmQueryParams queryHistoryAlarmsReq,
String siteUri);
示例5: queryHistoryAlarms
import com.huawei.esdk.fusioncompute.local.model.alarm.HistoryAlarmQueryParams; //导入依赖的package包/类
/**
* 查询历史告警
* @param queryHistoryAlarmsReq 【必选】历史告警请求信息。
* @param siteUri 【必选】站点URI。
* @return {@code FCSDKResponse<PageList<Alarm>>}
* @since eSDK Cloud V100R003C50
*/
public FCSDKResponse<PageList<Alarm>> queryHistoryAlarms(HistoryAlarmQueryParams queryHistoryAlarmsReq,
String siteUri);