# JobQuery

## AV.Insight. JobQuery

#### new JobQuery(id)

Source:
  - insight.js, line 72
Since:
  - 0.5.5

创建一个对象，用于查询 Insight 任务状态和结果。

##### Parameters:

Name | Type | Description
--- | --- | ---
`id` | String | 任务 id

### Methods

#### find(optionsopt) → {Promise}

Source:
  - insight.js, line 118

查询任务状态和结果，任务结果为一个 JSON 对象，包括 status 表示任务状态， totalCount 表示总数， results 数组表示任务结果数组，previewCount 表示可以返回的结果总数，任务的开始和截止时间 startTime、endTime 等信息。

##### Parameters:

Name | Type | Attributes | Description
--- | --- | --- | ---
`options` | AuthOptions | <optional> |

##### Returns:

A promise that will be resolved with the result of the function.

Type
  Promise

#### limit(n) → {AV.Query}

Source:
  - insight.js, line 103

Sets the limit of the number of results to return. The default limit is 100, with a maximum of 1000 results being returned at a time.

##### Parameters:

Name | Type | Description
--- | --- | ---
`n` | Number | the number of results to limit to.

##### Returns:

Returns the query, so you can chain this call.

Type
  AV.Query

#### skip(n) → {AV.Query}

Source:
  - insight.js, line 92

Sets the number of results to skip before returning any results. This is useful for pagination. Default is to skip zero results.

##### Parameters:

Name | Type | Description
--- | --- | ---
`n` | Number | the number of results to skip.

##### Returns:

Returns the query, so you can chain this call.

Type
  AV.Query