File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,3 +48,18 @@ CREATE TABLE IF NOT EXISTS `zstack`.`ExternalServiceConfigurationVO` (
4848UPDATE VolumeSnapshotVO AS sp, PrimaryStorageVO AS ps
4949SET sp .primaryStorageInstallPath = REPLACE(sp .primaryStorageInstallPath , ' /dev/' , ' sharedblock://' )
5050WHERE sp .primaryStorageUuid = ps .uuid AND ps .type = ' SharedBlock' AND sp .volumeType = ' Memory' AND sp .primaryStorageInstallPath LIKE ' /dev/%' ;
51+
52+ UPDATE ` zstack` .` ActiveAlarmTemplateVO`
53+ SET ` metricName` = ' CPUUsedUtilization'
54+ WHERE ` uuid` = ' c9e6cdca107140bea62b4ca919ff9e88'
55+ AND ` metricName` = ' VRouterCPUAverageUsedUtilization' ;
56+
57+ UPDATE ` zstack` .` AlarmVO`
58+ SET ` metricName` = ' CPUUsedUtilization'
59+ WHERE ` uuid` IN (
60+ SELECT ` alarmUuid` FROM ` zstack` .` ActiveAlarmVO`
61+ WHERE ` templateUuid` = ' c9e6cdca107140bea62b4ca919ff9e88'
62+ )
63+ AND ` metricName` = ' VRouterCPUAverageUsedUtilization' ;
64+
65+
You can’t perform that action at this time.
0 commit comments