全部产品

QueryExceptionHistory

更新时间:2019-10-15 14:10:25

QueryExceptionHistory

描述

异常数据历史分段查询

方法

GET

URI

/openapi/instances/{instanceId}/sync-reports/exception-history

请求参数

key 类型 说明 备注
startTime long s 看约定 必填
endTime long s 看约定 必填
type String 单表报告类型 必填
item/behavior/user

返回参数

参数 类型 描述
RequestId String 当前请求的RequestID
Result Map 查询结果

请求示例

  1. GET /openapi/instances/airec-cn-xxxxx/sync-reports/exception-history?startTime=xxx&endTime=xxx&dataType=item

返回示例

  • dataType = behavior
    1. {
    2. "RequestId": "16B78383-2803-4964-9605-37B30C073B0E",
    3. "Result": {
    4. "Total": {
    5. "ErrorCount": 221934,
    6. "StartTime": "1566489600",
    7. "ErrorPercent": 0.6839260400616333,
    8. "EndTime": "1566658800",
    9. "TotalCount": 324500
    10. },
    11. "Detail": [
    12. {
    13. "ErrorCount": 31500,
    14. "StartTime": 1566507600,
    15. "ErrorPercent": 1,
    16. "EndTime": 1566511200,
    17. "TotalCount": 31500
    18. },
    19. {
    20. "ErrorCount": 15000,
    21. "StartTime": 1566486000,
    22. "ErrorPercent": 1,
    23. "EndTime": 1566489600,
    24. "TotalCount": 15000
    25. },
    26. ...
    27. ]
    28. }
    29. }
  • dataType = item

    1. {
    2. "RequestId": "16B78383-2803-4964-9605-37B30C073B0E",
    3. "Result": {
    4. "Total": {
    5. "DeleteCount": 36,
    6. "UpdateCount": 6978,
    7. "AddCount": 29,
    8. "ErrorCount": 6978,
    9. "StartTime": "1566489600",
    10. "ErrorPercent": 0.9907709782763027,
    11. "EndTime": "1566658800",
    12. "TotalCount": 7043
    13. },
    14. "Detail": [
    15. {
    16. "ErrorCount": 0,
    17. "StartTime": 1566504000,
    18. "ErrorPercent": 0,
    19. "EndTime": 1566507600,
    20. "TotalCount": 0
    21. },
    22. {
    23. "ErrorCount": 0,
    24. "StartTime": 1566500400,
    25. "ErrorPercent": 0,
    26. "EndTime": 1566504000,
    27. "TotalCount": 0
    28. },
    29. ...
    30. ]
    31. }
    32. }
  • dataType = user

    1. {
    2. "RequestId": "16B78383-2803-4964-9605-37B30C073B0E",
    3. "Result": {
    4. "Total": {
    5. "DeleteCount": 0,
    6. "Addcount": 0,
    7. "UpdateCount": 1100184,
    8. "ErrorCount": 1100184,
    9. "StartTime": "1566489600",
    10. "ErrorPercent": 1,
    11. "EndTime": "1566658800",
    12. "TotalCount": 1100184
    13. },
    14. "Detail": [
    15. {
    16. "ErrorCount": 0,
    17. "StartTime": 1566489600,
    18. "ErrorPercent": 0,
    19. "EndTime": 1566493200,
    20. "TotalCount": 0
    21. },
    22. {
    23. "ErrorCount": 0,
    24. "StartTime": 1566507600,
    25. "ErrorPercent": 0,
    26. "EndTime": 1566511200,
    27. "TotalCount": 0
    28. },
    29. ...
    30. ]
    31. }
    32. }