ApmConfig class

APM 配置选项

Constructors

ApmConfig({bool enable = false, List<PrintlnHandler> handlers = const [], Transformer transformer() = DataTransformer.new, Sender sender() = IntelligentSender.new, String endpoint = '', Client httpClient() = http.Client.new, NetworkType networkTypePolicy = NetworkType.all, bool filterFunction(Data data)?})

Properties

enable → bool
是否启用
final
endpoint → String
上传地址
final
filterFunction → bool Function(Data data)?
用于外界筛选需要上传的数据,返回true则进行上传,false不上传
final
flushBulkSize → int
本地缓存日志的最大条目数
final
flushInterval → int
两次数据发送的最小时间间隔,单位毫秒
final
handlers → List<PrintlnHandler>
打印器列表
final
hashCode → int
The hash code for this object.
no setterinherited
httpClient → Client Function()
用于外界自定义http请求
final
networkTypePolicy → NetworkType
发送数据的网络策略
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sender → Sender Function()
用于外界对数据进行发送
final
transformer → Transformer Function()
用于外界对数据进行转换
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited