/** * Dynatrace Configuration API * Documentation of the Dynatrace Configuration API. Refer to the [help page](https://www.dynatrace.com/support/help/shortlink/config-api) to read about use-cases and examples. Notes about compatibility: * Operations marked as early adopter or preview may be changed in non-compatible ways, although we try to avoid this. * We may add new enum constants without incrementing the API version; thus, clients need to handle unknown enum constants gracefully. * * The version of the OpenAPI document: 1.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { RequestFile } from '../api'; import { PropagationSource } from './propagationSource'; /** * The custom placeholder to be used as a naming value pattern. It enables you to extract a request attribute value or other request attribute and use it in the naming pattern. */ export class Placeholder { /** * The name of the placeholder. Use it in the naming pattern as `{name}`. */ 'name': string; /** * The attribute to extract from. You can only use attributes of the **string** type. */ 'attribute': Placeholder.AttributeEnum; /** * The type of extraction. Defines either usage of regular expression (`regex`) or the position of request attribute value to be extracted. When the **attribute** is `SERVICE_REQUEST_ATTRIBUTE` attribute and **aggregation** is `COUNT`, needs to be set to `ORIGINAL_TEXT` */ 'kind': Placeholder.KindEnum; /** * Depending on the **type** value: * `REGEX_EXTRACTION`: The regular expression. * `BETWEEN_DELIMITER`: The opening delimiter string to look for. * All other values: The delimiter string to look for. */ 'delimiterOrRegex'?: string; /** * The closing delimiter string to look for. Required if the **kind** value is `BETWEEN_DELIMITER`. Not applicable otherwise. */ 'endDelimiter'?: string; /** * The request attribute to extract from. Required if the **kind** value is `SERVICE_REQUEST_ATTRIBUTE`. Not applicable otherwise. */ 'requestAttribute'?: string; /** * The format of the extracted string. */ 'normalization'?: Placeholder.NormalizationEnum; /** * If `true` request attribute will be taken from a child service call. Only applicable for the `SERVICE_REQUEST_ATTRIBUTE` attribute. Defaults to `false`. */ 'useFromChildCalls'?: boolean; /** * Which value of the request attribute must be used when it occurs across multiple child requests. Only applicable for the `SERVICE_REQUEST_ATTRIBUTE` attribute, when **useFromChildCalls** is `true`. For the `COUNT` aggregation, the **kind** field is not applicable. */ 'aggregation'?: Placeholder.AggregationEnum; 'source'?: PropagationSource; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "name", "baseName": "name", "type": "string" }, { "name": "attribute", "baseName": "attribute", "type": "Placeholder.AttributeEnum" }, { "name": "kind", "baseName": "kind", "type": "Placeholder.KindEnum" }, { "name": "delimiterOrRegex", "baseName": "delimiterOrRegex", "type": "string" }, { "name": "endDelimiter", "baseName": "endDelimiter", "type": "string" }, { "name": "requestAttribute", "baseName": "requestAttribute", "type": "string" }, { "name": "normalization", "baseName": "normalization", "type": "Placeholder.NormalizationEnum" }, { "name": "useFromChildCalls", "baseName": "useFromChildCalls", "type": "boolean" }, { "name": "aggregation", "baseName": "aggregation", "type": "Placeholder.AggregationEnum" }, { "name": "source", "baseName": "source", "type": "PropagationSource" } ]; static getAttributeTypeMap() { return Placeholder.attributeTypeMap; } } export namespace Placeholder { export enum AttributeEnum { ACTORSYSTEM = 'ACTOR_SYSTEM', AKKAACTORCLASSNAME = 'AKKA_ACTOR_CLASS_NAME', AKKAACTORMESSAGETYPE = 'AKKA_ACTOR_MESSAGE_TYPE', AKKAACTORPATH = 'AKKA_ACTOR_PATH', AZUREFUNCTIONSFUNCTIONNAME = 'AZURE_FUNCTIONS_FUNCTION_NAME', AZUREFUNCTIONSSITENAME = 'AZURE_FUNCTIONS_SITE_NAME', CICSPROGRAMNAME = 'CICS_PROGRAM_NAME', CICSSYSTEMID = 'CICS_SYSTEM_ID', CICSTASKID = 'CICS_TASK_ID', CICSTRANSACTIONID = 'CICS_TRANSACTION_ID', CPUTIME = 'CPU_TIME', CTGGATEWAYURL = 'CTG_GATEWAY_URL', CTGPROGRAM = 'CTG_PROGRAM', CTGSERVERNAME = 'CTG_SERVER_NAME', CTGTRANSACTIONID = 'CTG_TRANSACTION_ID', CUSTOMSERVICECLASS = 'CUSTOMSERVICE_CLASS', CUSTOMSERVICEMETHOD = 'CUSTOMSERVICE_METHOD', DATABASECHILDCALLCOUNT = 'DATABASE_CHILD_CALL_COUNT', DATABASECHILDCALLTIME = 'DATABASE_CHILD_CALL_TIME', ERRORCOUNT = 'ERROR_COUNT', ESBAPPLICATIONNAME = 'ESB_APPLICATION_NAME', ESBINPUTTYPE = 'ESB_INPUT_TYPE', ESBLIBRARYNAME = 'ESB_LIBRARY_NAME', ESBMESSAGEFLOWNAME = 'ESB_MESSAGE_FLOW_NAME', EXCEPTIONCLASS = 'EXCEPTION_CLASS', EXCEPTIONMESSAGE = 'EXCEPTION_MESSAGE', FAILEDSTATE = 'FAILED_STATE', FAILUREREASON = 'FAILURE_REASON', FLAWSTATE = 'FLAW_STATE', HTTPREQUESTMETHOD = 'HTTP_REQUEST_METHOD', HTTPSTATUS = 'HTTP_STATUS', HTTPSTATUSCLASS = 'HTTP_STATUS_CLASS', IMSPROGRAMNAME = 'IMS_PROGRAM_NAME', IMSTRANSACTIONID = 'IMS_TRANSACTION_ID', IOTIME = 'IO_TIME', LOCKTIME = 'LOCK_TIME', MESSAGINGDESTINATIONTYPE = 'MESSAGING_DESTINATION_TYPE', MESSAGINGISTEMPORARYQUEUE = 'MESSAGING_IS_TEMPORARY_QUEUE', MESSAGINGQUEUENAME = 'MESSAGING_QUEUE_NAME', MESSAGINGQUEUEVENDOR = 'MESSAGING_QUEUE_VENDOR', NONDATABASECHILDCALLCOUNT = 'NON_DATABASE_CHILD_CALL_COUNT', NONDATABASECHILDCALLTIME = 'NON_DATABASE_CHILD_CALL_TIME', PROCESSGROUPNAME = 'PROCESS_GROUP_NAME', PROCESSGROUPTAG = 'PROCESS_GROUP_TAG', REMOTEENDPOINT = 'REMOTE_ENDPOINT', REMOTEMETHOD = 'REMOTE_METHOD', REMOTESERVICENAME = 'REMOTE_SERVICE_NAME', REQUESTNAME = 'REQUEST_NAME', REQUESTTYPE = 'REQUEST_TYPE', RESPONSETIME = 'RESPONSE_TIME', RESPONSETIMECLIENT = 'RESPONSE_TIME_CLIENT', RMICLASS = 'RMI_CLASS', RMIMETHOD = 'RMI_METHOD', SERVICEDISPLAYNAME = 'SERVICE_DISPLAY_NAME', SERVICENAME = 'SERVICE_NAME', SERVICEPORT = 'SERVICE_PORT', SERVICEPUBLICDOMAINNAME = 'SERVICE_PUBLIC_DOMAIN_NAME', SERVICEREQUESTATTRIBUTE = 'SERVICE_REQUEST_ATTRIBUTE', SERVICETAG = 'SERVICE_TAG', SERVICETYPE = 'SERVICE_TYPE', SERVICEWEBAPPLICATIONID = 'SERVICE_WEB_APPLICATION_ID', SERVICEWEBCONTEXTROOT = 'SERVICE_WEB_CONTEXT_ROOT', SERVICEWEBSERVERNAME = 'SERVICE_WEB_SERVER_NAME', SERVICEWEBSERVICENAME = 'SERVICE_WEB_SERVICE_NAME', SERVICEWEBSERVICENAMESPACE = 'SERVICE_WEB_SERVICE_NAMESPACE', SUSPENSIONTIME = 'SUSPENSION_TIME', TOTALPROCESSINGTIME = 'TOTAL_PROCESSING_TIME', WAITTIME = 'WAIT_TIME', WEBREQUESTQUERY = 'WEBREQUEST_QUERY', WEBREQUESTURL = 'WEBREQUEST_URL', WEBREQUESTURLHOST = 'WEBREQUEST_URL_HOST', WEBREQUESTURLPATH = 'WEBREQUEST_URL_PATH', WEBREQUESTURLPORT = 'WEBREQUEST_URL_PORT', WEBSERVICEENDPOINT = 'WEBSERVICE_ENDPOINT', WEBSERVICEMETHOD = 'WEBSERVICE_METHOD', ZOSCALLTYPE = 'ZOS_CALL_TYPE' } export enum KindEnum { AFTERDELIMITER = 'AFTER_DELIMITER', BEFOREDELIMITER = 'BEFORE_DELIMITER', BETWEENDELIMITER = 'BETWEEN_DELIMITER', ORIGINALTEXT = 'ORIGINAL_TEXT', REGEXEXTRACTION = 'REGEX_EXTRACTION' } export enum NormalizationEnum { ORIGINAL = 'ORIGINAL', TOLOWERCASE = 'TO_LOWER_CASE', TOUPPERCASE = 'TO_UPPER_CASE' } export enum AggregationEnum { COUNT = 'COUNT', FIRST = 'FIRST', LAST = 'LAST' } }