One Observability Workshop v3.0.0
One Observability Workshop / microservices/petlist-adoptions / ListAdoptionsService
Class: ListAdoptionsService¶
Defined in: microservices/petlist-adoptions.ts:54
Pet List Adoptions ECS service (Python/FastAPI).
Deploys the adoption listing API with ADOT Python auto-instrumentation (zero-code) via CloudWatch agent sidecar. Includes optional SLO support and Prometheus metrics for request count and latency histograms.
Extends¶
Constructors¶
Constructor¶
new ListAdoptionsService(
scope,id,properties):ListAdoptionsService
Defined in: microservices/petlist-adoptions.ts:55
Parameters¶
scope¶
Construct
id¶
string
properties¶
ListAdoptionsServiceProperties
Returns¶
ListAdoptionsService
Overrides¶
Properties¶
taskDefinition¶
readonlytaskDefinition:TaskDefinition
Defined in: constructs/ecs-service.ts:114
Inherited from¶
loadBalancedService?¶
readonlyoptionalloadBalancedService:ApplicationLoadBalancedServiceBase
Defined in: constructs/ecs-service.ts:115
Inherited from¶
EcsService.loadBalancedService
service?¶
readonlyoptionalservice:BaseService
Defined in: constructs/ecs-service.ts:116
Inherited from¶
container¶
readonlycontainer:ContainerDefinition
Defined in: constructs/ecs-service.ts:117
Inherited from¶
taskRole¶
readonlytaskRole:IRole
Defined in: constructs/ecs-service.ts:118
Inherited from¶
ddbSeedPolicy¶
readonlyddbSeedPolicy:PolicyStatement
Defined in: constructs/microservice.ts:109
Inherited from¶
Methods¶
configureEKSService()¶
configureEKSService():
void
Defined in: constructs/ecs-service.ts:141
Returns¶
void
Inherited from¶
EcsService.configureEKSService
configureECSService()¶
configureECSService(
properties):object
Defined in: constructs/ecs-service.ts:145
Parameters¶
properties¶
Returns¶
object
taskDefinition¶
taskDefinition:
Ec2TaskDefinition|FargateTaskDefinition
loadBalancedService¶
loadBalancedService:
ApplicationLoadBalancedServiceBase|undefined
service¶
service:
BaseService|undefined
container¶
container:
ContainerDefinition
taskRole¶
taskRole:
Role
Inherited from¶
EcsService.configureECSService
getDefaultEventBridgePolicy()¶
staticgetDefaultEventBridgePolicy(scope):PolicyStatement
Defined in: constructs/microservice.ts:115
Parameters¶
scope¶
Construct
Returns¶
PolicyStatement
Inherited from¶
EcsService.getDefaultEventBridgePolicy
getDefaultSSMPolicy()¶
staticgetDefaultSSMPolicy(scope,prefix?):PolicyStatement
Defined in: constructs/microservice.ts:124
Parameters¶
scope¶
Construct
prefix?¶
string
Returns¶
PolicyStatement
Inherited from¶
EcsService.getDefaultSSMPolicy
addPermissions()¶
addPermissions(
properties):void
Defined in: microservices/petlist-adoptions.ts:132
Parameters¶
properties¶
ListAdoptionsServiceProperties
Returns¶
void
Overrides¶
createOutputs()¶
createOutputs(
properties):void
Defined in: microservices/petlist-adoptions.ts:180
Parameters¶
properties¶
ListAdoptionsServiceProperties
Returns¶
void