Interface ILaunchDarklyClient
Interface representing capabilities needed by the AI Client. These are usually provided by the LaunchDarkly Server SDK.
Namespace: LaunchDarkly.Sdk.Server.Ai.Interfaces
Assembly: LaunchDarkly.ServerSdk.Ai.dll
Syntax
public interface ILaunchDarklyClient
Methods
| Edit this page View SourceGetLogger()
Returns a logger.
Declaration
ILogger GetLogger()
Returns
Type | Description |
---|---|
ILogger | a logger |
JsonVariation(string, Context, LdValue)
Returns a JSON variation.
Declaration
LdValue JsonVariation(string key, Context context, LdValue defaultValue)
Parameters
Type | Name | Description |
---|---|---|
string | key | the flag key |
Context | context | the context |
LdValue | defaultValue | the default value |
Returns
Type | Description |
---|---|
LdValue | the evaluation result |
Track(string, Context, LdValue, double)
Tracks a metric.
Declaration
void Track(string name, Context context, LdValue data, double metricValue)
Parameters
Type | Name | Description |
---|---|---|
string | name | metric name |
Context | context | context |
LdValue | data | associated data |
double | metricValue | metric value |