Class GetScoresRequest.Builder
- Enclosing class:
GetScoresRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Retrieve only scores with a specific configId.datasetRunId(String datasetRunId) datasetRunId(Optional<String> datasetRunId) Retrieve only scores with a specific datasetRunId.dataType(ScoreDataType dataType) dataType(Optional<ScoreDataType> dataType) Retrieve only scores with a specific dataType.environment(String environment) environment(List<String> environment) environment(Optional<List<String>> environment) Optional filter for scores where the environment is one of the provided values.Comma-separated list of field groups to include in the response.A JSON stringified array of filter objects.from(GetScoresRequest other) fromTimestamp(OffsetDateTime fromTimestamp) fromTimestamp(Optional<OffsetDateTime> fromTimestamp) Optional filter to only include scores created on or after a certain datetime (ISO 8601)Limit of items per page.Retrieve only scores with this name.observationId(String observationId) observationId(Optional<String> observationId) Comma-separated list of observation IDs to filter scores by.Retrieve only scores with <operator> value.Page number, starts at 1.Retrieve only scores with a specific annotation queueId.Comma-separated list of score IDs to limit the results to.Retrieve only scores with a specific sessionId.source(ScoreSource source) source(Optional<ScoreSource> source) Retrieve only scores from a specific source.toTimestamp(OffsetDateTime toTimestamp) toTimestamp(Optional<OffsetDateTime> toTimestamp) Optional filter to only include scores created before a certain datetime (ISO 8601)Retrieve only scores with a specific traceId.Only scores linked to traces that include all of these tags will be returned.Retrieve only scores with this userId associated to the trace.Retrieve only scores with <operator> value.
-
Method Details
-
from
-
environment
Optional filter for scores where the environment is one of the provided values.
-
environment
-
environment
-
traceTags
Only scores linked to traces that include all of these tags will be returned.
-
traceTags
-
traceTags
-
page
Page number, starts at 1.
-
page
-
limit
Limit of items per page. If you encounter api issues due to too large page sizes, try to reduce the limit.
-
limit
-
userId
Retrieve only scores with this userId associated to the trace.
-
userId
-
name
Retrieve only scores with this name.
-
name
-
fromTimestamp
Optional filter to only include scores created on or after a certain datetime (ISO 8601)
-
fromTimestamp
-
toTimestamp
Optional filter to only include scores created before a certain datetime (ISO 8601)
-
toTimestamp
-
source
Retrieve only scores from a specific source.
-
source
-
operator
Retrieve only scores with <operator> value.
-
operator
-
value
Retrieve only scores with <operator> value.
-
value
-
scoreIds
Comma-separated list of score IDs to limit the results to.
-
scoreIds
-
configId
Retrieve only scores with a specific configId.
-
configId
-
sessionId
Retrieve only scores with a specific sessionId.
-
sessionId
-
datasetRunId
Retrieve only scores with a specific datasetRunId.
-
datasetRunId
-
traceId
Retrieve only scores with a specific traceId.
-
traceId
-
observationId
Comma-separated list of observation IDs to filter scores by.
-
observationId
-
queueId
Retrieve only scores with a specific annotation queueId.
-
queueId
-
dataType
Retrieve only scores with a specific dataType.
-
dataType
-
fields
Comma-separated list of field groups to include in the response. Available field groups: 'score' (core score fields), 'trace' (trace properties: userId, tags, environment). If not specified, both 'score' and 'trace' are returned by default. Example: 'score' to exclude trace data, 'score,trace' to include both. Note: When filtering by trace properties (using userId or traceTags parameters), the 'trace' field group must be included, otherwise a 400 error will be returned.
-
fields
-
filter
A JSON stringified array of filter objects. Each object requires type, column, operator, and value. Supports filtering by score metadata using the stringObject type. Example: [{"type":"stringObject","column":"metadata","key":"user_id","operator":"=","value":"abc123"}]. Supported types: stringObject (metadata key-value filtering), string, number, datetime, stringOptions, arrayOptions. Supported operators for stringObject: =, contains, does not contain, starts with, ends with.
-
filter
-
build
-
additionalProperty
-
additionalProperties
-