次の方法で共有


MSFT_SMStorageEvent class

A base class for objects that represent storage events.

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

Syntax

[Indication, Abstract, provider("WMIStorage"), AMENDMENT]
class MSFT_SMStorageEvent
{
  string               StorageSubsystemObjectId;
  MSFT_SMStorageObject SourceInstance;
  string               Description;
  datetime             EventTime;
  uint16               PerceivedSeverity;
  string               SourceClassName;
};

Members

The MSFT_SMStorageEvent class has these types of members:

Properties

The MSFT_SMStorageEvent class has these properties.

Description

Data type: string

Access type: Read-only

A brief description of the event, provided by the storage subsystem.

EventTime

Data type: datetime

Access type: Read-only

The date and time in which the event that triggered this event occurred.

PerceivedSeverity

Data type: uint16

Access type: Read-only

The perceived severity of the event from the notifier's point of view.

The possible values are:

Unknown (0)

The severity is unknown or indeterminate.

Information (2)

The event is for informative purposes.

Degraded/Warning (3)

Action may be required by the user.

Minor (4)

Action is needed, but the situation is not serious at this time.

Major (5)

Immediate action is needed.

Critical (6)

Immediate action is needed and the scope of the issue is broad.

Fatal/NonRecoverable (7)

An error has occurred, but it is too late to take remedial action.

This value is reserved for system use.

SourceClassName

Data type: string

Access type: Read-only

The class of the object that caused the event. For example, if the object causing the event is a storage pool, this property should be set to "MSFT_SMStoragePool" (not the vendor-derived class).

SourceInstance

Data type: MSFT_SMStorageObject

Access type: Read-only

Qualifiers: EmbeddedInstance ("MSFT_SMStorageObject")

The MSFT_SMStorageObject object that caused the event.

StorageSubsystemObjectId

Data type: string

Access type: Read-only

Qualifiers: Required

The ID of the storage object that caused the event.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

Windows Storage Management WMI Provider