Documentation
¶
Index ¶
- func GetColdStartDurationStatistics(ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, ...) (*sdktypes.ColdStartDurationStatisticsReturn, error)
- func GetColdStartRate(ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, ...) (*sdktypes.ColdStartRateReturn, error)
- func GetDurationStatistics(ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, ...) (*sdktypes.DurationStatisticsReturn, error)
- func GetErrorRate(ctx context.Context, cwFetcher sdkinterfaces.CloudWatchFetcher, ...) (*sdktypes.ErrorRateReturn, error)
- func GetErrorTypes(ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, ...) (*sdktypes.ErrorTypesReturn, error)
- func GetFunctionConfiguration(ctx context.Context, lambdaClient sdkinterfaces.LambdaClient, ...) (*sdktypes.BaseStatisticsReturn, error)
- func GetMaxMemoryUsageStatistics(ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, ...) (*sdktypes.MemoryUsagePercentilesReturn, error)
- func GetThrottleRate(ctx context.Context, cwFetcher sdkinterfaces.CloudWatchFetcher, ...) (*sdktypes.ThrottleRateReturn, error)
- func GetTimeoutRate(ctx context.Context, cwFetcher sdkinterfaces.CloudWatchFetcher, ...) (*sdktypes.TimeoutRateReturn, error)
- func GetWasteRatio(ctx context.Context, cwFetcher sdkinterfaces.CloudWatchFetcher, ...) (*sdktypes.WasteRatioReturn, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetColdStartDurationStatistics ¶
func GetColdStartDurationStatistics( ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, cwFetcher sdkinterfaces.CloudWatchFetcher, invocationsCache sdkinterfaces.Cache, query sdktypes.FunctionQuery, ) (*sdktypes.ColdStartDurationStatisticsReturn, error)
GetColdStartDurationStatistics calculates colstart duration statistics of an AWS Lambda function over a specified time range and qualifier (version). It does not use the duration metric from cloudwatch, as there is a risk of aggregating durations depending on the period
func GetColdStartRate ¶
func GetColdStartRate( ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, cwFetcher sdkinterfaces.CloudWatchFetcher, invocationsCache sdkinterfaces.Cache, query sdktypes.FunctionQuery, ) (*sdktypes.ColdStartRateReturn, error)
GetColdStartRate calculates the cold start rate of an AWS Lambda function over a specified time range and qualifier (version). The cold start rate is computed as cold starts divided by total invocations.
func GetDurationStatistics ¶
func GetDurationStatistics( ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, cwFetcher sdkinterfaces.CloudWatchFetcher, invocationsCache sdkinterfaces.Cache, query sdktypes.FunctionQuery, ) (*sdktypes.DurationStatisticsReturn, error)
GetDurationStatistics calculates duration statistics of an AWS Lambda function over a specified time range and qualifier (version). It does not use the duration metric from cloudwatch, as there is a risk of aggregating durations depending on the period
func GetErrorRate ¶
func GetErrorRate( ctx context.Context, cwFetcher sdkinterfaces.CloudWatchFetcher, invocationsCache sdkinterfaces.Cache, query sdktypes.FunctionQuery, ) (*sdktypes.ErrorRateReturn, error)
GetErrorRate calculates the ratio of errors and total invoations of an AWS Lambda function over a specified time range and qualifier (version).
func GetErrorTypes ¶
func GetErrorTypes( ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, cwFetcher sdkinterfaces.CloudWatchFetcher, invocationsCache sdkinterfaces.Cache, query sdktypes.FunctionQuery, ) (*sdktypes.ErrorTypesReturn, error)
GetErrorTypes counts the different errors that occur over a specified time range and qualifier (version). It uses a regex to search for the error in an [ERROR] line in logs and groups them based on semantics.
func GetFunctionConfiguration ¶
func GetFunctionConfiguration( ctx context.Context, lambdaClient sdkinterfaces.LambdaClient, query sdktypes.FunctionQuery, ) (*sdktypes.BaseStatisticsReturn, error)
GetFunctionConfiguration gets configurations of an AWS Lambda function with a sprcific qualifier.
func GetMaxMemoryUsageStatistics ¶
func GetMaxMemoryUsageStatistics( ctx context.Context, logsFetcher sdkinterfaces.LogsInsightsFetcher, cwFetcher sdkinterfaces.CloudWatchFetcher, invocationsCache sdkinterfaces.Cache, query sdktypes.FunctionQuery, ) (*sdktypes.MemoryUsagePercentilesReturn, error)
GetMaxMemoryUsageStatistics calculates statistics on the maximum used memory of an AWS Lambda functions invocations over a specified time range and qualifier (version).
func GetThrottleRate ¶
func GetThrottleRate( ctx context.Context, cwFetcher sdkinterfaces.CloudWatchFetcher, invocationsCache sdkinterfaces.Cache, query sdktypes.FunctionQuery, ) (*sdktypes.ThrottleRateReturn, error)
GetThrottleRate calculates the throttle rate of an AWS Lambda function over a specified time range and qualifier (version). The throttle rate is computed as throttled invocations divided by total invocations.
func GetTimeoutRate ¶
func GetTimeoutRate( ctx context.Context, cwFetcher sdkinterfaces.CloudWatchFetcher, logsFetcher sdkinterfaces.LogsInsightsFetcher, invocationsCache sdkinterfaces.Cache, query sdktypes.FunctionQuery, ) (*sdktypes.TimeoutRateReturn, error)
GetTimeoutRate calculates the timeout rate of an AWS Lambda function over a specified time range and qualifier (version). The timeout rate is computed as timed-out invocations divided by total invocations.
func GetWasteRatio ¶
func GetWasteRatio( ctx context.Context, cwFetcher sdkinterfaces.CloudWatchFetcher, logsFetcher sdkinterfaces.LogsInsightsFetcher, invocationsCache sdkinterfaces.Cache, query sdktypes.FunctionQuery, ) (*sdktypes.WasteRatioReturn, error)
GetWasteRatio calculates the ratio between billed duration and execution duration of an AWS Lambda function over a specified time range and qualifier (version). The waste ratio is computed as: (billed duration - total duration / billed duration)
Types ¶
This section is empty.