search method
Searches evaluations within a project.
Request parameters:
parent
- Required. Evaluation search parent (project ID). Format:
"projects/ {project_id}"
Value must have pattern ^projects/\[^/\]+$
.
filter
- Optional. To search evaluations, you can filter by the
following: * evaluation_job.evaluation_job_id (the last part of
EvaluationJob.name) * evaluation_job.model_id (the {model_name} portion of
EvaluationJob.modelVersion) * evaluation_job.evaluation_job_run_time_start
(Minimum threshold for the evaluationJobRunTime that created the
evaluation) * evaluation_job.evaluation_job_run_time_end (Maximum
threshold for the evaluationJobRunTime that created the evaluation) *
evaluation_job.job_state (EvaluationJob.state) *
annotation_spec.display_name (the Evaluation contains a metric for the
annotation spec with this displayName) To filter by multiple critiera, use
the AND
operator or the OR
operator. The following examples shows a
string that filters by several critiera: "evaluation_job.evaluation_job_id
= {evaluation_job_id} AND evaluation_job.model_id = {model_name} AND
evaluation_job.evaluation_job_run_time_start = {timestamp_1} AND
evaluation_job.evaluation_job_run_time_end = {timestamp_2} AND
annotation_spec.display_name = {display_name}"
pageSize
- Optional. Requested page size. Server may return fewer
results than requested. Default value is 100.
pageToken
- Optional. A token identifying a page of results for the
server to return. Typically obtained by the nextPageToken of the response
to a previous search request. If you don't specify this field, the API
call requests the first page of the search.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse> search(
core.String parent, {
core.String? filter,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (filter != null) 'filter': [filter],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ =
'v1beta1/' + core.Uri.encodeFull('$parent') + '/evaluations:search';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}