/** * Klaviyo API * The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. * * Contact: developers@klaviyo.com * * 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 './models'; import { CustomMetricCondition } from './customMetricCondition'; export class CustomMetricGroup { /** * The ID of the metric that composes the custom metric. */ 'metricId': string; /** * An optional array of objects for filtering on properties of the metric. */ 'metricFilters'?: Array | null; /** * If the custom metric has a `value` aggregation method, the `value_property` of each `metric_group` of the `definition` should specify the property to calculate the conversion value. If null, the default `$value` property will be used. */ 'valueProperty'?: string | null; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "metricId", "baseName": "metric_id", "type": "string" }, { "name": "metricFilters", "baseName": "metric_filters", "type": "Array" }, { "name": "valueProperty", "baseName": "value_property", "type": "string" } ]; static getAttributeTypeMap() { return CustomMetricGroup.attributeTypeMap; } }