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 class
Metric.StreamDirection
static class
Metric.TwilioEdge
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Metric
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Metric object using the provided ObjectMapper.static Metric
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Metric object using the provided ObjectMapper.String
getAccountSid()
String
getCallSid()
Map<String,Object>
getCarrierEdge()
Map<String,Object>
getClientEdge()
Metric.StreamDirection
getDirection()
Metric.TwilioEdge
getEdge()
Map<String,Object>
getSdkEdge()
Map<String,Object>
getSipEdge()
String
getTimestamp()
int
hashCode()
static MetricReader
reader(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()
-
-