Share via


Win32_PowerMeterEvent class

The Win32_PowerMeterEvent class provides metering and budgeting information. This class represents a change in the power meter. This information includes changes in the meter's capabilities, changes in the meter's configuration, or notification that a configured threshold has been crossed.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[Provider("PowerMeterProvider"), Dynamic]
class Win32_PowerMeterEvent : __ExtrinsicEvent
{
  CIM_PowerMeter REF EventSource;
  uint32             EventType;
};

Members

The Win32_PowerMeterEvent class has these types of members:

Properties

The Win32_PowerMeterEvent class has these properties.

EventSource

Data type: CIM_PowerMeter

Access type: Read-only

Specifies the Win32_PowerMeter object from which this event originated.

EventType

Data type: uint32

Access type: Read-only

Specifies the type of event. The following events are possible.

Value Meaning
0
The metering or budgeting capabilities of the power meter have changed.
1
The power level has exceeded the power meter's current threshold.
2
The metering or budgeting configuration of the power meter have changed.
3
The power budget has either reached or exceeded the power meter's current budget level.
4
The averaging interval of the power meter has been changed.

Remarks

The Win32_PowerMeterEvent class is derived from the __ExtrinsicEvent WMI class. For more information, see __ExtrinsicEvent.

Requirements

Minimum supported client
Windows 7
Minimum supported server
Windows Server 2008 R2
Namespace
Root\CIMV2\power
MOF
PowerMeterProvider.mof
DLL
UmPoWmi.dll