public class KpiAlert extends AbstractObj implements Queryable, Updatable
metaCREATE_URI, CREATE_WITH_ID_URI, OBJ_URI, URI| Constructor and Description |
|---|
KpiAlert(String title,
String kpiUri,
String dashboardUri,
double threshold,
String triggerCondition,
String filterContextUri)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDashboardUri() |
String |
getFilterContextUri() |
String |
getKpiUri() |
double |
getThreshold() |
String |
getTriggerCondition() |
boolean |
wasTriggered() |
KpiAlert |
withTriggeredState(boolean wasTriggered)
Creates new copy of KPI alert with a given triggered state changed.
|
getAuthor, getCategory, getContributor, getCreated, getFlags, getId, getIdentifier, getSummary, getTags, getTitle, getUpdated, getUri, isDeprecated, isLocked, isProduction, isSharedWithSomeone, isUnlisted, setCategory, setDeprecated, setFlags, setIdentifier, setLocked, setProduction, setSharedWithSomeone, setSummary, setTags, setTitle, setUnlisted, toString, urispublic KpiAlert(String title, String kpiUri, String dashboardUri, double threshold, String triggerCondition, String filterContextUri)
title - KPI alert titlekpiUri - URI of the KPI for which the alert is defineddashboardUri - URI of the KPI where the KPI alert is locatedthreshold - KPI alert thresholdtriggerCondition - condition for triggering KPI alertfilterContextUri - URI of filter context used for computation of KPI alert (optional)public boolean wasTriggered()
public double getThreshold()
public String getFilterContextUri()
public String getTriggerCondition()
"above_threshold")public String getDashboardUri()
public String getKpiUri()
public KpiAlert withTriggeredState(boolean wasTriggered)
wasTriggered - triggered stateCopyright © 2019. All rights reserved.