added repo
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
@Library('devops-lib@alert-setup') _
|
||||
|
||||
properties([
|
||||
parameters([
|
||||
string(defaultValue: '', name: 'app_repo_name', description: 'Repository name of the application. Example: supplier-payment, ads-credit etc', trim: true),
|
||||
string(defaultValue: 'main', name: 'app_repo_branch_name', description: 'Branch name of above provided repo. Example: master, develop', trim: true),
|
||||
string(defaultValue: '', name: 'service', description: 'K8s Service/app name. Example: supplier-payment-web, ads-credit ', trim: true),
|
||||
choice(name: 'ingress', choices:'contour\nnginx', description: 'Type of ingress controller'),
|
||||
choice(choices: ['critical', 'warning'], description: 'NOTE: This is required', name: 'severity'),
|
||||
string(defaultValue: '', name: 'alert_4xx_value', description: 'Threshold value of 4XX Error Count Rate for alerting. Example: 100, 200, 0.75 etc', trim: true),
|
||||
string(defaultValue: '', name: 'alert_5xx_value', description: 'Threshold value of 5XX Error Count Rate for alerting. Example: 100, 200, 0.75 etc', trim: true),
|
||||
string(defaultValue: '', name: 'alert_p99_value', description: 'Threshold value of P99 Latency in MILI SECONDS for alerting. \n NOTE: Unit = MILI SECONDS', trim: true),
|
||||
choice(choices: ['1m', '2m', '3m','5m', '10m'], description: 'NOTE: This is required. Default - 1m', name: 'alert_4xx_period'),
|
||||
choice(choices: ['1m', '2m', '3m','5m', '10m'], description: 'NOTE: This is required. Default - 1m', name: 'alert_5xx_period'),
|
||||
choice(choices: ['1m', '2m', '3m','5m', '10m'], description: 'NOTE: This is required. Default - 1m', name: 'alert_p99_period')
|
||||
])
|
||||
])
|
||||
|
||||
createAlerts(params)
|
||||
Reference in New Issue
Block a user