UNPKG

dt-app

Version:

The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.

18 lines (17 loc) 736 B
import type { CSPAppDirectives } from '../../utils/config/cli-options'; /** * Parses tenant from an environment url * @param environmentUrl * @returns The tenant and hostname */ export declare function getTenantAndHostNameFromEnvUrl(environmentUrl: string): { tenant: string; hostname: string; }; /** * Get the CSP. This is kinda heavy, so the result is cached. * @param environmentUrl The Dynatrace environment URL * @param inlineScriptHashes SHA-256 hashes to inline scripts that are allowed to be injected * @param getToken Function to retrieve the token */ export declare function getCsp(environmentUrl: string, inlineScriptHashes: string[], token: string, customCSPDirectives?: CSPAppDirectives): Promise<string>;