Class ScoreBody.Builder
java.lang.Object
com.ants.platform.client.resources.ingestion.types.ScoreBody.Builder
- All Implemented Interfaces:
ScoreBody._FinalStage, ScoreBody.NameStage, ScoreBody.ValueStage
- Enclosing class:
ScoreBody
public static final class ScoreBody.Builder
extends Object
implements ScoreBody.NameStage, ScoreBody.ValueStage, ScoreBody._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Reference a score config on a score.datasetRunId(String datasetRunId) datasetRunId(Optional<String> datasetRunId) dataType(ScoreDataType dataType) When set, must match the score value's type.dataType(Optional<ScoreDataType> dataType) environment(String environment) environment(Optional<String> environment) observationId(String observationId) observationId(Optional<String> observationId) value(CreateScoreValue value) The value of the score.
-
Method Details
-
from
- Specified by:
fromin interfaceScoreBody.NameStage
-
name
- Specified by:
namein interfaceScoreBody.NameStage
-
value
The value of the score. Must be passed as string for categorical scores, and numeric for boolean and numeric scores. Boolean score values must equal either 1 or 0 (true or false)
- Specified by:
valuein interfaceScoreBody.ValueStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
Reference a score config on a score. When set, the score name must equal the config name and scores must comply with the config's range and data type. For categorical scores, the value must map to a config category. Numeric scores might be constrained by the score config's max and min values
- Specified by:
configIdin interfaceScoreBody._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
configId
- Specified by:
configIdin interfaceScoreBody._FinalStage
-
dataType
When set, must match the score value's type. If not set, will be inferred from the score value or config
- Specified by:
dataTypein interfaceScoreBody._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
dataType
- Specified by:
dataTypein interfaceScoreBody._FinalStage
-
metadata
- Specified by:
metadatain interfaceScoreBody._FinalStage
-
metadata
- Specified by:
metadatain interfaceScoreBody._FinalStage
-
comment
- Specified by:
commentin interfaceScoreBody._FinalStage
-
comment
- Specified by:
commentin interfaceScoreBody._FinalStage
-
environment
- Specified by:
environmentin interfaceScoreBody._FinalStage
-
environment
- Specified by:
environmentin interfaceScoreBody._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceScoreBody._FinalStage
-
datasetRunId
- Specified by:
datasetRunIdin interfaceScoreBody._FinalStage
-
observationId
- Specified by:
observationIdin interfaceScoreBody._FinalStage
-
observationId
- Specified by:
observationIdin interfaceScoreBody._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceScoreBody._FinalStage
-
sessionId
- Specified by:
sessionIdin interfaceScoreBody._FinalStage
-
traceId
- Specified by:
traceIdin interfaceScoreBody._FinalStage
-
traceId
- Specified by:
traceIdin interfaceScoreBody._FinalStage
-
id
- Specified by:
idin interfaceScoreBody._FinalStage
-
id
- Specified by:
idin interfaceScoreBody._FinalStage
-
build
- Specified by:
buildin interfaceScoreBody._FinalStage
-