REST Resource: projects.locations.apps.scheduledEvaluationRuns

Resource: ScheduledEvaluationRun

Represents a scheduled evaluation run configuration.

JSON representation
{
  "name": string,
  "displayName": string,
  "request": {
    object (RunEvaluationRequest)
  },
  "description": string,
  "schedulingConfig": {
    object (ScheduledEvaluationRun.SchedulingConfig)
  },
  "active": boolean,
  "lastCompletedRun": string,
  "totalExecutions": integer,
  "nextScheduledExecutionTime": string,
  "createTime": string,
  "createdBy": string,
  "updateTime": string,
  "lastUpdatedBy": string,
  "etag": string
}
Fields
name

string

Identifier. The unique identifier of the scheduled evaluation run config. Format: projects/{projectId}/locations/{locationId}/apps/{appId}/scheduledEvaluationRuns/{scheduledEvaluationRunId}

displayName

string

Required. User-defined display name of the scheduled evaluation run config.

request

object (RunEvaluationRequest)

Required. The RunEvaluationRequest to schedule

description

string

Optional. User-defined description of the scheduled evaluation run.

schedulingConfig

object (ScheduledEvaluationRun.SchedulingConfig)

Required. Configuration for the timing and frequency with which to execute the evaluations.

active

boolean

Optional. Whether this config is active

lastCompletedRun

string

Output only. The last successful EvaluationRun of this scheduled execution. Format: projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}

totalExecutions

integer

Output only. The total number of times this run has been executed

nextScheduledExecutionTime

string (Timestamp format)

Output only. The next time this is scheduled to execute

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

createTime

string (Timestamp format)

Output only. Timestamp when the scheduled evaluation run was created.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

createdBy

string

Output only. The user who created the scheduled evaluation run.

updateTime

string (Timestamp format)

Output only. Timestamp when the evaluation was last updated.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

lastUpdatedBy

string

Output only. The user who last updated the evaluation.

etag

string

Output only. Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.

RunEvaluationRequest

Request message for EvaluationService.RunEvaluation.

JSON representation
{
  "app": string,
  "evaluations": [
    string
  ],
  "evaluationDataset": string,
  "displayName": string,
  "appVersion": string,
  "config": {
    object (EvaluationConfig)
  },
  "personaRunConfigs": [
    {
      object (PersonaRunConfig)
    }
  ],
  "optimizationConfig": {
    object (OptimizationConfig)
  },
  "scheduledEvaluationRun": string,
  "goldenRunMethod": enum (GoldenRunMethod),
  "runCount": integer
}
Fields
app

string

Required. The app to evaluate. Format: projects/{project}/locations/{location}/apps/{app}

evaluations[]

string

Optional. List of evaluations to run. Format: projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}

evaluationDataset

string

Optional. An evaluation dataset to run. Format: projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}

displayName

string

Optional. The display name of the evaluation run.

appVersion

string

Optional. The app version to evaluate. Format: projects/{project}/locations/{location}/apps/{app}/versions/{version}

config

object (EvaluationConfig)

Optional. The configuration to use for the run.

personaRunConfigs[]

object (PersonaRunConfig)

Optional. The configuration to use for the run per persona.

optimizationConfig

object (OptimizationConfig)

Optional. Configuration for running the optimization step after the evaluation run. If not set, the optimization step will not be run.

scheduledEvaluationRun

string

Optional. The resource name of the ScheduledEvaluationRun that is triggering this evaluation run.

If this field is set, the scheduledEvaluationRun field on the created EvaluationRun resource will be populated from this value. Format: projects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduledEvaluationRun}

goldenRunMethod

enum (GoldenRunMethod)

Optional. The method to run the evaluation if it is a golden evaluation. If not set, default to STABLE.

runCount

integer

Optional. The number of times to run the evaluation. If not set, the default value is 1 per golden, and 5 per scenario.

ScheduledEvaluationRun.SchedulingConfig

Eval scheduling configuration details

JSON representation
{
  "frequency": enum (ScheduledEvaluationRun.SchedulingConfig.Frequency),
  "startTime": string,
  "daysOfWeek": [
    integer
  ]
}
Fields
frequency

enum (ScheduledEvaluationRun.SchedulingConfig.Frequency)

Required. The frequency with which to run the eval

startTime

string (Timestamp format)

Required. Timestamp when the eval should start.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

daysOfWeek[]

integer

Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday.

ScheduledEvaluationRun.SchedulingConfig.Frequency

The frequencies evals can be run at

Enums
FREQUENCY_UNSPECIFIED The frequency is unspecified.
NONE Indicates a one-time scheduled run that should not repeat
DAILY Run the evaluation daily.
WEEKLY Run the evaluation weekly.
BIWEEKLY Run the evaluation biweekly.

Methods

create

Creates a scheduled evaluation run.

delete

Deletes a scheduled evaluation run.

get

Gets details of the specified scheduled evaluation run.

list

Lists all scheduled evaluation runs in the given app.

patch

Updates a scheduled evaluation run.