Skip to content

One Observability Workshop v3.0.0


One Observability Workshop / serverless/canaries/traffic-generator/traffic-generator / TrafficGeneratorCanary

Class: TrafficGeneratorCanary

Defined in: serverless/canaries/traffic-generator/traffic-generator.ts:18

Synthetics canary that generates continuous traffic against the Pet Site for observability demos.

Extends

Constructors

Constructor

new TrafficGeneratorCanary(scope, id, properties): TrafficGeneratorCanary

Defined in: serverless/canaries/traffic-generator/traffic-generator.ts:19

Parameters

scope

Construct

id

string

properties

TrafficGeneratorCanaryProperties

Returns

TrafficGeneratorCanary

Overrides

WorkshopCanary.constructor

Properties

canary

canary: Canary

Defined in: constructs/canary.ts:56

Inherited from

WorkshopCanary.canary

Methods

getDefaultSSMPolicy()

static getDefaultSSMPolicy(scope, prefix?): PolicyStatement

Defined in: constructs/canary.ts:141

Parameters

scope

Construct

prefix?

string

Returns

PolicyStatement

Inherited from

WorkshopCanary.getDefaultSSMPolicy


createOutputs()

createOutputs(): void

Defined in: serverless/canaries/traffic-generator/traffic-generator.ts:22

Creates CloudFormation outputs for the Lambda function. Must be implemented by concrete subclasses.

Returns

void

Overrides

WorkshopCanary.createOutputs


getEnvironmentVariables()

getEnvironmentVariables(properties): {[key: string]: string; } | undefined

Defined in: serverless/canaries/traffic-generator/traffic-generator.ts:23

Returns environment variables for the Lambda function. Must be implemented by concrete subclasses.

Parameters

properties

TrafficGeneratorCanaryProperties

Function configuration properties

Returns

{[key: string]: string; } | undefined

Map of environment variable names to values

Overrides

WorkshopCanary.getEnvironmentVariables