npm i --save nativescript-dynatrace
- 版本:1.0.4
- GitHub:
- NPM: https://npmjs.net.cn/package/nativescript-dynatrace
- 下载
- 昨日: 0
- 上周: 0
- 上月: 0
适用于 Android 和 iOS 的 NativeScript Dynatrace 插件
使用 Dynatrace 自动检测应用程序并为其监控做准备。
先决条件 / 要求
您需要一个 Dynatrace 帐户以及 Dynatrace 应用程序的凭证(DTXApplicationID
、DTXAgentEnvironment
和 DTXClusterURL
)。
安装
首先,您需要添加 Nativescript Dynatrace 插件
tns plugin add nativescript-dynatrace
然后,您需要在项目根目录或 NAME_PROJECT/app/App_Resources/
中创建一个名为 dynatrace-service.json
或 dynatrace-service.js
的文件,其结构如下
module.exports = {
DTXAgentEnvironment: string,
DTXAllowAnyCert: boolean,
DTXApplicationID: string,
DTXAutoActionMaxDurationMilliseconds: int,
DTXAutoActionTimeoutMilliseconds: int,
DTXAutoStart: boolean,
DTXBKSFileName: string,
DTXBKSPassword: string,
DTXClusterURL: boolean,
DTXCrashReportingEnabled: boolean,
DTXExcludePackages: string,
DTXHybridApplication: boolean,
DTXIncludeAllPackages: boolean,
DTXIncludePackages: string,
DTXInstrumentAutoUserAction: boolean,
DTXInstrumentGPSLocation: boolean,
DTXInstrumentLifecycleMonitoring: boolean,
DTXInstrumentWebRequestTagging: boolean,
DTXInstrumentWebRequestTiming: boolean,
DTXLogLevel: string,
DTXManagedCluster: boolean,
DTXMonitorCookie: string,
DTXMultiDexKeep: string,
DTXMultiDexKeepFile: string,
DTXPrimaryDexLimit: int,
DTXSecondaryDexLimit: int,
DTXSetCookiesForDomain: string,
DTXUserOptIn: boolean,
DTXVersionCode: int,
DTXVersionName: string,
};
这里 可以找到您可以自定义的所有自动检测属性。
此插件的工作原理
正在进行...
API
正在进行...
许可
Apache 许可证 2.0 版,2004 年 1 月