Partager via


DataSeries Class

Definition

This class contains the data associated with a data source. Each data source that's registered for a capability maps directly to a DataSeries object.

An individual data source might record data for multiple instances. For example, the well-known volume series has data for all volumes. Or, a performance counter data source can record data for 'all instances'. The DataSeries object contains structures to help you properly identify the data you specified.

Identifier helps identify the performance counter instance or the logical object, such as an individual volume or network adapter.

SeriesProperties contains any additional metadata associated with the data source, such as a GUID or FriendlyName.

SeriesNames specifies the ordering of the data contained in each DataRecord object.

DataRecords contains a DataRecord for each timestamp.

For example, in the volume well-known series DataSeries, Identifier: VolumeGuid SeriesProperties: { { "VolumeGuid", value } { "FriendlyName", value } { "DriveLetter", value } } SeriesName: { { Size, 0 } { SizeUsed, 1 } { SizeFree, 2 } }

For example, in the CPU well-known series DataSeries, Identifier: "CPU" SeriesProperties: { { "Id", value } } SeriesNames: { { ProcessorTime, 0 } }

For example, in the networking well-known series DataSeries, Identifier: AdapterGuid SeriesProperties: { { "AdapterGuid", value } { "FriendlyName", value } } SeriesNames: { {BytesMaximum, 0} {BytesInbound, 1} {BytesOutbound, 2} {BytesTotal, 3} }

For example, in the physical disk well-known series DataSeries, Identifier: Id SeriesProperties: { { "Id", value } } SeriesNames: { { Size, 0} }

For example, for the performance counter DataSeries, Identifier: Counter Instance Name SeriesProperties: { { "Path", value } { "Name", value } { "Instance", value } } SeriesNames: { {"CounterValue", 0} }

For example, in the event DataSeries, Identifier: EventId, SeriesProperties: { { "ChannelName", value } { "EventId", value } } SeriesNames: { {"EventCount", 0} }

public ref class DataSeries : MarshalByRefObject
public class DataSeries : MarshalByRefObject
type DataSeries = class
    inherit MarshalByRefObject
Public Class DataSeries
Inherits MarshalByRefObject
Inheritance
DataSeries

Constructors

DataSeries(String, IReadOnlyDictionary<String,Int32>, IReadOnlyDictionary<String,String>, IReadOnlyList<DataRecord>)

Constructor for DataSeries

Properties

DataRecords

The list of data records.

Identifier

Specifies the unique identifier of the data series.

SeriesNames

Specifies the ordering of the data in each DataRecord.

SeriesProperties

Specifies any metadata information for this series.

Applies to