12#ifndef __TUYA_DEVOS_HEALTH_H__
13#define __TUYA_DEVOS_HEALTH_H__
15#include "tuya_cloud_com_defs.h"
25#define HEALTH_SLEEP_INTERVAL (5)
27#define HEALTH_REPORT_INTERVAL (60 * 60)
29#define HEALTH_FREE_MEM_THRESHOLD (1024*8)
31#define HEALTH_LARGEST_MEM_BLOK_THRESHOLD (1024*5)
33#define HEALTH_HTTP_FAILED_THRESHOLD (5)
36#define HEALTH_WORKQ_THRESHOLD (50)
38#define HEALTH_MSGQ_THRESHOLD (50)
40#define HEALTH_TIMEQ_THRESHOLD (100)
43typedef INT_T HEALTH_MONITOR_RULE_E;
44#define HEALTH_RULE_FREE_MEM_SIZE 0
45#define HEALTH_RULE_MAX_MEM_SIZE 1
46#define HEALTH_RULE_ATOP_REFUSE 2
47#define HEALTH_RULE_ATOP_SIGN_FAILED 3
48#define HEALTH_RULE_WORKQ_DEPTH 4
49#define HEALTH_RULE_MSGQ_NUM 5
50#define HEALTH_RULE_TIMER_NUM 6
51#define HEALTH_RULE_FEED_WATCH_DOG 7
52#define HEALTH_RULE_RUNTIME_REPT 8
54typedef VOID (*health_notify_cb)();
55typedef BOOL_T(*health_query_cb)();
61 health_query_cb query_cb;
62 health_notify_cb notify_cb;
Definition: tuya_devos_health.h:57
Definition: tuya_devos_health.h:65
Common process - adapter the mutex api provide by OS
VOID tuya_devos_update_health_item_period(INT_T type, UINT_T period)
update health item period
INT_T tuya_devos_health_init_and_start(CONST INT_T watch_dog_interval, CONST INT_T monitor_detect_interval)
devos health init function
VOID tuya_devos_dump_health_item(VOID)
dump health item
VOID tuya_devos_delete_health_item(INT_T type)
delete health item
VOID tuya_devos_update_health_item_threshold(INT_T type, UINT_T threshold)
update health item threshold
INT_T tuya_devos_add_health_item(UINT_T threshold, UINT_T period, health_query_cb query, health_notify_cb notify)
add health item
Common process - Initialization
tuya bidirection list module