/** * 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 { ColumnDefinition } from './columnDefinition'; import { LogSourceFilter } from './logSourceFilter'; /** * Custom log metric definition. */ export class LogMetricConfig { /** * The unique key of the metric. The key must have the `calc:log.` prefix. */ 'metricKey': string; /** * The metric is enabled (`true`) or disabled (`false`). */ 'active'?: boolean; /** * The name of the metric, displayed in the UI. */ 'displayName': string; /** * The unit of the metric. */ 'unit': LogMetricConfig.UnitEnum; /** * The display name of the unit. Only applicable if the **unit** is set to `UNSPECIFIED`. */ 'unitDisplayName'?: string; /** * The pattern to look for in logs. Use the [Dynatrace search query language](https://www.dynatrace.com/support/help/shortlink/log-viewer#search-for-text-patterns-in-log-files) to specify it. Quotes must be escaped. To return all results, leave the field blank. */ 'searchString': string; /** * The type of the metric data points calculation. For now the only allowed value is `OCCURRENCES`. */ 'metricValueType': LogMetricConfig.MetricValueTypeEnum; 'columnDefiningValue'?: ColumnDefinition; /** * A list of filters to define the logs to look into. If several filters are specified, the OR logic applies. */ 'logSourceFilters': Array; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "metricKey", "baseName": "metricKey", "type": "string" }, { "name": "active", "baseName": "active", "type": "boolean" }, { "name": "displayName", "baseName": "displayName", "type": "string" }, { "name": "unit", "baseName": "unit", "type": "LogMetricConfig.UnitEnum" }, { "name": "unitDisplayName", "baseName": "unitDisplayName", "type": "string" }, { "name": "searchString", "baseName": "searchString", "type": "string" }, { "name": "metricValueType", "baseName": "metricValueType", "type": "LogMetricConfig.MetricValueTypeEnum" }, { "name": "columnDefiningValue", "baseName": "columnDefiningValue", "type": "ColumnDefinition" }, { "name": "logSourceFilters", "baseName": "logSourceFilters", "type": "Array" } ]; static getAttributeTypeMap() { return LogMetricConfig.attributeTypeMap; } } export namespace LogMetricConfig { export enum UnitEnum { BIT = 'BIT', BITPERHOUR = 'BIT_PER_HOUR', BITPERMINUTE = 'BIT_PER_MINUTE', BITPERSECOND = 'BIT_PER_SECOND', BYTE = 'BYTE', BYTEPERHOUR = 'BYTE_PER_HOUR', BYTEPERMINUTE = 'BYTE_PER_MINUTE', BYTEPERSECOND = 'BYTE_PER_SECOND', CORES = 'CORES', COUNT = 'COUNT', DAY = 'DAY', GIBIBYTE = 'GIBI_BYTE', GIGA = 'GIGA', GIGABYTE = 'GIGA_BYTE', HOUR = 'HOUR', KIBIBYTE = 'KIBI_BYTE', KIBIBYTEPERHOUR = 'KIBI_BYTE_PER_HOUR', KIBIBYTEPERMINUTE = 'KIBI_BYTE_PER_MINUTE', KIBIBYTEPERSECOND = 'KIBI_BYTE_PER_SECOND', KILO = 'KILO', KILOBYTE = 'KILO_BYTE', KILOBYTEPERHOUR = 'KILO_BYTE_PER_HOUR', KILOBYTEPERMINUTE = 'KILO_BYTE_PER_MINUTE', KILOBYTEPERSECOND = 'KILO_BYTE_PER_SECOND', MEBIBYTE = 'MEBI_BYTE', MEBIBYTEPERHOUR = 'MEBI_BYTE_PER_HOUR', MEBIBYTEPERMINUTE = 'MEBI_BYTE_PER_MINUTE', MEBIBYTEPERSECOND = 'MEBI_BYTE_PER_SECOND', MEGA = 'MEGA', MEGABYTE = 'MEGA_BYTE', MEGABYTEPERHOUR = 'MEGA_BYTE_PER_HOUR', MEGABYTEPERMINUTE = 'MEGA_BYTE_PER_MINUTE', MEGABYTEPERSECOND = 'MEGA_BYTE_PER_SECOND', MICROSECOND = 'MICRO_SECOND', MILLICORES = 'MILLI_CORES', MILLISECOND = 'MILLI_SECOND', MILLISECONDPERMINUTE = 'MILLI_SECOND_PER_MINUTE', MINUTE = 'MINUTE', MONTH = 'MONTH', NANOSECOND = 'NANO_SECOND', NANOSECONDPERMINUTE = 'NANO_SECOND_PER_MINUTE', NOTAPPLICABLE = 'NOT_APPLICABLE', PERCENT = 'PERCENT', PERHOUR = 'PER_HOUR', PERMINUTE = 'PER_MINUTE', PERSECOND = 'PER_SECOND', PIXEL = 'PIXEL', PROMILLE = 'PROMILLE', RATIO = 'RATIO', SECOND = 'SECOND', STATE = 'STATE', UNSPECIFIED = 'UNSPECIFIED', WEEK = 'WEEK', YEAR = 'YEAR' } export enum MetricValueTypeEnum { FPCOLUMNAVG = 'FP_COLUMN_AVG', FPCOLUMNCOUNT = 'FP_COLUMN_COUNT', FPCOLUMNMAX = 'FP_COLUMN_MAX', FPCOLUMNMIN = 'FP_COLUMN_MIN', FPCOLUMNSUM = 'FP_COLUMN_SUM', FPCOLUMNTOPXAVG = 'FP_COLUMN_TOP_X_AVG', FPCOLUMNTOPXCOUNT = 'FP_COLUMN_TOP_X_COUNT', FPCOLUMNTOPXMAX = 'FP_COLUMN_TOP_X_MAX', FPCOLUMNTOPXMIN = 'FP_COLUMN_TOP_X_MIN', FPCOLUMNTOPXSUM = 'FP_COLUMN_TOP_X_SUM', INTCOLUMNAVG = 'INT_COLUMN_AVG', INTCOLUMNCOUNT = 'INT_COLUMN_COUNT', INTCOLUMNMAX = 'INT_COLUMN_MAX', INTCOLUMNMIN = 'INT_COLUMN_MIN', INTCOLUMNSUM = 'INT_COLUMN_SUM', INTCOLUMNTOPXAVG = 'INT_COLUMN_TOP_X_AVG', INTCOLUMNTOPXCOUNT = 'INT_COLUMN_TOP_X_COUNT', INTCOLUMNTOPXMAX = 'INT_COLUMN_TOP_X_MAX', INTCOLUMNTOPXMIN = 'INT_COLUMN_TOP_X_MIN', INTCOLUMNTOPXSUM = 'INT_COLUMN_TOP_X_SUM', OCCURRENCES = 'OCCURRENCES' } }