# Data Object - PerfMetricId(vim.PerformanceManager.MetricId)

Property of
  MetricAlarmExpression, PerfMetricSeries, PerfQuerySpec
Returned by
  QueryAvailablePerfMetric
Extends
  DynamicData

## Data Object Description

This data object type contains information that associates a performance counter with a performance metric. When constructing this data object for the metricId property of the PerfQuerySpec to submit to one of the PerformanceManager query operations, the instance property supports these special characters:

- An asterisk (*) to specify all instances of the metric for the specified counterId
- Double-quotes ("") to specify aggregated statistics

Properties

Name | Type | Description
--- | --- | ---
counterId | xsd:int | The ID of the counter for the metric.
instance | xsd:string | An identifier that is derived from configuration names for the device associated with the metric. It identifies the instance of the metric with its source. This property may be empty. For memory and aggregated statistics, this property is empty. For host and virtual machine devices, this property contains the name of the device, such as the name of the host-bus adapter or the name of the virtual Ethernet adapter. For example, “mpx.vmhba33:C0:T0:L0” or “vmnic0:” For a CPU, this property identifies the numeric position within the CPU core, such as 0, 1, 2, 3. For a virtual disk, this property identifies the file type: DISKFILE, for virtual machine base-disk files SWAPFILE, for virtual machine swap files DELTAFILE, for virtual machine snapshot overhead files OTHERFILE, for all other files of a virtual machine
Properties inherited from DynamicData
None

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="PerfMetricId"> <complexContent> <extension base="sms:DynamicData"> <sequence> <element name="counterId" type="xsd:int"/> <element name="instance" type="xsd:string"/> </sequence> </extension> </complexContent> </complexType>