Class ViewData
java.lang.Object
io.opencensus.stats.ViewData
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ViewDatacreate(View view, Map<? extends List<TagValue>, ? extends AggregationData> map, Timestamp start, Timestamp end) Constructs a newViewData.static ViewDatacreate(View view, Map<? extends List<TagValue>, ? extends AggregationData> map, ViewData.AggregationWindowData windowData) Deprecated.in favor ofcreate(View, Map, Timestamp, Timestamp).abstract Map<List<TagValue>, AggregationData> TheAggregationDatagrouped by combination of tag values, associated with thisViewData.abstract TimestampgetEnd()Returns the endTimestampfor aViewData.abstract TimestampgetStart()Returns the startTimestampfor aViewData.abstract ViewgetView()abstract ViewData.AggregationWindowDataDeprecated.in favor ofgetStart()andgetEnd().
-
Method Details
-
getView
-
getAggregationMap
TheAggregationDatagrouped by combination of tag values, associated with thisViewData.- Since:
- 0.8
-
getWindowData
Deprecated.in favor ofgetStart()andgetEnd().Returns theViewData.AggregationWindowDataassociated with thisViewData.ViewData.AggregationWindowDatais deprecated since 0.13, please avoid using this method. UsegetStart()andgetEnd()instead.- Returns:
- the
AggregationWindowData. - Since:
- 0.8
-
getStart
-
getEnd
-
create
@Deprecated public static ViewData create(View view, Map<? extends List<TagValue>, ? extends AggregationData> map, ViewData.AggregationWindowData windowData) Deprecated.in favor ofcreate(View, Map, Timestamp, Timestamp).Constructs a newViewData.- Parameters:
view- theViewassociated with thisViewData.map- the mapping fromTagValuelist toAggregationData.windowData- theViewData.AggregationWindowData.- Returns:
- a
ViewData. - Throws:
IllegalArgumentException- if the types ofAggregationandAggregationDatadon't match, or the types ofWindowandWindowDatadon't match.- Since:
- 0.8
-
create
public static ViewData create(View view, Map<? extends List<TagValue>, ? extends AggregationData> map, Timestamp start, Timestamp end) Constructs a newViewData.- Parameters:
view- theViewassociated with thisViewData.map- the mapping fromTagValuelist toAggregationData.start- the startTimestampfor thisViewData.end- the endTimestampfor thisViewData.- Returns:
- a
ViewData. - Throws:
IllegalArgumentException- if the types ofAggregationandAggregationDatadon't match.- Since:
- 0.13
-
Timestampinstead.