Table of Contents

Method Get

Namespace
Skyline.DataMiner.DataSources.OpenConfig.Gnmi.Api
Assembly
Skyline.DataMiner.DataSources.OpenConfig.Gnmi.dll

Get(IEnumerable<string>)

Get the gNMI values for the specified paths.

public IEnumerable<GnmiResponseValue> Get(IEnumerable<string> paths)

Parameters

paths IEnumerable<string>

The paths to request. A path should be formatted as a concatenation of node names separated by either a forward or backward slash.

Returns

IEnumerable<GnmiResponseValue>

The individual response values, this is usually one value per path. Can only be iterated once.

Exceptions

ArgumentNullException

The input argument cannot be null.

ArgumentException

There should be at least one path present.

RequestFailedException

There was an exception thrown by the DxM.

Get(IEnumerable<Path>)

Get the gNMI values for the specified paths.

public IEnumerable<GnmiResponseValue> Get(IEnumerable<Path> paths)

Parameters

paths IEnumerable<Path>

The paths to request. This uses the actual gNMI Path class.

Returns

IEnumerable<GnmiResponseValue>

The individual response values, this is usually one value per path. Can only be iterated once.

Exceptions

ArgumentNullException

The input argument cannot be null.

ArgumentException

There should be at least one path present.

RequestFailedException

There was an exception thrown by the DxM.