Package io.opencensus.stats
Class View.Name
- java.lang.Object
-
- io.opencensus.stats.View.Name
-
- Direct Known Subclasses:
AutoValue_View_Name
- Enclosing class:
- View
@Immutable public abstract static class View.Name extends java.lang.ObjectThe name of aView.- Since:
- 0.8
-
-
Constructor Summary
Constructors Constructor Description Name()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.StringasString()Returns the name as aString.static View.Namecreate(java.lang.String name)Creates aView.Namefrom aString.
-
-
-
Method Detail
-
asString
public abstract java.lang.String asString()
Returns the name as aString.- Returns:
- the name as a
String. - Since:
- 0.8
-
create
public static View.Name create(java.lang.String name)
Creates aView.Namefrom aString. Should be a ASCII string with a length no greater than 255 characters.Suggested format for name:
<web_host>/<path>.- Parameters:
name- the nameString.- Returns:
- a
View.Namewith the given nameString. - Since:
- 0.8
-
-