DataFilter

Updated at:

Parameter

Type

Description

Example

object

The data filtering conditions for an evaluation task, which control the data query criteria, single-shot input content, sampling rate, and maximum number of evaluations.

{"query":"serviceName='checkout-service'","maxRecords":10,"samplingRate":100}

query

string

The data query filter conditions that take effect together with the evaluator-level filters.query. For trace scenarios, you can specify filter expressions such as service name, environment, and tags.

serviceName='checkout-service'

maxRecords

integer

The maximum number of evaluation records. This parameter takes effect for both backfill and continuous runs. If this parameter is not specified, the backend does not apply an additional default value.

10

samplingRate

integer

The sampling rate percentage. Valid values: 0 to 100. A value of 0 or an unspecified value indicates no sampling. A value of 100 indicates full sampling. If the value is less than 100, random sampling is performed first, and then the maxRecords limit is applied.

100

serviceNames

array

The list of service names used to restrict the services involved in data filtering.

["checkout-service"]

string

The service name.

checkout-service

provided

object

The single-shot input content for temporary evaluation, which is primarily used for one-shot tasks. Values are saved as strings. Object or array values are serialized into JSON strings.

{"input":"User queries order status","output":"Order status queried"}