Table of Contents

Constructor GnmiClient

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

GnmiClient(uint, uint, string, DataSourceConfiguration, ILogger)

Constructs a gNMI/gRPC client that will use the CommunicationGateway DxM to connect to a device. The connection is only set up when Connect() is called.

public GnmiClient(uint agentId, uint elementId, string channelName, DataSourceConfiguration dataSourceConfiguration, ILogger logger)

Parameters

agentId uint

The DataMiner agent ID of the element if applicable. Becomes part of the channel ID and helps identify the source when investigating logging and traces.

elementId uint

The element ID of the element if applicable. Becomes part of the channel ID and helps identify the source when investigating logging and traces.

channelName string

A descriptive name for this channel, to differentiate the logging if multiple channels are logging to the same file.

dataSourceConfiguration DataSourceConfiguration

The details needed to find and connect to the endpoint.

logger ILogger

The interface that will be called for any logging.

Exceptions

ArgumentException

The channelName should not be null or empty or whitespace.

ArgumentException

The value should be a NATS token friendly name.