2.3.4 • Published 1 month ago
@dt-esa/dynatrace-api-client v2.3.4
Use VS Code and Typescript for typings.
A dependency map can be found here.
Create an API instance
const api = new DynatraceTenantAPI({
url: process.env['TENANT_URL'],
token: process.env['TENANT_TOKEN']
});
This will connect to the specified Dynatrace instance and validate that connectivity has been established. If there is a failure, said failure will be emitted via the global console object.
Make an API call
(async () => {
let hosts = await api.v1.entity.getHosts();
let processes = await api.v1.entity.getProcesses();
let myHost = await api.v1.entity.getSingleHost("HOST-1234567890abcdef");
let data = await api.v1.entity.getApplications();
})();
Environment API (v1, v2, config)
const api = new DynatraceTenantAPI({
url: process.env['TENANT_URL'],
token: process.env['TENANT_TOKEN']
});
Environment API V1
const api = new DynatraceEnvironmentAPIV1({
url: process.env['TENANT_URL'],
token: process.env['TENANT_TOKEN']
});
Environment API V2
const api = new DynatraceEnvironmentAPIV2({
url: process.env['TENANT_URL'],
token: process.env['TENANT_TOKEN']
});
Environment Config API
const api = new DynatraceConfigurationAPI({
url: process.env['TENANT_URL'],
token: process.env['TENANT_TOKEN']
});
Cluster Management API V1
const cmc = new DynatraceClusterManagementAPIV1({
url: process.env['CLUSTER_URL'],
token: process.env['CLUSTER_TOKEN']
});
Cluster Management API V2
const cmc = new DynatraceClusterManagementAPIV2({
url: process.env['CLUSTER_URL'],
token: process.env['CLUSTER_TOKEN']
});
Account Management API
const iam = new DynatraceAccountManagementAPI({
token: process.env['ACCOUNT_TOKEN']
});
2.3.4
1 month ago
2.3.3
2 months ago
2.3.1
2 months ago
2.3.0
3 months ago
2.2.10
5 months ago
2.2.9
5 months ago
2.2.8
5 months ago
2.2.1
10 months ago
2.2.0
10 months ago
2.2.3
10 months ago
2.2.2
10 months ago
2.2.5
10 months ago
2.2.4
10 months ago
2.2.7
10 months ago
2.2.6
10 months ago
2.0.3
1 year ago
2.0.5
1 year ago
2.0.4
1 year ago
2.0.1
2 years ago
1.237.0
2 years ago
2.0.0
2 years ago
1.235.0
2 years ago
1.234.3
2 years ago
1.234.2
2 years ago
1.234.1
2 years ago
1.213.4
2 years ago
1.213.3
2 years ago
1.213.2
2 years ago
0.1.2315
2 years ago
0.1.231
2 years ago