2.3.6 • Published 12 months ago

@dt-esa/dynatrace-api-client v2.3.6

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

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.6

12 months ago

2.3.5

12 months ago

2.3.4

1 year ago

2.3.3

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.10

2 years ago

2.2.9

2 years ago

2.2.8

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

2.2.5

2 years ago

2.2.4

2 years ago

2.2.7

2 years ago

2.2.6

2 years ago

2.0.3

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.1

3 years ago

1.237.0

3 years ago

2.0.0

3 years ago

1.235.0

3 years ago

1.234.3

3 years ago

1.234.2

3 years ago

1.234.1

3 years ago

1.213.4

3 years ago

1.213.3

3 years ago

1.213.2

3 years ago

0.1.2315

3 years ago

0.1.231

3 years ago