Class OnlineScoreConfig
-
- All Implemented Interfaces:
public final class OnlineScoreConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOnlineScoreConfig.BuilderA builder for OnlineScoreConfig.
public final classOnlineScoreConfig.Scorer
-
Method Summary
Modifier and Type Method Description final DoublesamplingRate()The sampling rate for online scoring final List<OnlineScoreConfig.Scorer>scorers()The list of scorers to use for online scoring final Optional<Boolean>applyToRootSpan()Whether to trigger online scoring on the root span of each trace final Optional<List<String>>applyToSpanNames()Trigger online scoring on any spans with a name in this list final JsonField<Double>_samplingRate()Returns the raw JSON value of samplingRate. final JsonField<List<OnlineScoreConfig.Scorer>>_scorers()Returns the raw JSON value of scorers. final JsonField<Boolean>_applyToRootSpan()Returns the raw JSON value of applyToRootSpan. final JsonField<List<String>>_applyToSpanNames()Returns the raw JSON value of applyToSpanNames. final Map<String, JsonValue>_additionalProperties()final OnlineScoreConfig.BuildertoBuilder()final OnlineScoreConfigvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OnlineScoreConfig.Builderbuilder()Returns a mutable builder for constructing an instance of OnlineScoreConfig. -
-
Method Detail
-
samplingRate
final Double samplingRate()
The sampling rate for online scoring
-
scorers
final List<OnlineScoreConfig.Scorer> scorers()
The list of scorers to use for online scoring
-
applyToRootSpan
final Optional<Boolean> applyToRootSpan()
Whether to trigger online scoring on the root span of each trace
-
applyToSpanNames
final Optional<List<String>> applyToSpanNames()
Trigger online scoring on any spans with a name in this list
-
_samplingRate
final JsonField<Double> _samplingRate()
Returns the raw JSON value of samplingRate.
Unlike samplingRate, this method doesn't throw if the JSON field has an unexpected type.
-
_scorers
final JsonField<List<OnlineScoreConfig.Scorer>> _scorers()
Returns the raw JSON value of scorers.
Unlike scorers, this method doesn't throw if the JSON field has an unexpected type.
-
_applyToRootSpan
final JsonField<Boolean> _applyToRootSpan()
Returns the raw JSON value of applyToRootSpan.
Unlike applyToRootSpan, this method doesn't throw if the JSON field has an unexpected type.
-
_applyToSpanNames
final JsonField<List<String>> _applyToSpanNames()
Returns the raw JSON value of applyToSpanNames.
Unlike applyToSpanNames, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OnlineScoreConfig.Builder toBuilder()
-
validate
final OnlineScoreConfig validate()
-
builder
final static OnlineScoreConfig.Builder builder()
Returns a mutable builder for constructing an instance of OnlineScoreConfig.
The following fields are required:
.samplingRate() .scorers()
-
-
-
-