Package com.sap.ai.sdk.core.model
Class TrckMetricResource
java.lang.Object
com.sap.ai.sdk.core.model.TrckMetricResource
Collection of various metrics/tags/labels associated against some execution/deployment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for TrckMetricResource. -
Method Summary
Modifier and TypeMethodDescriptionaddCustomInfoItem(TrckCustomInfoObject customInfoItem) Add one customInfo instance to thisTrckMetricResource.addMetricsItem(TrckMetric metricsItem) Add one metrics instance to thisTrckMetricResource.addTagsItem(TrckTag tagsItem) Add one tags instance to thisTrckMetricResource.static TrckMetricResource.Buildercreate()Create a type-safe, fluent-api builder object to construct a newTrckMetricResourceinstance with all required arguments.createdAt(OffsetDateTime createdAt) Set the createdAt of thisTrckMetricResourceinstance and return the same instance.customInfo(List<TrckCustomInfoObject> customInfo) Set the customInfo of thisTrckMetricResourceinstance and return the same instance.booleanexecutionId(String executionId) Set the executionId of thisTrckMetricResourceinstance and return the same instance.Time when the metric was created or logged in RFC3339 formatgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theTrckMetricResource.Generic IDArray of Metric itemsTime when the metric was created or logged in RFC3339 formatgetTags()a list of name-value object pairs associated with the execution/deployment.inthashCode()metrics(List<TrckMetric> metrics) Set the metrics of thisTrckMetricResourceinstance and return the same instance.modifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisTrckMetricResourceinstance and return the same instance.voidsetCreatedAt(OffsetDateTime createdAt) Set the createdAt of thisTrckMetricResourceinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTrckMetricResourceinstance.voidsetCustomInfo(List<TrckCustomInfoObject> customInfo) Set the customInfo of thisTrckMetricResourceinstance.voidsetExecutionId(String executionId) Set the executionId of thisTrckMetricResourceinstance.voidsetMetrics(List<TrckMetric> metrics) Set the metrics of thisTrckMetricResourceinstance.voidsetModifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisTrckMetricResourceinstance.voidSet the tags of thisTrckMetricResourceinstance.Set the tags of thisTrckMetricResourceinstance and return the same instance.toMap()Get the value of all properties of thisTrckMetricResourceinstance including unrecognized properties.toString()
-
Constructor Details
-
TrckMetricResource
protected TrckMetricResource()Default constructor for TrckMetricResource.
-
-
Method Details
-
executionId
Set the executionId of thisTrckMetricResourceinstance and return the same instance.- Parameters:
executionId- Generic ID- Returns:
- The same instance of this
TrckMetricResourceclass
-
getExecutionId
Generic ID- Returns:
- executionId The executionId of this
TrckMetricResourceinstance.
-
setExecutionId
Set the executionId of thisTrckMetricResourceinstance.- Parameters:
executionId- Generic ID
-
createdAt
Set the createdAt of thisTrckMetricResourceinstance and return the same instance.- Parameters:
createdAt- Time when the metric was created or logged in RFC3339 format- Returns:
- The same instance of this
TrckMetricResourceclass
-
getCreatedAt
Time when the metric was created or logged in RFC3339 format- Returns:
- createdAt The createdAt of this
TrckMetricResourceinstance.
-
setCreatedAt
Set the createdAt of thisTrckMetricResourceinstance.- Parameters:
createdAt- Time when the metric was created or logged in RFC3339 format
-
modifiedAt
Set the modifiedAt of thisTrckMetricResourceinstance and return the same instance.- Parameters:
modifiedAt- Time when the metric was created or logged in RFC3339 format- Returns:
- The same instance of this
TrckMetricResourceclass
-
getModifiedAt
Time when the metric was created or logged in RFC3339 format- Returns:
- modifiedAt The modifiedAt of this
TrckMetricResourceinstance.
-
setModifiedAt
Set the modifiedAt of thisTrckMetricResourceinstance.- Parameters:
modifiedAt- Time when the metric was created or logged in RFC3339 format
-
metrics
Set the metrics of thisTrckMetricResourceinstance and return the same instance.- Parameters:
metrics- Array of Metric items- Returns:
- The same instance of this
TrckMetricResourceclass
-
addMetricsItem
Add one metrics instance to thisTrckMetricResource.- Parameters:
metricsItem- The metrics that should be added- Returns:
- The same instance of type
TrckMetricResource
-
getMetrics
Array of Metric items- Returns:
- metrics The metrics of this
TrckMetricResourceinstance.
-
setMetrics
Set the metrics of thisTrckMetricResourceinstance.- Parameters:
metrics- Array of Metric items
-
tags
Set the tags of thisTrckMetricResourceinstance and return the same instance.- Parameters:
tags- a list of name-value object pairs associated with the execution/deployment. Tags are queryable.- Returns:
- The same instance of this
TrckMetricResourceclass
-
addTagsItem
Add one tags instance to thisTrckMetricResource.- Parameters:
tagsItem- The tags that should be added- Returns:
- The same instance of type
TrckMetricResource
-
getTags
a list of name-value object pairs associated with the execution/deployment. Tags are queryable.- Returns:
- tags The tags of this
TrckMetricResourceinstance.
-
setTags
Set the tags of thisTrckMetricResourceinstance.- Parameters:
tags- a list of name-value object pairs associated with the execution/deployment. Tags are queryable.
-
customInfo
Set the customInfo of thisTrckMetricResourceinstance and return the same instance.- Parameters:
customInfo-- Returns:
- The same instance of this
TrckMetricResourceclass
-
addCustomInfoItem
Add one customInfo instance to thisTrckMetricResource.- Parameters:
customInfoItem- The customInfo that should be added- Returns:
- The same instance of type
TrckMetricResource
-
getCustomInfo
- Returns:
- customInfo The customInfo of this
TrckMetricResourceinstance.
-
setCustomInfo
Set the customInfo of thisTrckMetricResourceinstance.- Parameters:
customInfo-
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTrckMetricResource.- 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 thisTrckMetricResourceinstance.- 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 thisTrckMetricResourceinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTrckMetricResourceinstance. 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 newTrckMetricResourceinstance with all required arguments.
-
toMap()instead.