/** * 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 { CalculatedMetricDefinition } from './calculatedMetricDefinition'; import { Condition } from './condition'; import { ConfigurationMetadata } from './configurationMetadata'; import { DimensionDefinition } from './dimensionDefinition'; /** * Descriptor of a calculated service metric. */ export class CalculatedServiceMetric { 'metadata'?: ConfigurationMetadata; /** * The key of the calculated service metric. */ 'tsmMetricKey': string; /** * The displayed name of the metric. */ 'name': string; /** * The metric is enabled (`true`) or disabled (`false`). */ 'enabled': boolean; 'metricDefinition': CalculatedMetricDefinition; /** * The unit of the metric. */ 'unit': CalculatedServiceMetric.UnitEnum; /** * The display name of the metric\'s unit. Only applicable when the **unit** parameter is set to `UNSPECIFIED`. */ 'unitDisplayName'?: string; /** * Restricts the metric usage to the specified service. This field is mutually exclusive with the **managementZones** field. */ 'entityId'?: string; /** * Restricts the metric usage to specified management zones. This field is mutually exclusive with the **entityId** field. */ 'managementZones'?: Array; /** * The set of conditions for the metric usage. **All** the specified conditions must be fulfilled to use the metric. */ 'conditions'?: Array; 'dimensionDefinition'?: DimensionDefinition; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "metadata", "baseName": "metadata", "type": "ConfigurationMetadata" }, { "name": "tsmMetricKey", "baseName": "tsmMetricKey", "type": "string" }, { "name": "name", "baseName": "name", "type": "string" }, { "name": "enabled", "baseName": "enabled", "type": "boolean" }, { "name": "metricDefinition", "baseName": "metricDefinition", "type": "CalculatedMetricDefinition" }, { "name": "unit", "baseName": "unit", "type": "CalculatedServiceMetric.UnitEnum" }, { "name": "unitDisplayName", "baseName": "unitDisplayName", "type": "string" }, { "name": "entityId", "baseName": "entityId", "type": "string" }, { "name": "managementZones", "baseName": "managementZones", "type": "Array" }, { "name": "conditions", "baseName": "conditions", "type": "Array" }, { "name": "dimensionDefinition", "baseName": "dimensionDefinition", "type": "DimensionDefinition" } ]; static getAttributeTypeMap() { return CalculatedServiceMetric.attributeTypeMap; } } export namespace CalculatedServiceMetric { 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' } }