@hiiretail/gcp-infra-cli 0.102.4 → 0.102.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,29 +77,12 @@ module.exports = class extends BaseGenerator {
77
77
  message: 'Please provide the project ID:',
78
78
  validate: required && validate.projectId,
79
79
  },
80
- {
81
- when: (response) => ['uptime-checks', 'alerts'].includes(response.monitoringResource),
82
- type: 'input',
83
- name: 'systemName',
84
- message: 'Please provide three-letter system name (ex: sre, pnp, iam...):',
85
- default: () => {
86
- const gitPath = path.resolve(process.cwd(), '.git');
87
- if (fs.existsSync(gitPath)) {
88
- const repoName = path.basename(process.cwd());
89
- const regex = /-([a-z]{3})-/i;
90
- const match = regex.exec(repoName);
91
- return match ? match[1] : '';
92
- }
93
- return '';
94
- },
95
- validate: required && validate.systemName,
96
- },
97
80
  {
98
81
  when: (response) => response.monitoringResource === 'uptime-checks',
99
82
  type: 'input',
100
83
  name: 'serviceName',
101
84
  message: 'Please provide the namespace where the service resides:',
102
- default: (response) => `${response.systemName}-service`,
85
+ default: (response) => `${response.clan}-service`,
103
86
  validate: required && validate.serviceName,
104
87
  },
105
88
  {
@@ -490,7 +490,7 @@ cloud_run:
490
490
  duration: 300s
491
491
  aggregations:
492
492
  - alignment_period: 60s
493
- per_series_aligner: ALIGN_SUM
493
+ per_series_aligner: ALIGN_MEAN
494
494
  cross_series_reducer: REDUCE_PERCENTILE_99
495
495
  group_by_fields:
496
496
  - resource.label.service_name
@@ -509,7 +509,7 @@ cloud_run:
509
509
  duration: 300s
510
510
  aggregations:
511
511
  - alignment_period: 60s
512
- per_series_aligner: ALIGN_SUM
512
+ per_series_aligner: ALIGN_MEAN
513
513
  cross_series_reducer: REDUCE_PERCENTILE_99
514
514
  group_by_fields:
515
515
  - resource.label.service_name
@@ -544,7 +544,7 @@ spanner:
544
544
  resource.type = "spanner_instance"
545
545
  metric.type = "spanner.googleapis.com/instance/cpu/utilization"
546
546
  resource.labels.project_id="<%-projectId%>"
547
- threshold_Value: 0.8
547
+ threshold_value: 0.8
548
548
  duration: 300s
549
549
  aggregations:
550
550
  - alignment_period: 60s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiiretail/gcp-infra-cli",
3
- "version": "0.102.4",
3
+ "version": "0.102.6",
4
4
  "description": "Infrastructure as code generator for GCP.",
5
5
  "main": "src/cli.js",
6
6
  "bin": {