Table of Contents

Class ConnectorConfig

Namespace
Cognite.Simulator.Utils
Assembly
Cognite.Simulator.Utils.dll

Represents the configuration for connectors. This defines basic connector properties such as name and intervals for status report and for fetching events

public class ConnectorConfig
Inheritance
ConnectorConfig
Derived
Inherited Members

Properties

AddMachineNameSuffix

If true, the connector name is composed of the prefix NamePrefix and the name of the machine running the connector

public bool AddMachineNameSuffix { get; set; }

Property Value

bool

FetchRunsInterval

The connector will fetch simulation runs from CDF with this interval (in seconds)

public int FetchRunsInterval { get; set; }

Property Value

int

LicenseCheck

Configure License checking, enable or change frequency

public LicenseCheckConfig LicenseCheck { get; set; }

Property Value

LicenseCheckConfig

NamePrefix

The connector name prefix. If AddMachineNameSuffix is set to false then this is the connector name

public string NamePrefix { get; set; }

Property Value

string

PipelineNotification

Configuration related to error tolerance before reporting a failed run to the pipeline in CDF

public PipelineNotificationConfig PipelineNotification { get; set; }

Property Value

PipelineNotificationConfig

SchedulerTolerance

The scheduler will trigger simulations that passed the scheduled time, but will tolerate missing the scheduled time by this much time (in seconds)

public int SchedulerTolerance { get; set; }

Property Value

int

SchedulerUpdateInterval

The connector will check if scheduled simulations should be triggered with this interval (in seconds)

public int SchedulerUpdateInterval { get; set; }

Property Value

int

SimulationRunTolerance

The connector will run simulation run resource found on CDF that are not older than this value (in seconds). In case it finds items older than this, the runs will fail due to timeout TODO: We should use this so that our runs dont pile up

public int SimulationRunTolerance { get; set; }

Property Value

int

StatusInterval

The connector will update its heartbeat in CDF with this interval (in seconds)

public int StatusInterval { get; set; }

Property Value

int

Methods

GetConnectorName()

Returns the connector name, composed of the configured prefix and suffix

public string GetConnectorName()

Returns

string

Connector name