@purple/serverless-monitoring-plugin
Advanced tools
Comparing version 1.0.0 to 2.0.0
{ | ||
"name": "@purple/serverless-monitoring-plugin", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -7,2 +7,25 @@ 'use strict' | ||
const { configSchemaHandler } = this.serverless | ||
configSchemaHandler.defineCustomProperties.bind(configSchemaHandler)({ | ||
type: 'object', | ||
properties: { | ||
monitoring: { | ||
type: 'object', | ||
properties: { | ||
stages: { | ||
type: 'array', | ||
items: { | ||
type: 'string' | ||
} | ||
} | ||
}, | ||
required: ['stages'], | ||
additionalProperties: false | ||
} | ||
}, | ||
required: ['monitoring'], | ||
additionalProperties: false | ||
}) | ||
this.hooks = { | ||
@@ -31,3 +54,3 @@ 'after:aws:package:finalize:mergeCustomProviderResources': this.process.bind( | ||
const stages = ['master', 'staging', 'beta', 'develop20'] | ||
const { stages } = this.serverless.service.custom.monitoring | ||
@@ -34,0 +57,0 @@ // Prepares ordered template according to order of "reducers" |
18353
698