/** * 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 { MetricEventMonitoringStrategy } from './metricEventMonitoringStrategy'; import { MetricEventStaticThresholdMonitoringStrategyAllOf } from './metricEventStaticThresholdMonitoringStrategyAllOf'; /** * A static threshold monitoring strategy to alert on hard limits within a given metric. An example is the violation of a critical memory limit. */ export class MetricEventStaticThresholdMonitoringStrategy extends MetricEventMonitoringStrategy { /** * The number of one-minute samples that form the sliding evaluation window. */ 'samples': number; /** * The number of one-minute samples within the evaluation window that must violate the threshold to trigger an event */ 'violatingSamples': number; /** * The number of one-minute samples within the evaluation window that must go back to normal to close the event. */ 'dealertingSamples': number; /** * The condition for the **threshold** value check: above or below. */ 'alertCondition': MetricEventStaticThresholdMonitoringStrategy.AlertConditionEnum; /** * The value of the static threshold based on the specified unit. */ 'threshold': number; /** * The unit of the threshold, matching the metric definition. */ 'unit': MetricEventStaticThresholdMonitoringStrategy.UnitEnum; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "samples", "baseName": "samples", "type": "number" }, { "name": "violatingSamples", "baseName": "violatingSamples", "type": "number" }, { "name": "dealertingSamples", "baseName": "dealertingSamples", "type": "number" }, { "name": "alertCondition", "baseName": "alertCondition", "type": "MetricEventStaticThresholdMonitoringStrategy.AlertConditionEnum" }, { "name": "threshold", "baseName": "threshold", "type": "number" }, { "name": "unit", "baseName": "unit", "type": "MetricEventStaticThresholdMonitoringStrategy.UnitEnum" } ]; static getAttributeTypeMap() { return super.getAttributeTypeMap().concat(MetricEventStaticThresholdMonitoringStrategy.attributeTypeMap); } } export namespace MetricEventStaticThresholdMonitoringStrategy { export enum AlertConditionEnum { ABOVE = 'ABOVE', BELOW = 'BELOW' } 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' } }