Gemstone Timeseries Library
Show/Hide TOC

# MeasurementKey Class

Represents a primary key for a measurement.

## Definition

Namespace: Gemstone.Timeseries
Assembly: Gemstone.Timeseries (in Gemstone.Timeseries.dll) Version: 1.0.150 -- Release Build+b0ded34473a5ec0794290d60061683cd4a0402e5
C#
View Source Request Example

    [SerializableAttribute]
    public class MeasurementKey

VB
View Source Request Example

    <SerializableAttribute>
    Public Class MeasurementKey

C++
View Source Request Example

    [SerializableAttribute]
    public ref class MeasurementKey

JavaScript
View Source Request Example

    Gemstone.Timeseries.MeasurementKey = function();

    Type.createClass(
    	'Gemstone.Timeseries.MeasurementKey');

Inheritance
  Object MeasurementKey

## Properties

ID | Gets or sets the numeric ID of this MeasurementKey.
Metadata | Gets the MeasurementMetadata as they appear in the primary adapter metadata.
RuntimeID | A unique ID that is assigned at runtime to identify this instance of MeasurementKey. This value will change between life cycles, so it cannot be used to compare MeasurementKey instances that are running out of process or in a separate AppDomain.
SignalID | Gets or sets Guid ID of signal associated with this MeasurementKey.
Source | Gets or sets the source of this MeasurementKey.

## Methods

CreateOrUpdate(Guid, String) | Constructs a new MeasurementKey given the specified parameters.
CreateOrUpdate(Guid, String, UInt64) | Constructs a new MeasurementKey given the specified parameters.
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
EstablishDefaultCache | Establish default MeasurementKey cache.
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
GetHashCode | Serves as a hash function for the current MeasurementKey. (Overrides ObjectGetHashCode)
GetType | Gets the Type of the current instance. (Inherited from Object)
LookUpBySignalID | Looks up the measurement key associated with the given signal ID.
LookUpBySource | Looks up the measurement key associated with the given source and ID.
LookUpOrCreate(String) | Performs a lookup by source and, failing that, attempts to create the key using a newly generated signal ID and the parsed source and ID.
LookUpOrCreate(Guid, String) | Performs a lookup by signal ID and, failing that, attempts to create the key using the given signal ID and the parsed source, and ID.
LookUpOrCreate(String, UInt64) | Performs a lookup by source and, failing that, attempts to create the key using a newly generated signal ID and the given source and ID.
LookUpOrCreate(Guid, String, UInt64) | Performs a lookup by signal ID and, failing that, attempts to create the key using the given signal ID, source, and ID.
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
Parse | Converts the string representation of a MeasurementKey into its value equivalent.
SetMeasurementMetadata | Updates the values of the Metadata.
ToString | Returns a String that represents the current MeasurementKey. (Overrides ObjectToString)
TryCreateOrUpdate(Guid, String, MeasurementKey) | Constructs a new MeasurementKey given the specified parameters.
TryCreateOrUpdate(Guid, String, UInt64, MeasurementKey) | Constructs a new MeasurementKey given the specified parameters.
TryParse | Attempts to convert the string representation of a MeasurementKey into its value equivalent.

## Fields

Undefined | Represents an undefined measurement key.

## See Also

#### Reference

Gemstone.Timeseries Namespace