Class SvcPerf.Builder
- java.lang.Object
-
- com.rivet.api.resources.cloud.common.types.SvcPerf.Builder
-
- All Implemented Interfaces:
SvcPerf._FinalStage,SvcPerf.DurationStage,SvcPerf.SvcNameStage,SvcPerf.TsStage
- Enclosing class:
- SvcPerf
public static final class SvcPerf.Builder extends java.lang.Object implements SvcPerf.SvcNameStage, SvcPerf.TsStage, SvcPerf.DurationStage, SvcPerf._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SvcPerf._FinalStageaddAllMarks(java.util.List<LogsPerfMark> marks)A list of performance marks.SvcPerf._FinalStageaddAllSpans(java.util.List<LogsPerfSpan> spans)A list of performance spans.SvcPerf._FinalStageaddMarks(LogsPerfMark marks)A list of performance marks.SvcPerf._FinalStageaddSpans(LogsPerfSpan spans)A list of performance spans.SvcPerfbuild()SvcPerf._FinalStageduration(long duration)Unsigned 64 bit integer.SvcPerf.Builderfrom(SvcPerf other)SvcPerf._FinalStagemarks(java.util.List<LogsPerfMark> marks)SvcPerf._FinalStagereqId(java.util.Optional<java.util.UUID> reqId)SvcPerf._FinalStagereqId(java.util.UUID reqId)SvcPerf._FinalStagespans(java.util.List<LogsPerfSpan> spans)SvcPerf.TsStagesvcName(java.lang.String svcName)The name of the service.SvcPerf.DurationStagets(java.time.OffsetDateTime ts)RFC3339 timestamp.
-
-
-
Method Detail
-
from
public SvcPerf.Builder from(SvcPerf other)
- Specified by:
fromin interfaceSvcPerf.SvcNameStage
-
svcName
public SvcPerf.TsStage svcName(java.lang.String svcName)
The name of the service.
- Specified by:
svcNamein interfaceSvcPerf.SvcNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
ts
public SvcPerf.DurationStage ts(java.time.OffsetDateTime ts)
RFC3339 timestamp.
- Specified by:
tsin interfaceSvcPerf.TsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
duration
public SvcPerf._FinalStage duration(long duration)
Unsigned 64 bit integer.
- Specified by:
durationin interfaceSvcPerf.DurationStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllMarks
public SvcPerf._FinalStage addAllMarks(java.util.List<LogsPerfMark> marks)
A list of performance marks.
- Specified by:
addAllMarksin interfaceSvcPerf._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addMarks
public SvcPerf._FinalStage addMarks(LogsPerfMark marks)
A list of performance marks.
- Specified by:
addMarksin interfaceSvcPerf._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
marks
public SvcPerf._FinalStage marks(java.util.List<LogsPerfMark> marks)
- Specified by:
marksin interfaceSvcPerf._FinalStage
-
addAllSpans
public SvcPerf._FinalStage addAllSpans(java.util.List<LogsPerfSpan> spans)
A list of performance spans.
- Specified by:
addAllSpansin interfaceSvcPerf._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addSpans
public SvcPerf._FinalStage addSpans(LogsPerfSpan spans)
A list of performance spans.
- Specified by:
addSpansin interfaceSvcPerf._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
spans
public SvcPerf._FinalStage spans(java.util.List<LogsPerfSpan> spans)
- Specified by:
spansin interfaceSvcPerf._FinalStage
-
reqId
public SvcPerf._FinalStage reqId(java.util.UUID reqId)
- Specified by:
reqIdin interfaceSvcPerf._FinalStage
-
reqId
public SvcPerf._FinalStage reqId(java.util.Optional<java.util.UUID> reqId)
- Specified by:
reqIdin interfaceSvcPerf._FinalStage
-
build
public SvcPerf build()
- Specified by:
buildin interfaceSvcPerf._FinalStage
-
-