1Fetch Completed Jobs

1Fetch Completed Jobs

Overview

This API retrieves Completed Jobs. Users can also apply filters to retrieve the list of jobs.

Method: POST

Request URL: {kyvos-url}/rest/v2/activity-monitor/completed-jobs


Authorization

API Key: sessionid

This method authenticates requests using a session ID which acts like an API key.


BasicAuth: HTTP Authorization Scheme

This method authenticates requests using a username and password sent in the HTTP Authorization header.


Headers

Header Name

Type

Description

Possible Values

Header Name

Type

Description

Possible Values

Content-Type (Required)

String

Specifies media type of the request body.

application/x-www-form-urlencoded

sessionid

String

The session ID is the token received from the Login API.

Note: Session ID is required for token-based authentication.

–


Request Body

Parameter Name

Type

Description

Possible Values

Parameter Name

Type

Description

Possible Values

requestJson (Required)

String

JSON definition containing the parameters and filter list.

Note: If this JSON is not provided, the API applies these defaults: maxRows=300, sortField=ORIGINAL_RUNTIME, sortOrder=DESC, sortDataType=1, and default filters as Job Listing = COMPLETED and Original Runtime = LAST 7 DAYS.

Note: An example JSON is provided under the Resources section below.

–


Responses

200 Success

{ "jobs": [ { "instanceNameDisplayValue": "172.68.78.98", "entityType": "ANALYTICAL", "completedTime": "06/18/2026 19:05:07 IST", "entitySubType": "CUBE", "entityId": "SMODEL_OBJECT_17812398654937564832940318577", "instanceNameActualValue": "172.26.43.6:45450", "requestId": "584C370A-07FB-8F44-CC6E-20BABCDEFG73", "entityName": "order date", "completedTimestamp": "1781789707577", "action": "Semantic Model Full Data Process", "location": "Account", "user": "admin", "elapsedTime": "00:02:44.089", "status": "Success" }, { "instanceNameDisplayValue": "172.68.78.98", "entityType": "ANALYTICAL", "completedTime": "06/18/2026 19:04:58 IST", "entitySubType": "CUBE", "entityId": "17784888583934127028070140909876", "instanceNameActualValue": "172.26.43.6:45450", "requestId": "72AB1AB3-ADE7-3EB4-84E3-F931543FDD42", "entityName": "SCD_Type1_MF_Final", "completedTimestamp": "1781789698794", "action": "Semantic Model Full Data Process", "location": "Order", "user": "admin2", "elapsedTime": "00:01:06.022", "status": "Success" }, { "instanceNameDisplayValue": "172.68.78.98", "entityType": "ANALYTICAL", "completedTime": "06/18/2026 19:03:30 IST", "entitySubType": "CUBE", "entityId": "17784888583934127028070554455641", "instanceNameActualValue": "172.26.43.6:45450", "requestId": "D8011E57-E43B-F68F-4DF0-ABCDEFGHFD4F", "entityName": "SCD_Type1_MF_Final", "completedTimestamp": "1781789610931", "action": "Semantic Model Full Data Process", "location": "Order", "user": "admin2", "elapsedTime": "00:00:00.219", "status": "Failed" }, { "instanceNameDisplayValue": "172.68.78.98", "entityType": "ANALYTICAL", "completedTime": "06/18/2026 18:06:50 IST", "entitySubType": "CUBE", "entityId": "17549731658344127048075167777777", "instanceNameActualValue": "172.26.43.6:45450", "requestId": "2EF089F6-7887-7BC7-9E84-6ABCERF66AB5", "entityName": "AdventureWorksMF_NoSpark2", "completedTimestamp": "1781786210717", "action": "Semantic Model Full Data Process", "location": "Tesing", "user": "admin.test", "elapsedTime": "00:21:51.298", "status": "Failed" } ] }

Status Code

Description

Status Code

Description

401

Authorization information is missing or invalid.

