Package com.sap.ai.sdk.core.model
Class TrckMetric
java.lang.Object
com.sap.ai.sdk.core.model.TrckMetric
Key-value metrics, where the value is numeric. Metric can also have optional step and label
fields.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLabelsItem(TrckLabel labelsItem) Add one labels instance to thisTrckMetric.static TrckMetric.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTrckMetricinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTrckMetric.a list of name-value object pairs associated with some metric.getName()Name of the metricgetStep()step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric minimum: 0Time when the metric was created or logged in RFC3339 formatgetValue()Numeric Value of the metricinthashCode()Set the labels of thisTrckMetricinstance and return the same instance.Set the name of thisTrckMetricinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTrckMetricinstance.voidSet the labels of thisTrckMetricinstance.voidSet the name of thisTrckMetricinstance.voidSet the step of thisTrckMetricinstance.voidsetTimestamp(OffsetDateTime timestamp) Set the timestamp of thisTrckMetricinstance.voidsetValue(BigDecimal value) Set the value of thisTrckMetricinstance.Set the step of thisTrckMetricinstance and return the same instance.timestamp(OffsetDateTime timestamp) Set the timestamp of thisTrckMetricinstance and return the same instance.toMap()Get the value of all properties of thisTrckMetricinstance including unrecognized properties.toString()value(BigDecimal value) Set the value of thisTrckMetricinstance and return the same instance.
-
Constructor Details
-
TrckMetric
protected TrckMetric()Default constructor for TrckMetric.
-
-
Method Details
-
name
Set the name of thisTrckMetricinstance and return the same instance.- Parameters:
name- Name of the metric- Returns:
- The same instance of this
TrckMetricclass
-
getName
Name of the metric- Returns:
- name The name of this
TrckMetricinstance.
-
setName
Set the name of thisTrckMetricinstance.- Parameters:
name- Name of the metric
-
value
Set the value of thisTrckMetricinstance and return the same instance.- Parameters:
value- Numeric Value of the metric- Returns:
- The same instance of this
TrckMetricclass
-
getValue
Numeric Value of the metric- Returns:
- value The value of this
TrckMetricinstance.
-
setValue
Set the value of thisTrckMetricinstance.- Parameters:
value- Numeric Value of the metric
-
timestamp
Set the timestamp of thisTrckMetricinstance and return the same instance.- Parameters:
timestamp- Time when the metric was created or logged in RFC3339 format- Returns:
- The same instance of this
TrckMetricclass
-
getTimestamp
Time when the metric was created or logged in RFC3339 format- Returns:
- timestamp The timestamp of this
TrckMetricinstance.
-
setTimestamp
Set the timestamp of thisTrckMetricinstance.- Parameters:
timestamp- Time when the metric was created or logged in RFC3339 format
-
step
Set the step of thisTrckMetricinstance and return the same instance.- Parameters:
step- step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric Minimum: 0- Returns:
- The same instance of this
TrckMetricclass
-
getStep
step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric minimum: 0- Returns:
- step The step of this
TrckMetricinstance.
-
setStep
Set the step of thisTrckMetricinstance.- Parameters:
step- step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric Minimum: 0
-
labels
Set the labels of thisTrckMetricinstance and return the same instance.- Parameters:
labels- a list of name-value object pairs associated with some metric.- Returns:
- The same instance of this
TrckMetricclass
-
addLabelsItem
Add one labels instance to thisTrckMetric.- Parameters:
labelsItem- The labels that should be added- Returns:
- The same instance of type
TrckMetric
-
getLabels
a list of name-value object pairs associated with some metric.- Returns:
- labels The labels of this
TrckMetricinstance.
-
setLabels
Set the labels of thisTrckMetricinstance.- Parameters:
labels- a list of name-value object pairs associated with some metric.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTrckMetric.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisTrckMetricinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisTrckMetricinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTrckMetricinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newTrckMetricinstance with all required arguments.
-
toMap()instead.