Skip to main content

Constructor

Parameters

HttpClient
required
ModusConfig
required
string | number
required

Returns

ScopeEvaluationsResource

Methods

getConfig()

Get the evaluation configuration for this scope.

Returns

Promise<object>

getRun()

Retrieve one evaluation run with full results.

Parameters

string
required
Evaluation run id.

Returns

Promise<object> The run and its result details.

listRuns()

List evaluation runs for this scope.

Parameters

{ pageSize: number; pageToken: string }

Returns

Promise<Page<object>> A page of evaluation runs.

triggerRun()

Trigger a manual evaluation run for this scope.

Returns

Promise<object> The triggered run id and status.

updateConfig()

Update the evaluation configuration for this scope.

Parameters

object
required
Configuration fields to change.

Returns

Promise<object> The updated evaluation configuration.