GradientEdge CDK Utils
    Preparing search index...

    Provides operations on AWS CloudWatch.

    • A new instance of this class is injected into CommonConstruct constructor.
    • If a custom construct extends CommonConstruct, an instance is available within the context.
    import { CommonConstruct } from '@gradientedge/cdk-utils'

    class CustomConstruct extends CommonConstruct {
    constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
    super(parent, id, props)
    this.props = props
    this.cloudWatchManager.createAlarmForMetric('MyAlarm', this, metric)
    }
    }
    Index

    Constructors

    Methods

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • apiName: string

        the api name

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • cacheClusterId: string

        the elasticache cluster id

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • distributionId: string

        the cloudfront distribution id

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • service: string

        the service identifier

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • clusterName: string

        the ecs cluster name

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • clusterName: string

        the ecs cluster name

      • serviceName: string

        the ecs service name

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • loadBalancer: string

        the loadbalancer reference

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • eventBusName: string

        the event bus name

      • ruleName: string

        the event rule name

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • functionName: string

        the lambda function name

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any
      • stateMachineArn: string

        the step function arn

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget

    • Parameters

      • id: string

        scoped id of the resource

      • scope: CommonConstruct

        scope in which this resource is defined

      • props: any

      Returns
          | TextWidget
          | SingleValueWidget
          | GaugeWidget
          | GraphWidget
          | AlarmStatusWidget
          | LogQueryWidget