Package com.sap.ai.sdk.core.model
Class TrckGetMetric
java.lang.Object
com.sap.ai.sdk.core.model.TrckGetMetric
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.static interfaceBuilder helper class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLabelsItem(TrckLabel labelsItem) Add one labels instance to thisTrckGetMetric.static TrckGetMetric.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTrckGetMetricinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTrckGetMetric.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 thisTrckGetMetricinstance and return the same instance.Set the name of thisTrckGetMetricinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTrckGetMetricinstance.voidSet the labels of thisTrckGetMetricinstance.voidSet the name of thisTrckGetMetricinstance.voidSet the step of thisTrckGetMetricinstance.voidsetTimestamp(OffsetDateTime timestamp) Set the timestamp of thisTrckGetMetricinstance.voidsetValue(BigDecimal value) Set the value of thisTrckGetMetricinstance.Set the step of thisTrckGetMetricinstance and return the same instance.timestamp(OffsetDateTime timestamp) Set the timestamp of thisTrckGetMetricinstance and return the same instance.toMap()Get the value of all properties of thisTrckGetMetricinstance including unrecognized properties.toString()value(BigDecimal value) Set the value of thisTrckGetMetricinstance and return the same instance.
-
Constructor Details
-
TrckGetMetric
protected TrckGetMetric()Default constructor for TrckGetMetric.
-
-
Method Details
-
name
Set the name of thisTrckGetMetricinstance and return the same instance.- Parameters:
name- Name of the metric- Returns:
- The same instance of this
TrckGetMetricclass
-
getName
Name of the metric- Returns:
- name The name of this
TrckGetMetricinstance.
-
setName
Set the name of thisTrckGetMetricinstance.- Parameters:
name- Name of the metric
-
value
Set the value of thisTrckGetMetricinstance and return the same instance.- Parameters:
value- Numeric Value of the metric- Returns:
- The same instance of this
TrckGetMetricclass
-
getValue
Numeric Value of the metric- Returns:
- value The value of this
TrckGetMetricinstance.
-
setValue
Set the value of thisTrckGetMetricinstance.- Parameters:
value- Numeric Value of the metric
-
timestamp
Set the timestamp of thisTrckGetMetricinstance and return the same instance.- Parameters:
timestamp- Time when the metric was created or logged in RFC3339 format- Returns:
- The same instance of this
TrckGetMetricclass
-
getTimestamp
Time when the metric was created or logged in RFC3339 format- Returns:
- timestamp The timestamp of this
TrckGetMetricinstance.
-
setTimestamp
Set the timestamp of thisTrckGetMetricinstance.- Parameters:
timestamp- Time when the metric was created or logged in RFC3339 format
-
step
Set the step of thisTrckGetMetricinstance 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
TrckGetMetricclass
-
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
TrckGetMetricinstance.
-
setStep
Set the step of thisTrckGetMetricinstance.- 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 thisTrckGetMetricinstance and return the same instance.- Parameters:
labels- a list of name-value object pairs associated with some metric.- Returns:
- The same instance of this
TrckGetMetricclass
-
addLabelsItem
Add one labels instance to thisTrckGetMetric.- Parameters:
labelsItem- The labels that should be added- Returns:
- The same instance of type
TrckGetMetric
-
getLabels
a list of name-value object pairs associated with some metric.- Returns:
- labels The labels of this
TrckGetMetricinstance.
-
setLabels
Set the labels of thisTrckGetMetricinstance.- Parameters:
labels- a list of name-value object pairs associated with some metric.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTrckGetMetric.- 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 thisTrckGetMetricinstance.- 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 thisTrckGetMetricinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTrckGetMetricinstance. 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 newTrckGetMetricinstance with all required arguments.
-
toMap()instead.