Class ILambdaSharpLoggerEx
ILambda
Inheritance
Namespace: LambdaSharp.Logging.Metrics
Assembly: LambdaSharp.Logging.dll
Syntax
public static class ILambdaSharpLoggerEx
Methods
LogMetric(ILambdaSharpLogger, IEnumerable<LambdaMetric>)
Log a CloudWatch metric. The metric is picked up by CloudWatch logs and automatically ingested as a CloudWatch metric.
Declaration
public static void LogMetric(this ILambdaSharpLogger logger, IEnumerable<LambdaMetric> metrics)
Parameters
Type | Name | Description |
---|---|---|
ILambda |
logger | The ILambda |
System. |
metrics | Enumeration of metrics, including their name, value, and unit. |
LogMetric(ILambdaSharpLogger, IEnumerable<LambdaMetric>, IEnumerable<String>, Dictionary<String, String>)
Log a CloudWatch metric. The metric is picked up by CloudWatch logs and automatically ingested as a CloudWatch metric.
Declaration
public static void LogMetric(this ILambdaSharpLogger logger, IEnumerable<LambdaMetric> metrics, IEnumerable<string> dimensionNames, Dictionary<string, string> dimensionValues)
Parameters
Type | Name | Description |
---|---|---|
ILambda |
logger | The ILambda |
System. |
metrics | Enumeration of metrics, including their name, value, and unit. |
System. |
dimensionNames | Metric dimensions as comma-separated list (e.g. [ "A", "A,B" ]). |
System. |
dimensionValues | Dictionary of dimesion name-value pairs. |
LogMetric(ILambdaSharpLogger, String, IEnumerable<LambdaMetric>, IEnumerable<String>, Dictionary<String, String>)
Log a CloudWatch metric. The metric is picked up by CloudWatch logs and automatically ingested as a CloudWatch metric.
Declaration
public static void LogMetric(this ILambdaSharpLogger logger, string namespace, IEnumerable<LambdaMetric> metrics, IEnumerable<string> dimensionNames, Dictionary<string, string> dimensionValues)
Parameters
Type | Name | Description |
---|---|---|
ILambda |
logger | The ILambda |
System. |
namespace | Metric namespace. |
System. |
metrics | Enumeration of metrics, including their name, value, and unit. |
System. |
dimensionNames | Metric dimensions as comma-separated list (e.g. [ "A", "A,B" ]). |
System. |
dimensionValues | Dictionary of dimesion name-value pairs. |
LogMetric(ILambdaSharpLogger, String, Double, LambdaMetricUnit)
Log a CloudWatch metric. The metric is picked up by CloudWatch logs and automatically ingested as a CloudWatch metric.
Declaration
public static void LogMetric(this ILambdaSharpLogger logger, string name, double value, LambdaMetricUnit unit)
Parameters
Type | Name | Description |
---|---|---|
ILambda |
logger | The ILambda |
System. |
name | Metric name. |
System. |
value | Metric value. |
Lambda |
unit | Metric unit. |
LogMetric(ILambdaSharpLogger, String, Double, LambdaMetricUnit, IEnumerable<String>, Dictionary<String, String>)
Log a CloudWatch metric. The metric is picked up by CloudWatch logs and automatically ingested as a CloudWatch metric.
Declaration
public static void LogMetric(this ILambdaSharpLogger logger, string name, double value, LambdaMetricUnit unit, IEnumerable<string> dimensionNames, Dictionary<string, string> dimensionValues)
Parameters
Type | Name | Description |
---|---|---|
ILambda |
logger | The ILambda |
System. |
name | Metric name. |
System. |
value | Metric value. |
Lambda |
unit | Metric unit. |
System. |
dimensionNames | Metric dimensions as comma-separated list (e.g. [ "A", "A,B" ]). |
System. |
dimensionValues | Dictionary of dimesion name-value pairs. |