404

Connection, database, schema, or table not found.

412

Precondition failed. Required parameter missing.

500

Internal Server Error


Resources

Below is an example of JSON structure which can be used as a reference for the requestJson parameter in the request body.

{ "maxRows": "300", "sortField": "ORIGINAL_RUNTIME", "sortOrder": "DESC", "sortDataType": "1", "filters": [ { "fieldName": "FOLDER_NAME", "operation": "EQUALSIGNORECASE", "dataType": "CHAR", "firstValue": "Admin" }, { "fieldName": "ACTION", "operation": "INLIST", "dataType": "CHAR", "firstValue": "'Semantic Model Full Data Process','Query Execution'" }, { "fieldName": "ELAPSED_TIME", "operation": "BETWEEN", "dataType": "NUMBER", "firstValue": "60000", "secondValue": "300000" }, { "fieldName": "ORIGINAL_RUNTIME", "operation": "LAST", "dataType": "NUMBER", "firstValue": "7", "secondValue": "Day" } ], "lastRecordEndTime": "", "lastRecordValue": "", "lastRecordValueDataType": "" }

JSON Field Definitions

Field

Type

Description

Possible Values

Example

Field

Type

Description

Possible Values

Example

maxRows

Number

Maximum number of records to return. If omitted, the default value is 300.

Any positive integer

300

sortField

String

Field used to sort the returned records. If omitted, defaults to ORIGINAL_RUNTIME.

Any supported filter field name (see Supported Filter Fields table)

"ORIGINAL_RUNTIME"

sortOrder

String

Sort order of the results.

ASC, DESC

"DESC"

sortDataType

Number

Data type of the sort field. Defaults to 1.

1

"1"

filters

Array of JSON Objects

Note: Details of supported objects are provided in the section Filter Objects

List of filters to apply. Multiple filters are combined using AND.

Array of filter objects

[ {...}, {...} ]

filters[].fieldName

String

Field on which the filter will be applied.

Any supported filter field name (see Supported Filter Fields table)

"FOLDER_NAME"

filters[].operation

String

Filter operation to perform. Supported operations depend on the selected field.

  1. EQUALSIGNORECASE: Performs a case-insensitive exact match.

  2. STARTSWITHIGNORECASE: Matches values that start with the specified text (case-insensitive).

  3. CONTAINSIGNORECASE: Matches values containing the specified text (case-insensitive).

  4. EQUAL_TO: Performs a case-sensitive exact match.

  5. NOT_EQUAL_TO: Excludes values that exactly match the specified input.

  6. INLIST: Matches any value from a comma-separated list.

  7. NOTINLIST: Excludes values from a comma-separated list.

  8. GREATER_THAN: Returns values greater than firstValue.

  9. LESS_THAN: Returns values less than firstValue.

  10. BETWEEN: Returns values within a range defined by firstValue and secondValue.

  11. LAST: Filters data from a recent duration; firstValue is the number and secondValue is the unit (Day, Hour, or Minute), e.g., Last 7 Days.

  12. CURRENT: Filters data for the current period; currently supports only Day (set firstValue to Day).

"EQUALSIGNORECASE"

filters[].dataType

String

Data type of the field being filtered.

CHAR, NUMBER

"CHAR"

filters[].firstValue

String

Primary value used by the selected operation. For CURRENT, specify Day. For LAST, specify the numeric value.

Depends on the selected field and operation

"User1"

filters[].secondValue

String

Secondary value required only for BETWEEN and LAST operations.

BETWEEN → End valueLAST → Day, Hour, Minute

"Day"

lastRecordEndTime

String

Pagination value returned in the previous response. Leave empty for the first request.

Value returned by the previous response

""

lastRecordValue

String

Pagination value returned in the previous response. Leave empty for the first request.

Value returned by the previous response

""

lastRecordValueDataType

String

Data type of lastRecordValue. Used internally for pagination. Leave empty for the first request.

