Calling it a DSL is maybe bit of a stretch, its just creating a concise abstraction above the provided API.
So instead of having 20 lines of code for every alert policy like at https://www.pulumi.com/registry/packages/gcp/api-docs/monito... you create a function that generates all the standardised alerts from concise strongly typed config such as
cloudSqlAlerts({
instanceId: 'sql-main',
highCpu: {
percent: 70,
duration: _5min
},
highMemory: {
percent: 80,
duration: _5min
},
highDisk: {
percent: 80,
duration: _10min
},
deadlockDetection: true
},
projectNotificationChannels)