Retrieve Repair Statistics
get
http://{host}:{port}/veridata/v1/services/monitoring/repair/jobs
Required Role: Administrator, SuperUser, DetailMonitoringOperator, MonitoringOperator, CommandLineOperator
This API is used to monitor Repair Jobs. Pass the runId as input to fetch Group and Compare Pair details.
Request
Query Parameters
- fromDate: string Defines the start date range (inclusive) to filter out the Repair Job response. Supported format yyyy-MM-dd'T'HH:mm:ss'Z'. Example: 2024-03-13T18:30:00Z
- last: string Fetch Repair job stats of last x units. Supported units D(Days) or H(hours) or M(minutes). Example: 1D
- runId: string The Repair Job's Run ID. Example: runId=1024,0,0. Group and Compare Pair details will be returned in response only when this parameter is passed.
- status: Defines Repair Job Status. To fetch Jobs of different status, pass comma separated values.
- toDate: string Defines the end date range (not inclusive) to filter out the Repair Job response. Supported format yyyy-MM-dd'T'HH:mm:ss'Z'. Example: 2024-03-13T18:30:00Z
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Returns a collection of Repair Jobs.
Root Schema : schema
Type:
Show Source array
Example:
[ { "runId":{ "asString":"19970/0/0", "comparePairNum":0, "groupNum":0, "runID":19970 }, "startTime":"2024-02-03T10:15:30Z", "endTime":"2024-02-03T10:15:30Z", "name":"repairTestJob", "comparePairsProcessed":5, "comparePairsRepaired":5, "comparePairsWithWarnings":0, "comparePairsCancelled":0, "repairStatus":"OOS", "groups":[ { "runId":"19970/1/0", "startTime":"2024-02-03T10:15:30Z", "endTime":"2024-02-03T10:15:30Z", "grpId":1019, "name":"baseGroups", "numOfComparePairs":1, "comparePairs":[ { "runId":{ "asString":"19970/1/1", "comparePairNum":1, "groupNum":1, "runID":19970 }, "startTime":"2024-02-03T10:15:30Z", "endTime":"2024-02-03T10:15:30Z", "id":1022, "name":"SRC3=TRG3", "status":"OOS", "errorMessage":"", "rowsRepaired":5, "inserts":2, "updates":2, "deletes":1, "insertsWithWarnings":0, "deletesWithWarnings":0, "updatesWithWarnings":0, "rowComparisonsTotal":9, "totalBytesWithWarnings":0, "totalBytesRepaired":40, "comparePair":{ "columnsSystemMapped":true, "deltaProcessingEnabled":false, "enabled":"trye", "keyColumnsSystemMapped":true, "srcTable":{ "name":"SRC3", "schema":"SYSTEM", "catalog":"ORACLPDB1", "isView":false, "tablePartition":{ "name":"SRC_PART_3" } }, "tgtTable":{ "name":"TRG3", "schema":"SYSTEM", "catalog":"ORACLPDB1", "isView":false, "tablePartition":{ "name":"TRG_PART_3" } } } } ] } ] } ]
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 : RepairJobStats-allOf[1]
Type:
Show Source object
- comparePairsCancelled: integer (int64)
- comparePairsProcessed: integer (int64)
- comparePairsRepaired: integer (int64)
- comparePairsWithWarnings: integer (int64)
- groups: array groups
- name: string
- repairStatus: string Allowed Values:
[ "PENDING", "RUNNING", "ERRORS", "WARNINGS", "SUCCESSFUL", "CANCELLED", "OOS" ]
Repair 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 : RepairPairStats-allOf[1]
Type:
Show Source object
- comparePair: comparePair
- deletes: integer
- deletesWithWarnings: integer
- endTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- errorMessage: string
- id: integer
- inserts: integer
- insertsWithWarnings: integer
- name: string
- rowComparisonsTotal: integer
- rowsRepaired: integer
- startTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- status: string Allowed Values:
[ "PENDING", "RUNNING", "ERRORS", "WARNINGS", "SUCCESSFUL", "CANCELLED", "OOS" ]
Repair Status. - totalBytesRepaired: integer
- totalBytesWithWarnings: integer
- updates: integer
- updatesWithWarnings: integer
Nested Schema : comparePair-allOf[0]
Type:
object
Nested Schema : ComparePairViewStats
Type:
Show Source object
- columnsSystemMapped: boolean
- deltaProcessingEnabled: boolean
- enabled: boolean
- keyColumnsSystemMapped: boolean
- srcTable: srcTable Represents a table in compare pair with table and row partitions info, if any.
- tgtTable: tgtTable Represents a table in compare pair with table and row partitions info, if any.
Nested Schema : srcTable
Represents a table in compare pair with table and row partitions info, if any.
Match All
Represents a table in compare pair with table and row partitions info, if any.
Represents a table in compare pair with table and row partitions info, if any.
Show Source - object Table Defines a table.
- object srcTable-allOf[1]
Nested Schema : tgtTable
Represents a table in compare pair with table and row partitions info, if any.
Match All
Represents a table in compare pair with table and row partitions info, if any.
Represents a table in compare pair with table and row partitions info, if any.
Show Source - object Table Defines a table.
- object tgtTable-allOf[1]
Nested Schema : Table
Type:
object
Defines a table.
Show Source - catalog: string
- filePattern: string NSK Encribe file pattern.
- isView: boolean
- name: string
- schema: string
- tablePartition: object tablePartition
Nested Schema : srcTable-allOf[1]
Type:
object
Nested Schema : tgtTable-allOf[1]
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" }