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.
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.
401 Response
"Unauthorized."
Root Schema : Error
Type:
Show Source
object
-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
404 Response
"Not found."
Root Schema : Error
Type:
Show Source
object
-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.
500 Response
"Server error."
Root Schema : Error
Type:
Show Source
object
-
errCode: string
Veridata Error Code.
-
errMsg: string
Veridata Error Message.