/ cloudformation-templates / node_modules / @aws-cdk / aws-lambda / lib / lambda-augmentations.generated.d.ts
lambda-augmentations.generated.d.ts
1 import * as cloudwatch from '@aws-cdk/aws-cloudwatch'; 2 declare module "./function-base" { 3 /** 4 * @stability stable 5 */ 6 interface IFunction { 7 /** 8 * Return the given named metric for this Lambda Return the given named metric for this Function. 9 * 10 * @stability stable 11 */ 12 metric(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric; 13 /** 14 * Metric for the number of throttled invocations of this Lambda How often this Lambda is throttled. 15 * 16 * Sum over 5 minutes 17 * 18 * @default sum over 5 minutes 19 * @stability stable 20 */ 21 metricThrottles(props?: cloudwatch.MetricOptions): cloudwatch.Metric; 22 /** 23 * Metric for the number of invocations of this Lambda How often this Lambda is invoked. 24 * 25 * Sum over 5 minutes 26 * 27 * @default sum over 5 minutes 28 * @stability stable 29 */ 30 metricInvocations(props?: cloudwatch.MetricOptions): cloudwatch.Metric; 31 /** 32 * How many invocations of this Lambda fail. 33 * 34 * Sum over 5 minutes 35 * 36 * @stability stable 37 */ 38 metricErrors(props?: cloudwatch.MetricOptions): cloudwatch.Metric; 39 /** 40 * Metric for the Duration of this Lambda How long execution of this Lambda takes. 41 * 42 * Average over 5 minutes 43 * 44 * @default average over 5 minutes 45 * @stability stable 46 */ 47 metricDuration(props?: cloudwatch.MetricOptions): cloudwatch.Metric; 48 } 49 /** 50 * @stability stable 51 */ 52 interface FunctionBase { 53 /** 54 * Return the given named metric for this Function. 55 * 56 * @stability stable 57 */ 58 metric(metricName: string, props?: cloudwatch.MetricOptions): cloudwatch.Metric; 59 /** 60 * How often this Lambda is throttled. 61 * 62 * Sum over 5 minutes 63 * 64 * @stability stable 65 */ 66 metricThrottles(props?: cloudwatch.MetricOptions): cloudwatch.Metric; 67 /** 68 * How often this Lambda is invoked. 69 * 70 * Sum over 5 minutes 71 * 72 * @stability stable 73 */ 74 metricInvocations(props?: cloudwatch.MetricOptions): cloudwatch.Metric; 75 /** 76 * How many invocations of this Lambda fail. 77 * 78 * Sum over 5 minutes 79 * 80 * @stability stable 81 */ 82 metricErrors(props?: cloudwatch.MetricOptions): cloudwatch.Metric; 83 /** 84 * How long execution of this Lambda takes. 85 * 86 * Average over 5 minutes 87 * 88 * @stability stable 89 */ 90 metricDuration(props?: cloudwatch.MetricOptions): cloudwatch.Metric; 91 } 92 }