New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dt-esa/dynatrace-api-client

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dt-esa/dynatrace-api-client

A dependency map can be found [here](https://npmgraph.js.org/?q=@dt-esa/dynatrace-api-client).

  • 2.3.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source
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']
});

FAQs

Package last updated on 27 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc