Search in sources :

Example 1 with AlertHistorySizeQueryCheck

use of com.axibase.tsd.api.method.checks.AlertHistorySizeQueryCheck in project atsd-api-test by axibase.

the class AlertHistoryQueryTest method generateAlertHistory.

@BeforeClass(enabled = false)
public void generateAlertHistory() throws Exception {
    Registry.Entity.checkExists(ALERTHISTORY_ENTITY_NAME);
    generateAlertForEntity(ALERTHISTORY_ENTITY_NAME);
    AlertHistoryQuery query = templateQuery().setEntity(ALERTHISTORY_ENTITY_NAME).setLimit(1);
    Checker.check(new AlertHistorySizeQueryCheck(query, 1));
}
Also used : AlertHistoryQuery(com.axibase.tsd.api.model.alert.AlertHistoryQuery) AlertHistorySizeQueryCheck(com.axibase.tsd.api.method.checks.AlertHistorySizeQueryCheck) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

AlertHistorySizeQueryCheck (com.axibase.tsd.api.method.checks.AlertHistorySizeQueryCheck)1 AlertHistoryQuery (com.axibase.tsd.api.model.alert.AlertHistoryQuery)1 BeforeClass (org.testng.annotations.BeforeClass)1