Retrieve Job statistics
get
http://{host}:{port}/veridata/v1/services/monitoring/jobs
Required Role: Administrator, SuperUser, DetailMonitoringOperator, MonitoringOperator, CommandLineOperator
This API is used to monitor running and completed Jobs. By default this returns the latest Job stats.
Request
Query Parameters
-
fromDate: string
Defines the start date range (inclusive) to filter out the Job response. Supported format yyyy-MM-dd'T'HH:mm:ss'Z'. "
-
jobId: string
The job ID.The response contains groups and compare pairs latest completed run.
-
last: string
Fetch Job stats of last x units. Supported units D(Days) or H(hours) or M(minutes). Example: 1D
-
runId: string
The Job's Run ID. Example: runId=1024,0,0. Job runId can be obtained from Monitoring API.
-
status:
-
toDate: string
Defines the end date range (not inclusive) to filter out the Job response. Supported format yyyy-MM-dd'T'HH:mm:ss'Z'.
-
type: string
Supported values: GROUP/CP. Valid only when Job runId is passed in Query Param. When type=GROUP, returns Group basestats info and when type=CP, returns both Group and Compare Pair stats along with Job stats
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Returns a collection of completed Jobs with the statistics.
Root Schema : schema
Type:
Show Source
array
Example:
[
{
"runId":{
"asString":"12377/0/0",
"comparePairNum":0,
"groupNum":0,
"runID":12377
},
"startTime":"2024-02-03T10:15:30Z",
"endTime":"2024-02-03T10:15:30Z",
"jobId":1017,
"jobName":"repairTestJob",
"status":"OOS",
"repairStatus":"OOS",
"repairRunId":{
"asString":"10207/0/0",
"comparePairNum":0,
"groupNum":0,
"runID":"10207"
},
"comparePairsTotal":1,
"comparePairsProcessed":1,
"comparePairsWithErrors":0,
"comparePairsWithOOS":1,
"comparePairsWithNoOOS":0,
"comparePairsCancelled":0,
"comparePairsRunning":0,
"comparePairsPending":0,
"skippedRows":false,
"group":[
{
"runId":{
"asString":"12377/1/0",
"comparePairNum":0,
"groupNum":1,
"runID":12377
},
"startTime":"2024-02-03T10:15:30Z",
"endTime":"2024-02-03T10:15:30Z",
"grpId":1007,
"name":"base",
"numOfComparePairs":1,
"comparePairs":[
{
"runId":{
"asString":"12377/1/1",
"comparePairNum":1,
"groupNum":1,
"runID":12377
},
"startTime":"2024-02-03T10:15:30Z",
"endTime":"2024-02-03T10:15:30Z",
"comparePairId":1017,
"name":"SRC1=TRG1",
"numRowsOos":7,
"skippedRows":false,
"phase":"FINISHED",
"status":"OOS",
"repairStatus":"OOS",
"repairRunId":{
"asString":"10207/1/1",
"comparePairNum":1,
"groupNum":1,
"runID":10207
},
"errorMessage":""
}
],
"skippedRows":false,
"repairStatus":"OOS",
"repairRunId":{
"asString":"10207/1/0",
"comparePairNum":0,
"groupNum":1,
"runID":10207
},
"srcConnection":{
"name":"oracleLocal",
"id":1014,
"dbType":"oracle"
},
"trgConnection":{
"name":"oracleLocal",
"id":1014,
"dbType":"oracle"
}
}
],
"repairJobs":[
{
"repairRunId":{
"asString":"10207/0/0",
"comparePairNum":0,
"groupNum":0,
"runID":10207
},
"repairStatus":"OOS",
"startTime":"2024-02-03T10:15:30Z",
"endTime":"2024-02-03T10:15:30Z"
}
]
}
]
Nested Schema : JobStats
Statistics of Running or Completed Job.
Match All
Statistics of Running or Completed Job.
Statistics of Running or Completed Job.
Show Source
-
allOf
JobsStats
Statistics of Running or Completed Jobs.
-
object
JobStats-allOf[1]
Nested Schema : JobsStats
Statistics of Running or Completed Jobs.
Match All
Statistics of Running or Completed Jobs.
Statistics of Running or Completed Jobs.
Show Source
Nested Schema : BaseStats
Type:
Show Source
object
-
endTime: string
(date-time)
Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
-
runId: object
RunID
Run ID.
-
startTime: string
(date-time)
Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
Nested Schema : JobsStats-allOf[1]
Type:
Show Source
object
-
comparePairsCancelled: integer
(int32)
Default Value:
0
-
comparePairsPending: integer
(int32)
Default Value:
0
-
comparePairsProcessed: integer
(int32)
Default Value:
0
-
comparePairsRunning: integer
(int32)
Default Value:
0
-
comparePairsTotal: integer
(int32)
Default Value:
0
-
comparePairsWithErrors: integer
(int32)
Default Value:
0
-
comparePairsWithNoOOS: integer
(int32)
Default Value:
0
-
comparePairsWithOOS: integer
(int32)
Default Value:
0
-
jobId: integer
(int64)
-
jobName: string
-
repairRunId: object
RunID
Run ID.
-
repairStatus: string
Allowed Values:
[ "PENDING", "RUNNING", "ERRORS", "WARNINGS", "SUCCESSFUL", "CANCELLED", "OOS" ]
Repair Status. -
skippedRows: boolean
Default Value:
false
-
status: string
Allowed Values:
[ "FAILED", "CANCELLED", "OUTOFSYNC", "INSYNC", "RUNNING", "FINISHED" ]
Job status.
Nested Schema : RunID
Type:
object
Run ID.
Show Source
-
asString: string
Displays Run ID in string format.
-
comparePairNum: integer
pPart of the run ID.
-
groupNum: integer
Part of the run ID
-
runID: integer
Part of the run ID.
Nested Schema : repairJobs
Type:
Show Source
array
-
Array of:
object RepairJobBase
RepairJob Base object.
Nested Schema : GroupStats-allOf[1]
Type:
Show Source
object
-
comparePairs: array
comparePairs
-
grpId: integer
(int64)
-
name: string
-
numOfComparePairs: integer
(int64)
Default Value:
0
-
repairRunId: object
RunID
Run ID.
-
repairStatus: string
Allowed Values:
[ "PENDING", "RUNNING", "ERRORS", "WARNINGS", "SUCCESSFUL", "CANCELLED", "OOS" ]
Repair Status. -
skippedRows: boolean
Default Value:
false
-
srcConnection: object
srcConnection
-
trgConnection: object
trgConnection
Nested Schema : ComparePairBaseStats-allOf[1]
Type:
Show Source
object
-
comparePairId: integer
(int64)
-
errorMessage: string
-
name: string
-
numRowsOos: integer
(int64)
Default Value:
0
-
phase: string
Allowed Values:
[ "INITIALIZING", "INITCOMPARE", "INITCOMPARECOOS", "COOS", "SORTING", "FINISHED" ]
enum for comparison phase. -
repairRunId: object
RunID
Run ID.
-
repairStatus: string
Allowed Values:
[ "PENDING", "RUNNING", "ERRORS", "WARNINGS", "SUCCESSFUL", "CANCELLED", "OOS" ]
Repair Status. -
skippedRows: boolean
Default Value:
false
-
status: string
Allowed Values:
[ "FAILED", "CANCELLED", "OUTOFSYNC", "INSYNC", "RUNNING", "FINISHED" ]
Job status.
Nested Schema : RepairJobBase
Type:
object
RepairJob Base object.
Show Source
-
endTime: string
(date-time)
Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
-
repairRunId:
repairRunId
-
repairStatus: string
Status of Repair operation.
-
startTime: string
(date-time)
Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
Nested Schema : repairRunId-allOf[0]
Type:
object
400 Response
Bad Request.
Root Schema : Error
Type:
Show Source
object
-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
Example:
{
"errCode":"OGGV-00001",
"errMsg":"Error message"
}
401 Response
"Unauthorized".
Root Schema : Error
Type:
Show Source
object
-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
Example:
{
"errCode":"OGGV-00001",
"errMsg":"Error message"
}
404 Response
"Not found".
Root Schema : Error
Type:
Show Source
object
-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
Example:
{
"errCode":"OGGV-00001",
"errMsg":"Error message"
}
500 Response
"Server error".
Root Schema : Error
Type:
Show Source
object
-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
Example:
{
"errCode":"OGGV-00001",
"errMsg":"Error message"
}