cloudstack/ui/src/views/compute
Abhishek Kumar 92931aeeb8
schema,server,api: events improvement (#127)
Add resource ID and resource type to event.
In UI, adds Events tab in resource view for the supporting resources.

Following SQL changes needed to support events with resource details in DB,
```
 -- Alter event table to add resource_id and resource_type
ALTER TABLE `cloud`.`event`
    ADD COLUMN `resource_id` bigint unsigned COMMENT 'ID of the resource associated with the even' AFTER `domain_id`,
    ADD COLUMN `resource_type` varchar(32) COMMENT 'Account role in the project (Owner or Regular)' AFTER `resource_id`;

DROP VIEW IF EXISTS `cloud`.`event_view`;
CREATE VIEW `cloud`.`event_view` AS
    SELECT
        event.id,
        event.uuid,
        event.type,
        event.state,
        event.description,
        event.resource_id,
        event.resource_type,
        event.created,
        event.level,
        event.parameters,
        event.start_id,
        eve.uuid start_uuid,
        event.user_id,
        event.archived,
        event.display,
        user.username user_name,
        account.id account_id,
        account.uuid account_uuid,
        account.account_name account_name,
        account.type account_type,
        domain.id domain_id,
        domain.uuid domain_uuid,
        domain.name domain_name,
        domain.path domain_path,
        projects.id project_id,
        projects.uuid project_uuid,
        projects.name project_name
    FROM
        `cloud`.`event`
            INNER JOIN
        `cloud`.`account` ON event.account_id = account.id
            INNER JOIN
        `cloud`.`domain` ON event.domain_id = domain.id
            INNER JOIN
        `cloud`.`user` ON event.user_id = user.id
            LEFT JOIN
        `cloud`.`projects` ON projects.project_account_id = event.account_id
            LEFT JOIN
        `cloud`.`event` eve ON event.start_id = eve.id;
```
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-05-05 13:44:33 +05:30
..
backup ui: refactoring $notification according to the old version (#5819) 2022-01-03 20:59:49 +05:30
wizard UI - Deploy VM with params from the template, iso, network pages (#5653) 2022-01-13 16:59:41 +05:30
AssignInstance.vue ui: refactoring $notification according to the old version (#5819) 2022-01-03 20:59:49 +05:30
AttachIso.vue UI: Autoscroll to Error Field (#5200) 2021-11-18 14:01:22 +05:30
BackupScheduleWizard.vue ui: Moves fetchdata() to the created() (#4811) 2021-04-05 14:28:00 +05:30
ChangeAffinity.vue ui: refactoring $notification according to the old version (#5819) 2022-01-03 20:59:49 +05:30
CreateKubernetesCluster.vue CKS Enhancements and SystemVM template upgrade improvements (#5863) 2022-02-15 18:27:14 +05:30
CreateSSHKeyPair.vue ui: refactoring $notification according to the old version (#5819) 2022-01-03 20:59:49 +05:30
CreateSnapshotWizard.vue ui: refactoring $notification according to the old version (#5819) 2022-01-03 20:59:49 +05:30
DeployVM.vue ui: fix select networks for template nic (#5933) 2022-02-07 16:30:40 +05:30
DestroyVM.vue UI - Added option to allow users to select volumes when doing destroy the list of VMs (#5893) 2022-01-27 11:09:48 +05:30
EditVM.vue ui: update vm haenable only for supported vms (#5847) 2022-01-11 14:55:11 +05:30
InstanceTab.vue schema,server,api: events improvement (#127) 2022-05-05 13:44:33 +05:30
KubernetesServiceTab.vue CKS Enhancements and SystemVM template upgrade improvements (#5863) 2022-02-15 18:27:14 +05:30
MigrateVMStorage.vue UI: Autoscroll to Error Field (#5200) 2021-11-18 14:01:22 +05:30
MigrateWizard.vue ui: refactoring $notification according to the old version (#5819) 2022-01-03 20:59:49 +05:30
ScaleKubernetesCluster.vue UI: Autoscroll to Error Field (#5200) 2021-11-18 14:01:22 +05:30
ScaleVM.vue ui: refactoring $notification according to the old version (#5819) 2022-01-03 20:59:49 +05:30
StartVirtualMachine.vue ui: refactoring $notification according to the old version (#5819) 2022-01-03 20:59:49 +05:30
UpgradeKubernetesCluster.vue UI: Autoscroll to Error Field (#5200) 2021-11-18 14:01:22 +05:30