# MetricFilter

**Kind**: interface | **Module**: [Insights](https://docs.interop.io/desktop/reference/javascript/insights/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/insights/metricfilter/index.html

Metric filters that can be specified as part of a specific metric.

## Properties

- **`attributes`** (`{ complexLoad?: boolean; includesFrameCreation?: boolean; } & Record<string, any>`, optional)
  Matches the attributes attached to a metric value. Not all metrics
  have all attribute values.
- **`attributeSettings`** (`{ [x: string]: MetricAttributeSettings; }`, optional)
  Controls the publishing of specific attributes.
- **`enabled`** (`boolean`, optional)
  Whether or not the value for the matching metric will be published.
- **`name`** (`string`, optional)
  The name of the matched metric.
- **`overrideDefaultFilters`** (`boolean`, optional) default: `false`
  If `true`, this filter rule will be matched before any default filters provided
  by io.Connect. The default filters are usually meant filter out non-representative
  operations (e.g. partial workspace loads), but you can use this property to
  force them to be measured.
  If `false`, default filters will be matched before this filtering rule.
- **`sample`** (`number | boolean`, optional) default: `true`
  Defines sampling probability for the metric.
- **`type`** (`MetricType`, optional)
  The type of the matched metric.

## Related types

- [MetricAttributeSettings](https://docs.interop.io/desktop/reference/javascript/insights/metricattributesettings/index.md)
- [MetricType](https://docs.interop.io/desktop/reference/javascript/insights/metrictype/index.md)
