Package com.twilio.rest.insights.v1.call
Class Metric
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.insights.v1.call.Metric
-
- All Implemented Interfaces:
Serializable
public class Metric extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetric.StreamDirectionstatic classMetric.TwilioEdge
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static MetricfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Metric object using the provided ObjectMapper.static MetricfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Metric object using the provided ObjectMapper.StringgetAccountSid()StringgetCallSid()Map<String,Object>getCarrierEdge()Map<String,Object>getClientEdge()Metric.StreamDirectiongetDirection()Metric.TwilioEdgegetEdge()Map<String,Object>getSdkEdge()Map<String,Object>getSipEdge()StringgetTimestamp()inthashCode()static MetricReaderreader(String pathCallSid)
-
-
-
Method Detail
-
reader
public static MetricReader reader(String pathCallSid)
-
fromJson
public static Metric fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Metric object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Metric object represented by the provided JSON
-
fromJson
public static Metric fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Metric object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Metric object represented by the provided JSON
-
getTimestamp
public final String getTimestamp()
-
getCallSid
public final String getCallSid()
-
getAccountSid
public final String getAccountSid()
-
getEdge
public final Metric.TwilioEdge getEdge()
-
getDirection
public final Metric.StreamDirection getDirection()
-
-