Open Kilda Java Documentation
org.openkilda.messaging.model.Metric Class Reference

Public Member Functions

 Metric ()
 
 Metric (@JsonProperty("metric") String metric, @JsonProperty("tags") Map< Object, Object > tags, @JsonProperty("aggregateTags") List< String > aggregateTags, @JsonProperty("dps") Map< String, Long > dps)
 
String getMetric ()
 
void setMetric (String metric)
 
Map< Object, Object > getTags ()
 
void setTags (Map< Object, Object > tags)
 
List< String > getAggregateTags ()
 
void setAggregateTags (List< String > aggregateTags)
 
Map< String, Long > getDps ()
 
void setDps (Map< String, Long > dps)
 
boolean equals (Object object)
 
int hashCode ()
 
String toString ()
 

Detailed Description

Represents OpenTSDB metric.

Definition at line 33 of file Metric.java.

Constructor & Destructor Documentation

◆ Metric() [1/2]

org.openkilda.messaging.model.Metric.Metric ( )

Default constructor.

Definition at line 66 of file Metric.java.

◆ Metric() [2/2]

org.openkilda.messaging.model.Metric.Metric ( @JsonProperty("metric") String  metric,
@JsonProperty("tags") Map< Object, Object >  tags,
@JsonProperty("aggregateTags") List< String >  aggregateTags,
@JsonProperty("dps") Map< String, Long >  dps 
)

Instance constructor.

Parameters
metricmetric name
tagsmetric tags
aggregateTagsmetric aggregated tags
dpsmetric data points

Definition at line 78 of file Metric.java.

Member Function Documentation

◆ equals()

boolean org.openkilda.messaging.model.Metric.equals ( Object  object)

Definition at line 164 of file Metric.java.

◆ getAggregateTags()

List<String> org.openkilda.messaging.model.Metric.getAggregateTags ( )

Gets metric aggregated tags.

Returns
metric aggregated tags

Definition at line 129 of file Metric.java.

◆ getDps()

Map<String, Long> org.openkilda.messaging.model.Metric.getDps ( )

Gets metric data points.

Returns
metric data points

Definition at line 147 of file Metric.java.

◆ getMetric()

String org.openkilda.messaging.model.Metric.getMetric ( )

Gets metric name.

Returns
metric name

Definition at line 93 of file Metric.java.

◆ getTags()

Map<Object, Object> org.openkilda.messaging.model.Metric.getTags ( )

Gets metric tags.

Returns
metric tags

Definition at line 111 of file Metric.java.

◆ hashCode()

int org.openkilda.messaging.model.Metric.hashCode ( )

Definition at line 183 of file Metric.java.

◆ setAggregateTags()

void org.openkilda.messaging.model.Metric.setAggregateTags ( List< String >  aggregateTags)

Sets metric aggregated tags.

Parameters
aggregateTagsmetric aggregated tags

Definition at line 138 of file Metric.java.

◆ setDps()

void org.openkilda.messaging.model.Metric.setDps ( Map< String, Long >  dps)

Sets metric data points.

Parameters
dpsmetric data points

Definition at line 156 of file Metric.java.

◆ setMetric()

void org.openkilda.messaging.model.Metric.setMetric ( String  metric)

Sets metric name.

Parameters
metricmetric name

Definition at line 102 of file Metric.java.

◆ setTags()

void org.openkilda.messaging.model.Metric.setTags ( Map< Object, Object >  tags)

Sets metric tags.

Parameters
tagsmetric tags

Definition at line 120 of file Metric.java.

◆ toString()

String org.openkilda.messaging.model.Metric.toString ( )

Definition at line 191 of file Metric.java.


The documentation for this class was generated from the following file: