Package com.sap.ai.sdk.core.model
Class TrckGetMetricResource
java.lang.Object
com.sap.ai.sdk.core.model.TrckGetMetricResource
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 TrckGetMetricResource. -
Method Summary
Modifier and TypeMethodDescriptionaddCustomInfoItem(TrckCustomInfoObject customInfoItem) Add one customInfo instance to thisTrckGetMetricResource.addMetricsItem(TrckGetMetric metricsItem) Add one metrics instance to thisTrckGetMetricResource.addTagsItem(TrckTag tagsItem) Add one tags instance to thisTrckGetMetricResource.create()Create a type-safe, fluent-api builder object to construct a newTrckGetMetricResourceinstance with all required arguments.createdAt(OffsetDateTime createdAt) Set the createdAt of thisTrckGetMetricResourceinstance and return the same instance.customInfo(List<TrckCustomInfoObject> customInfo) Set the customInfo of thisTrckGetMetricResourceinstance and return the same instance.booleanexecutionId(String executionId) Set the executionId of thisTrckGetMetricResourceinstance 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 theTrckGetMetricResource.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<TrckGetMetric> metrics) Set the metrics of thisTrckGetMetricResourceinstance and return the same instance.modifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisTrckGetMetricResourceinstance and return the same instance.voidsetCreatedAt(OffsetDateTime createdAt) Set the createdAt of thisTrckGetMetricResourceinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisTrckGetMetricResourceinstance.voidsetCustomInfo(List<TrckCustomInfoObject> customInfo) Set the customInfo of thisTrckGetMetricResourceinstance.voidsetExecutionId(String executionId) Set the executionId of thisTrckGetMetricResourceinstance.voidsetMetrics(List<TrckGetMetric> metrics) Set the metrics of thisTrckGetMetricResourceinstance.voidsetModifiedAt(OffsetDateTime modifiedAt) Set the modifiedAt of thisTrckGetMetricResourceinstance.voidSet the tags of thisTrckGetMetricResourceinstance.Set the tags of thisTrckGetMetricResourceinstance and return the same instance.toMap()Get the value of all properties of thisTrckGetMetricResourceinstance including unrecognized properties.toString()
-
Constructor Details
-
TrckGetMetricResource
protected TrckGetMetricResource()Default constructor for TrckGetMetricResource.
-
-
Method Details
-
executionId
Set the executionId of thisTrckGetMetricResourceinstance and return the same instance.- Parameters:
executionId- Generic ID- Returns:
- The same instance of this
TrckGetMetricResourceclass
-
getExecutionId
Generic ID- Returns:
- executionId The executionId of this
TrckGetMetricResourceinstance.
-
setExecutionId
Set the executionId of thisTrckGetMetricResourceinstance.- Parameters:
executionId- Generic ID
-
createdAt
Set the createdAt of thisTrckGetMetricResourceinstance and return the same instance.- Parameters:
createdAt- Time when the metric was created or logged in RFC3339 format- Returns:
- The same instance of this
TrckGetMetricResourceclass
-
getCreatedAt
Time when the metric was created or logged in RFC3339 format- Returns:
- createdAt The createdAt of this
TrckGetMetricResourceinstance.
-
setCreatedAt
Set the createdAt of thisTrckGetMetricResourceinstance.- Parameters:
createdAt- Time when the metric was created or logged in RFC3339 format
-
modifiedAt
Set the modifiedAt of thisTrckGetMetricResourceinstance and return the same instance.- Parameters:
modifiedAt- Time when the metric was created or logged in RFC3339 format- Returns:
- The same instance of this
TrckGetMetricResourceclass
-
getModifiedAt
Time when the metric was created or logged in RFC3339 format- Returns:
- modifiedAt The modifiedAt of this
TrckGetMetricResourceinstance.
-
setModifiedAt
Set the modifiedAt of thisTrckGetMetricResourceinstance.- Parameters:
modifiedAt- Time when the metric was created or logged in RFC3339 format
-
metrics
Set the metrics of thisTrckGetMetricResourceinstance and return the same instance.- Parameters:
metrics- Array of Metric items- Returns:
- The same instance of this
TrckGetMetricResourceclass
-
addMetricsItem
Add one metrics instance to thisTrckGetMetricResource.- Parameters:
metricsItem- The metrics that should be added- Returns:
- The same instance of type
TrckGetMetricResource
-
getMetrics
Array of Metric items- Returns:
- metrics The metrics of this
TrckGetMetricResourceinstance.
-
setMetrics
Set the metrics of thisTrckGetMetricResourceinstance.- Parameters:
metrics- Array of Metric items
-
tags
Set the tags of thisTrckGetMetricResourceinstance 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
TrckGetMetricResourceclass
-
addTagsItem
Add one tags instance to thisTrckGetMetricResource.- Parameters:
tagsItem- The tags that should be added- Returns:
- The same instance of type
TrckGetMetricResource
-
getTags
a list of name-value object pairs associated with the execution/deployment. Tags are queryable.- Returns:
- tags The tags of this
TrckGetMetricResourceinstance.
-
setTags
Set the tags of thisTrckGetMetricResourceinstance.- Parameters:
tags- a list of name-value object pairs associated with the execution/deployment. Tags are queryable.
-
customInfo
Set the customInfo of thisTrckGetMetricResourceinstance and return the same instance.- Parameters:
customInfo-- Returns:
- The same instance of this
TrckGetMetricResourceclass
-
addCustomInfoItem
@Nonnull public TrckGetMetricResource addCustomInfoItem(@Nonnull TrckCustomInfoObject customInfoItem) Add one customInfo instance to thisTrckGetMetricResource.- Parameters:
customInfoItem- The customInfo that should be added- Returns:
- The same instance of type
TrckGetMetricResource
-
getCustomInfo
- Returns:
- customInfo The customInfo of this
TrckGetMetricResourceinstance.
-
setCustomInfo
Set the customInfo of thisTrckGetMetricResourceinstance.- Parameters:
customInfo-
-
getCustomFieldNames
Get the names of the unrecognizable properties of theTrckGetMetricResource.- 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 thisTrckGetMetricResourceinstance.- 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 thisTrckGetMetricResourceinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisTrckGetMetricResourceinstance. 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 newTrckGetMetricResourceinstance with all required arguments.
-
toMap()instead.