public class Reporting extends Object
Reporting
class represents the OK/WARNING/CRITICAL structures in
an AlertDefinition
.
Equality checking for instances of this class should be executed on every
member to ensure that reconciling stack differences is correct.Modifier and Type | Class and Description |
---|---|
static class |
Reporting.ReportingType |
static class |
Reporting.ReportTemplate
The
Reporting.ReportTemplate class is used to pair a label and threshhold
value. |
Constructor and Description |
---|
Reporting() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
formatMessage(double value,
List<Object> args) |
Reporting.ReportTemplate |
getCritical() |
Reporting.ReportTemplate |
getOk() |
Reporting.ReportingType |
getType() |
String |
getUnits()
Gets a label identifying the units that the values are in.
|
Reporting.ReportTemplate |
getWarning() |
int |
hashCode() |
void |
setCritical(Reporting.ReportTemplate critical) |
void |
setOk(Reporting.ReportTemplate ok) |
void |
setType(Reporting.ReportingType m_type) |
void |
setUnits(String units)
Sets the label that identifies the units that the threshold values are in.
|
void |
setWarning(Reporting.ReportTemplate warning) |
AlertState |
state(double value) |
public Reporting.ReportTemplate getWarning()
null
if none.public void setWarning(Reporting.ReportTemplate warning)
warning
- the WARNING structure or null
if none.public Reporting.ReportTemplate getCritical()
null
if none.public void setCritical(Reporting.ReportTemplate critical)
critical
- the CRITICAL structure or null
if none.public Reporting.ReportTemplate getOk()
null
if none.public void setOk(Reporting.ReportTemplate ok)
ok
- the OK structure or null
if none.public String getUnits()
null
for none.public void setUnits(String units)
units
- the units, or null
for none.public Reporting.ReportingType getType()
public void setType(Reporting.ReportingType m_type)
public AlertState state(double value)
Copyright © 2022 Apache Software Foundation. All rights reserved.