Value returned by the previous response

""

Supported Filter Fields

Below are the supported fields on which filters can be applied (referfilters[].fieldName in the above table).

Field Name

Data Type

Allowed Operations

Possible Values

Field Name

Data Type

Allowed Operations

Possible Values

ENTITY_NAME

CHAR

EQUALSIGNORECASE, STARTSWITHIGNORECASE, CONTAINSIGNORECASE

Any entity name

QUESTION_ID

CHAR

EQUALSIGNORECASE, STARTSWITHIGNORECASE, CONTAINSIGNORECASE

Any question ID

QUERY_CUBE_NAME

CHAR

EQUALSIGNORECASE, STARTSWITHIGNORECASE, CONTAINSIGNORECASE

Any query cube name

INSTANCE_NAME

CHAR

EQUALSIGNORECASE, STARTSWITHIGNORECASE, CONTAINSIGNORECASE

Any instance name

USER_NAME

CHAR

EQUALSIGNORECASE, STARTSWITHIGNORECASE, CONTAINSIGNORECASE

Any user name

FOLDER_NAME

CHAR

EQUALSIGNORECASE, STARTSWITHIGNORECASE, CONTAINSIGNORECASE

Any folder name

ACTION

CHAR

INLIST, NOTINLIST

Query Execution, Semantic Model Full Data Process, Semantic Model Incremental Data Process, Semantic Model Update Aggregates, Semantic Model Data Profile, Semantic Model Test Data Process, Semantic Model Without Data Process, Drop Partition, Dataset Data Profile, Cache Build, Email, NL Query Execution

QUERY_EXECUTED_ON

NUMBER

INLIST, NOTINLIST

KYVOS_ENGINE (Kyvos Engine)EXTERNAL_ENGINE (External SQL Engine)

OVERALL_STATUS

CHAR

INLIST, NOTINLIST

Success, Failed, PARTIALLY_SUCCESSFUL (Partial Success),CANCELED (Canceled)

ORIGINAL_RUNTIME

NUMBER

LAST, CURRENT, BETWEEN

Note: When using the option BETWEEN, the firstValue and secondValue should be provided as Unix timestamp.

Numeric values

EXECUTED_ON_GPU

NUMBER

EQUAL_TO, GREATER_THAN, LESS_THAN, BETWEEN

Numeric values

ELAPSED_TIME

NUMBER

GREATER_THAN, LESS_THAN, BETWEEN

Time in milliseconds

QUERY_TYPE

CHAR

EQUAL_TO

MDXSQLDAXWORKSHEET (Kyvos Worksheet)QNASHEET (Kyvos Chat Session)

FOLDER_ID

CHAR

EQUALSIGNORECASE

Any folder ID

QUERY_SOURCE

NUMBER

EQUAL_TO, NOT_EQUAL_TO, INLIST, NOTINLIST

NOT_AVAILABLE (Not Available)

OE_CACHE (Analytical Server

Cache)

QE_CACHE (Query Engine Cache)

DISK (Disk)

OE_QE (Analytical Server and Query Engine Cache)

OE_DISK (Analytical Server Cache and Disk)

QE_DISK (Query Engine Cache and Disk)

OE_QE_DISK (Analytical Server Cache, Query Engine Cache and Disk)

Notes

  • dataType supports only CHAR and NUMBER.

  • ELAPSED_TIME values must be provided in milliseconds.

  • sortField should be one of the supported field names listed above.

  • If maxRows is not specified, the API returns up to 300 records.

  • Pagination is supported using lastRecordEndTime, lastRecordValue, and lastRecordValueDataType. Leave these fields empty for the initial request and pass the values returned in the previous response to fetch the next page.

  • The API validates supported field-operation combinations. It does not validate enum values or incorrect data types.

  • Multiple filters are combined using AND.

Copyright Kyvos, Inc. 2026. All rights reserved.