UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 798 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var cw=()=>{var tmp=require("../../aws-cloudwatch");return cw=()=>tmp,tmp},vpn_1=()=>{var tmp=require("./vpn");return vpn_1=()=>tmp,tmp};vpn_1().VpnConnectionBase.prototype.metric=function(metricName,props){return new(cw()).Metric({namespace:"AWS/VPN",metricName,dimensionsMap:{VpnId:this.vpnId},...props}).attachTo(this)},vpn_1().VpnConnectionBase.prototype.metricTunnelState=function(props){return this.metric("TunnelState",{statistic:"Average",...props})},vpn_1().VpnConnectionBase.prototype.metricTunnelDataIn=function(props){return this.metric("TunnelDataIn",{statistic:"Sum",...props})},vpn_1().VpnConnectionBase.prototype.metricTunnelDataOut=function(props){return this.metric("TunnelDataOut",{statistic:"Sum",...props})};