应用平台 APPSTAGE-APP类型插件说明:file_check

时间:2024-05-15 15:34:44

file_check

功能说明

查看文件是否存在以及查看文件的大小,以Byte为单位,将结果上报到HCW。

参数配置

配置样例:

path:/tmp/error_*.log #路径为绝对路径,支持通配符。

消息样例及含义说明

{
      "plugin_id":"file_check",                #单位:  | 类型:string  | 说明:插件名
      "metric":[{
            "node": " host-10-22-0-170",       #单位:  | 类型:string  | 说明:主机名,消息来源标识
            "timestamp": "1518078026000",      #单位:  | 类型:string  | 说明:字符类型时间戳
            "exists":"1",	               #单位:  | 类型:string  | 说明:文件是否存在,1表示存在,0表示不存在
            "size":"80",	               #单位:Byte  | 类型:string  | 说明:表示文件大小
}]
}
support.huaweicloud.com/usermanual-appstage/appstage_04_1252.html