cloudstack/test
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
..
bindirbak apply chip childers licensing patches for the test directory 2012-06-26 11:19:58 -04:00
conf Uniting all the READMEs from tools and test 2012-10-12 17:01:20 +05:30
integration schema,server,api: events improvement (#127) 2022-05-05 13:44:33 +05:30
metadata db: Cleanup obsolete tables (#5002) 2021-06-24 16:50:31 -03:00
scripts CLOUDSTACK-28 wget.exe (GPLed) is present in the tools directory as a binary 2012-09-24 10:31:47 -04:00
selenium CLOUDSTACK-6015: add user account, add user, login as new user, delete user, delete user account. 2014-03-28 06:21:59 -04:00
src-not-used/main/java/com/cloud api: Fix wrong logger class in *Cmd.java (#5740) 2021-12-02 15:16:28 +05:30
systemvm CLOUDSTACK-10168: VR duplicate entries in /etc/hosts when reusing VM name (#2366) 2017-12-20 23:19:12 +05:30
pom.xml Updating pom.xml version numbers for release 4.16.1.0 2022-02-25 19:01:16 +05:30