@Generated(value="org.immutables.processor.ProxyProcessor") public final class Envelope extends Object
_Envelope.
Use the builder to create immutable instances:
Envelope.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Envelope.Builder
Builds instances of type
Envelope. |
| Modifier and Type | Method and Description |
|---|---|
static Envelope.Builder |
builder()
Creates a builder for
Envelope. |
boolean |
equals(Object another)
This instance is equal to all instances of
Envelope that have equal attribute values. |
Counter |
getCounter()
The enclosed
Counter |
Event |
getEvent()
The enclosed
Event |
Gauge |
getGauge()
The enclosed
Gauge |
String |
getInstanceId()
The instance id
|
Log |
getLog()
The enclosed
Log |
String |
getSourceId()
The source id
|
Map<String,String> |
getTags()
Key/value tags to include additional identifying information
|
Timer |
getTimer()
The enclosed
Timer |
Long |
getTimestamp()
UNIX timestamp (in nanoseconds) event was wrapped in this Envelope.
|
int |
hashCode()
Computes a hash code from attributes:
counter, event, gauge, instanceId, log, sourceId, tags, timer, timestamp. |
String |
toString()
Prints the immutable value
Envelope with attribute values. |
public String getInstanceId()
public String getSourceId()
public Map<String,String> getTags()
public Long getTimestamp()
public boolean equals(Object another)
Envelope that have equal attribute values.public int hashCode()
counter, event, gauge, instanceId, log, sourceId, tags, timer, timestamp.public String toString()
Envelope with attribute values.public static Envelope.Builder builder()
Envelope.
Envelope.builder()
.counter(org.cloudfoundry.logcache.v1.Counter | null) // nullable counter
.event(org.cloudfoundry.logcache.v1.Event | null) // nullable event
.gauge(org.cloudfoundry.logcache.v1.Gauge | null) // nullable gauge
.instanceId(String | null) // nullable instanceId
.log(org.cloudfoundry.logcache.v1.Log | null) // nullable log
.sourceId(String | null) // nullable sourceId
.tag|putAllTags(String => String) // tags mappings
.timer(org.cloudfoundry.logcache.v1.Timer | null) // nullable timer
.timestamp(Long | null) // nullable timestamp
.build();
Copyright © 2022. All rights reserved.