Retrieve Compare Pair Statistics
get
http://{host}:{port}/veridata/v1/services/monitoring/cps
Required Role: Administrator, SuperUser, DetailMonitoringOperator, MonitoringOperator, CommandLineOperator
API to get Veridata Compare Pair monitoring details.
Request
Query Parameters
- cpId: integer Compare Pair ID.
- finishedStatsCount: integer This parameter decides the number of completed statistics (current + previous run) to be shown in the response. Default is 5.
- fromDate: string Defines the start date range (inclusive) to filter out the Compare Pair response. Supported format yyyy-MM-dd'T'HH:mm:ss'Z' "
- includePerformance: boolean This parameter when set to true will include performance statistics. Default value: false.
- last: string Fetch Compare Pair stats of last x units. Supported units D(Days) or H(hours) or M(minutes). Example: 1D
- runId: string The CP's Run ID. Example: runId=1024,1,1.
- status:
- toDate: string Defines the end date range (not inclusive) to filter out the Compare Pair response. Supported format yyyy-MM-dd'T'HH:mm:ss'Z'.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Compare Pair statistics fetched successfully.
Root Schema : schema
Type:
Show Source array
Example:
[ { "runId":{ "asString":"10277/1/1", "comparePairNum":1, "groupNum":1, "runID":10277 }, "startTime":"2024-02-03T10:15:30Z", "endTime":"2024-02-03T10:15:30Z", "comparePairId":1027, "name":"SRC2=TRG2", "numRowsOos":9, "skippedRows":false, "phase":"FINISHED", "status":"OOS", "repairStatus":"SUCCESSFUL", "repairRunId":{ "asString":"18970/0/0", "comparePairNum":0, "groupNum":0, "runID":18970 }, "errorMessage":"", "rowsFromTarget":15, "rowsFromSource":16, "numOfDeletes":3, "numOfUpdates":4, "numOfInserts":2, "perfStats":{ "coosBytesPerSec":8, "coosDuration":{ "hours":0, "minutes":0, "seconds":15, "totalSeconds":15 }, "coosRowsPerSec":1, "coosStartTime":"2024-02-03T10:15:30Z", "coosStopTime":"2024-02-03T10:15:30Z", "coosTotalBytes":120, "coosTotalRows":15, "initCompareBytesPerSec":8, "initCompareDuration":{ "hours":0, "minutes":0, "seconds":15, "totalSeconds":15 }, "initCompareRowsPerSec":1, "initCompareStartTime":"2024-02-03T10:15:30Z", "initCompareStopTime":"2024-02-03T10:15:30Z", "initCompareTotalBytes":120, "initCompareTotalRows":15, "sortingSrcBytesPerSec":8, "sortingSrcDuration":{ "hours":0, "minutes":0, "seconds":15, "totalSeconds":15 }, "sortingSrcTotalBytes":120, "sortingSrcStartTime":"2024-02-03T10:15:30Z", "sortingSrcStopTime":"2024-02-03T10:15:30Z", "sortingSrcTotalRows":15, "sortingSrcRowsPerSec":1, "sortingTgtBytesPerSec":8, "sortingTgtDuration":{ "hours":0, "minutes":0, "seconds":16, "totalSeconds":16 }, "sortingTgtTotalBytes":128, "sortingTgtStartTime":"2024-02-03T10:15:30Z", "sortingTgtStopTime":"2024-02-03T10:15:30Z", "sortingTgtTotalRows":16, "sortingTgtRowsPerSec":1 }, "runningStats":{ "insyncBeforeCOOSInBytes":72, "insyncBeforeCOOS":9, "updatesOOS":4, "updatesInsyncAfterInFlight":3, "updatesOOSBeforeCOOS":1, "updatesOOSInBytes":32, "deletesOOSInBytes":24, "deletesInsyncAfterInFlightInBytes":2, "deletesOOS":3, "deletesOOSBeforeCOOS":1, "deletesOOSBeforeCOOSInBytes":2, "insertsInsyncAfterInFlight":2, "insertsOOS":2, "insertsOOSBeforeCOOS":0, "insertsOOSInBytes":16, "insertsInsyncAfterInFlightInBytes":0, "rowsIntoTargetSort":16, "rowsIntoSourceSort":15, "deletesInsyncAfterInFlight":0, "rowsFromSource":7, "rowsFromTarget":9, "totalRowsFromSource":15, "totalRowsFromTarget":16, "fetchLatencyFromTarget":null, "remainingTimeFromTarget":5, "remainingTimeFromSource":5, "bytesFromTarget":24, "bytesFromSource":32, "bytesIntoSourceSort":16, "bytesIntoTargetSort":8 } } ]
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 : 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 : ComparePairStats-allOf[1]
Type:
Show Source object
- deltaStartTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- deltaStats: object DeltaStats
- numOfDeletes: integer (int64) Default Value:
0
- numOfInserts: integer (int64) Default Value:
0
- numOfUpdates: integer (int64) Default Value:
0
- perfStats: object PerformanceStats
- rowsFromSource: integer (int64) Default Value:
0
- rowsFromTarget: integer (int64) Default Value:
0
- runningStats: object RunningComparePairStats This stats will only be available when the compare pair is running and runId query parameter is used.
- skippedRows: boolean Default Value:
false
- srcTable: string
- tgtTable: string
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 : DeltaStats
Type:
Show Source object
- deltaRunId: string delta run ID Example - 1100,1,1
- deltaStartTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- srcDeltaInfo: string Source delta value.
- tgtDeltaInfo: string Target delta value.
Nested Schema : PerformanceStats
Type:
Show Source object
- coosBytesPerSec: integer (int64) Default Value:
0
- coosDuration: coosDuration
- coosRowsPerSec: integer (int64) Default Value:
0
- coosStartTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- coosStopTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- coosTotalBytes: integer (int64) Default Value:
0
- coosTotalRows: integer (int64) Default Value:
0
- initCompareBytesPerSec: integer (int64) Default Value:
0
- initCompareDuration: initCompareDuration
- initCompareRowsPerSec: integer (int64) Default Value:
0
- initCompareStartTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- initCompareStopTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- initCompareTotalBytes: integer (int64) Default Value:
0
- initCompareTotalRows: integer (int64) Default Value:
0
- sortingSrcBytesPerSec: integer (int64) Default Value:
0
- sortingSrcDuration: sortingSrcDuration
- sortingSrcRowsPerSec: integer (int64) Default Value:
0
- sortingSrcStartTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- sortingSrcStopTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- sortingSrcTotalBytes: integer (int64) Default Value:
0
- sortingSrcTotalRows: integer (int64) Default Value:
0
- sortingTgtBytesPerSec: integer (int64) Default Value:
0
- sortingTgtDuration: sortingTgtDuration
- sortingTgtRowsPerSec: integer (int64) Default Value:
0
- sortingTgtStartTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- sortingTgtStopTime: string (date-time) Pattern:
YYYY-MM-DDTHH:mm:ss.sssZ
Example:2024-02-03T10:15:30Z
- sortingTgtTotalBytes: integer (int64) Default Value:
0
- sortingTgtTotalRows: integer (int64) Default Value:
0
Nested Schema : RunningComparePairStats
Type:
object
This stats will only be available when the compare pair is running and runId query parameter is used.
Show Source - bytesFromSource: integer
- bytesFromTarget: integer
- bytesIntoSourceSort: integer
- bytesIntoTargetSort: integer
- deletesInsyncAfterInFlight: integer
- deletesInsyncAfterInFlightInBytes: integer
- deletesOOS: integer
- deletesOOSBeforeCOOS: integer
- deletesOOSBeforeCOOSInBytes: integer
- deletesOOSInBytes: integer
- fetchLatencyFromTarget: integer
- insertsInsyncAfterInFlight: integer
- insertsInsyncAfterInFlightInBytes: integer
- insertsOOS: integer
- insertsOOSBeforeCOOS: integer
- insertsOOSInBytes: integer
- insyncBeforeCOOS: integer
- insyncBeforeCOOSInBytes: integer
- remainingTimeFromSource: integer
- remainingTimeFromTarget: integer
- rowsFromSource: integer
- rowsFromTarget: integer
- rowsIntoSourceSort: integer
- rowsIntoTargetSort: integer
- totalRowsFromSource: integer
- totalRowsFromTarget: integer
- updatesInsyncAfterInFlight: integer
- updatesOOS: string
- updatesOOSBeforeCOOS: integer
- updatesOOSInBytes: integer
Nested Schema : coosDuration-allOf[1]
Type:
object
Nested Schema : initCompareDuration-allOf[1]
Type:
object
Nested Schema : sortingSrcDuration-allOf[1]
Type:
object
Nested Schema : sortingTgtDuration-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" }