Package com.oracle.bmc.apmtraces.model
Class Log.Builder
- java.lang.Object
-
- com.oracle.bmc.apmtraces.model.Log.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Log.Builder
attributeMetadata(Map<String,AttributeMetadata> attributeMetadata)
Metadata about the attributes in the logs.Log.Builder
attributes(List<Attribute> attributes)
List of attributes associated with the logs.Log.Builder
body(String body)
Log body (Body).Log
build()
Log.Builder
copy(Log model)
Log.Builder
eventName(String eventName)
Name of the event.Log.Builder
logKey(String logKey)
Unique identifier (logId) for the logKey.Log.Builder
overflowAttributes(String overflowAttributes)
Full values for attributes that are too long to be stored as a log attribute (Overflow).Log.Builder
severityNumber(Integer severityNumber)
Log Severity number (SeverityNumber).Log.Builder
severityText(String severityText)
Log Severity text (SeverityText).Log.Builder
spanKey(String spanKey)
Unique identifier for the span (spanId) associated with this log.Log.Builder
timeCreated(Date timeCreated)
Time that the log event occurred (CreatedTime).Log.Builder
timeObserved(Date timeObserved)
Time that the log was received by apm (ObservedTime).Log.Builder
timestamp(Date timestamp)
Time used by the time picker (RecordedTime).Log.Builder
traceFlags(Integer traceFlags)
Trace flags.Log.Builder
traceKey(String traceKey)
Unique identifier for the trace (traceId) associated with this log.
-
-
-
Method Detail
-
logKey
public Log.Builder logKey(String logKey)
Unique identifier (logId) for the logKey.Note that this field is defined as logKey in the API and it maps to the logId in Application Performance Monitoring.
- Parameters:
logKey
- the value to set- Returns:
- this builder
-
eventName
public Log.Builder eventName(String eventName)
Name of the event.- Parameters:
eventName
- the value to set- Returns:
- this builder
-
timestamp
public Log.Builder timestamp(Date timestamp)
Time used by the time picker (RecordedTime).Either the timeCreated if present or the timeObserved.
- Parameters:
timestamp
- the value to set- Returns:
- this builder
-
traceKey
public Log.Builder traceKey(String traceKey)
Unique identifier for the trace (traceId) associated with this log.- Parameters:
traceKey
- the value to set- Returns:
- this builder
-
spanKey
public Log.Builder spanKey(String spanKey)
Unique identifier for the span (spanId) associated with this log.- Parameters:
spanKey
- the value to set- Returns:
- this builder
-
traceFlags
public Log.Builder traceFlags(Integer traceFlags)
Trace flags.- Parameters:
traceFlags
- the value to set- Returns:
- this builder
-
timeCreated
public Log.Builder timeCreated(Date timeCreated)
Time that the log event occurred (CreatedTime).- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeObserved
public Log.Builder timeObserved(Date timeObserved)
Time that the log was received by apm (ObservedTime).- Parameters:
timeObserved
- the value to set- Returns:
- this builder
-
severityText
public Log.Builder severityText(String severityText)
Log Severity text (SeverityText).Also known as Log level.
- Parameters:
severityText
- the value to set- Returns:
- this builder
-
severityNumber
public Log.Builder severityNumber(Integer severityNumber)
Log Severity number (SeverityNumber).- Parameters:
severityNumber
- the value to set- Returns:
- this builder
-
body
public Log.Builder body(String body)
Log body (Body).- Parameters:
body
- the value to set- Returns:
- this builder
-
overflowAttributes
public Log.Builder overflowAttributes(String overflowAttributes)
Full values for attributes that are too long to be stored as a log attribute (Overflow).- Parameters:
overflowAttributes
- the value to set- Returns:
- this builder
-
attributes
public Log.Builder attributes(List<Attribute> attributes)
List of attributes associated with the logs.- Parameters:
attributes
- the value to set- Returns:
- this builder
-
attributeMetadata
public Log.Builder attributeMetadata(Map<String,AttributeMetadata> attributeMetadata)
Metadata about the attributes in the logs.- Parameters:
attributeMetadata
- the value to set- Returns:
- this builder
-
build
public Log build()
-
copy
public Log.Builder copy(Log model)
-
-