Class View
java.lang.Object
io.opencensus.stats.View
- Direct Known Subclasses:
AutoValue_View
A View specifies an aggregation and a set of tag keys. The aggregation will be broken down by the
unique set of matching tag values for each measure.
- Since:
- 0.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated.since 0.13.static classThe name of aView. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final intprivate static final Comparator<TagKey> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Viewcreate(View.Name name, String description, Measure measure, Aggregation aggregation, List<TagKey> columns) Constructs a newView.static Viewcreate(View.Name name, String description, Measure measure, Aggregation aggregation, List<TagKey> columns, View.AggregationWindow window) Deprecated.in favor ofcreate(Name, String, Measure, Aggregation, List).abstract AggregationTheAggregationassociated with thisView.Columns (a.k.a Tag Keys) to match with the associatedMeasure.abstract StringMore detailed description, for documentation purposes.abstract MeasureMeasure type of this view.abstract View.NamegetName()Name of view.abstract View.AggregationWindowDeprecated.since 0.13.
-
Field Details
-
NAME_MAX_LENGTH
static final int NAME_MAX_LENGTH- See Also:
-
TAG_KEY_COMPARATOR
-
-
Constructor Details
-
View
View()
-
-
Method Details
-
getName
-
getDescription
More detailed description, for documentation purposes.- Since:
- 0.8
-
getMeasure
-
getAggregation
-
getColumns
-
getWindow
Deprecated.since 0.13. In the future allViews will be cumulative.Returns the timeView.AggregationWindowfor thisView.- Returns:
- the time
View.AggregationWindow. - Since:
- 0.8
-
create
@Deprecated public static View create(View.Name name, String description, Measure measure, Aggregation aggregation, List<TagKey> columns, View.AggregationWindow window) Deprecated.in favor ofcreate(Name, String, Measure, Aggregation, List).Constructs a newView.- Parameters:
name- theView.Nameof view. Must be unique.description- the description of view.measure- theMeasureto be aggregated by this view.aggregation- the basicAggregationthat this view will support.columns- theTagKeys that this view will aggregate on. Columns should not contain duplicates.window- theView.AggregationWindowof view.- Returns:
- a new
View. - Since:
- 0.8
-
create
public static View create(View.Name name, String description, Measure measure, Aggregation aggregation, List<TagKey> columns) Constructs a newView.- Parameters:
name- theView.Nameof view. Must be unique.description- the description of view.measure- theMeasureto be aggregated by this view.aggregation- the basicAggregationthat this view will support.columns- theTagKeys that this view will aggregate on. Columns should not contain duplicates.- Returns:
- a new
View. - Since:
- 0.13
-