Struct DataSourceStatus
Information about the data source's status and about the last status change.
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Interfaces
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public struct DataSourceStatus
Properties
| Edit this page View SourceLastError
Information about the last error that the data source encountered, if any.
Declaration
public DataSourceStatus.ErrorInfo? LastError { get; set; }
Property Value
Type | Description |
---|---|
DataSourceStatus.ErrorInfo? |
Remarks
This property should be updated whenever the data source encounters a problem, even if it does not cause State to change. For instance, if a stream connection fails and the state changes to Interrupted, and then subsequent attempts to restart the connection also fail, the state will remain Interrupted but the error information will be updated each time-- and the last error will still be reported in this property even if the state later becomes Valid.
State
An enumerated value representing the overall current state of the data source.
Declaration
public DataSourceState State { get; set; }
Property Value
Type | Description |
---|---|
DataSourceState |
StateSince
The date/time that the value of State most recently changed.
Declaration
public DateTime StateSince { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Remarks
The meaning of this depends on the current state:
- For Initializing, it is the time that the SDK started initializing.
- For Valid, it is the time that the data source most recently entered a valid state, after previously having been either Initializing or Interrupted.
- For Interrupted, it is the time that the data source most recently entered an error state, after previously having been Valid.
- For Off, it is the time that the data source encountered an unrecoverable error or that the SDK was explicitly shut down.
Methods
| Edit this page View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |