You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1 KiB

  1. #pragma once
  2. #include "JObject_NetSDK.h"
  3. NS_NETSDK_CFG_BEGIN
  4. #define JK_OPLogQuery "OPLogQuery"
  5. class OPLogQuery : public JObject
  6. {
  7. public:
  8. JStrObj BeginTime; ///< 查询日志开始时间,格式:YYYY-MM-DD HH:mm:SS
  9. JStrObj EndTime; ///< 查询日志结束时间,格式:YYYY-MM-DD HH:mm:SS
  10. JIntObj LogPosition; ///< 从上次查询的结束时的日志指针:0
  11. JStrObj Type; ///< 日志类型--“LogAll”:所有;"LogSystem":系统;"LogConfig":配置;"LogStorage":存储;"LogAlarm":报警;"LogRecord":录像;"LogAccount":账号;"LogFile":文件
  12. public:
  13. OPLogQuery(JObject *pParent = NULL, const char *szName = JK_OPLogQuery):
  14. JObject(pParent,szName),
  15. BeginTime(this, "BeginTime"),
  16. EndTime(this, "EndTime"),
  17. LogPosition(this, "LogPosition"),
  18. Type(this, "Type"){
  19. this->Parse("{ \"Name\" : \"OPLogQuery\", \"OPLogQuery\" : { \"BeginTime\" : \"2019-03-27 00:00:00\", \"EndTime\" : \"2019-03-27 23:59:59\", \"LogPosition\" : 0, \"Type\" : \"LogAll\" }, \"SessionID\" : \"0x1\" }");
  20. };
  21. ~OPLogQuery(void){};
  22. };
  23. NS_NETSDK_CFG_END