共用方式為


SMS_MeterData Server WMI Class

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

The SMS_MeterData Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that represents captured software metering data.

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

Class SMS_MeterData : SMS_BaseClass
{
      Boolean EndNotCaptured;
      DateTime EndTime;
      UInt32 EndTimeOffset;
      UInt32 FileID;
      Boolean InTSSession;
      String MeterDataID;
      UInt32 MeteredUserID;
      Boolean Released;
      UInt32 ResourceID;
      Boolean Started;
      Boolean StartNotCaptured;
      DateTime StartTime;
      UInt32 StartTimeOffset;
      Boolean StillRunning;
      UInt32 TimeSerial;
};

Methods

The SMS_MeterData class does not define any methods.

Properties

  • EndNotCaptured
    Data type: Boolean

    Access type: Read/Write

    Qualifiers: [ResID(1911), ResDLL("SMS_RSTT.dll")]

    true if the metering agent could not capture the actual end time of the process.

  • EndTime
    Data type: DateTime

    Access type: Read/Write

    Qualifiers: [key, ResID(1907), ResDLL("SMS_RSTT.dll")]

    The date and time, in Universal Coordinated Time (UTC), when the process stopped running, if StillRunning is false. If it is true, EndTime represents the time at which the data was reported.

  • EndTimeOffset
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(1908), ResDLL("SMS_RSTT.dll")]

    The offset from UTC, in minutes, of the local time for the client at the time the data was reported.

  • FileID
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(1904), ResDLL("SMS_RSTT.dll")]

    ID of the file that was metered. To find the file information, match FileID with the ID in SMS_ProductFileInfo Server WMI Class. To find the rules that caused the file to be metered, match FileID with the ID in SMS_MeteredFiles Server WMI Class.

  • InTSSession
    Data type: Boolean

    Access type: Read/Write

    Qualifiers: [ResID(1912), ResDLL("SMS_RSTT.dll")]

    true if the file was used in a Terminal Server session. Set the property to false if the file was used in a Configuration Manager console session.

  • MeterDataID
    Data type: String

    Access type: Read/Write

    Qualifiers: [key, ResID(1901), ResDLL("SMS_RSTT.dll")]

    Unique ID of a particular instance of a running process on a particular computer. A record with this ID is created every time the client reports on the same instance of a running program.

  • MeteredUserID
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(1906), ResDLL("SMS_RSTT.dll")]

    ID of the Windows user account of the programs user. To find the user name, the application finds the record with the same MeteredUserID property in the SMS_MeteredUser Server WMI Class class.

  • Released
    Data type: Boolean

    Access type: Read/Write

    Qualifiers: None

    Internal flag used by the metering system and signifying that the record can be deleted by the Delete Aged Software Metering Data site maintenance task.

  • ResourceID
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(1905), ResDLL("SMS_RSTT.dll")]

    ID of the computer that executed the metered program. To find the computer information, your application finds the record with the same resource ID in the SMS_R_System Server WMI Class class.

  • Started
    Data type: Boolean

    Access type: Read/Write

    Qualifiers: None

    true if this is the first record reporting on a particular instance of a running program. If this property is set to true, StartTime represents the actual time when the program started.

  • StartNotCaptured
    Data type: Boolean

    Access type: Read/Write

    Qualifiers: [ResID(1910), ResDLL("SMS_RSTT.dll")]

    true if the metering agent was not able to capture the actual start time of the process.

  • StartTime
    Data type: DateTime

    Access type: Read/Write

    Qualifiers: [ResID(1902), ResDLL("SMS_RSTT.dll")]

    The date and time, in Universal Coordinated Time (UTC), when the program started, if Started is true. If it is false, StartTime is the end time (EndTime) of the previous report for this program.

  • StartTimeOffset
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: [ResID(1903), ResDLL("SMS_RSTT.dll")]

    The offset from UTC, in minutes, of the local time for the client at the time the data was reported.

  • StillRunning
    Data type: Boolean

    Access type: Read/Write

    Qualifiers: [ResID(1909), ResDLL("SMS_RSTT.dll")]

    true if the program is still running. Set this property to false if EndTime represents the actual end time of the metered program.

  • TimeSerial
    Data type: UInt32

    Access type: Read/Write

    Qualifiers: None

    A rough ordering of the time used to process the record. Records with a smaller TimeSerial value were processed before a record with a larger TimeSerial value. This property is not unique across records.

Remarks

Remarks

There are no special class qualifiers for this class. For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

Each record represents a report of a running program on a computer. If a program runs over several reporting cycles, there are several instances of SMS_MeterData that report on it, all with the same MeterDataID value. The time periods specified by StartTime and EndTime are consecutive and do not overlap. The full period of program execution can be found by the earliest StartTime value (where Started = 1) and the latest EndTime value (where StillRunning = 0).

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Concepts

Software Metering Server WMI Classes
SMS_G_System_SoftwareUsageData Server WMI Class