Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staus Page Component #1449

Merged
merged 26 commits into from
Jan 30, 2024
Merged

Staus Page Component #1449

merged 26 commits into from
Jan 30, 2024

Conversation

tomsun28
Copy link
Contributor

What's changed?

  • status page sql design
-- ----------------------------
-- Table structure for hzb_status_page_org
-- ----------------------------
DROP TABLE IF EXISTS  hzb_status_page_org ;
CREATE TABLE  hzb_status_page_org
(
    id           bigint           not null auto_increment comment 'ID',
    name         varchar(255)     not null comment 'org name',
    desc         varchar(255)     comment 'org description',
    home         varchar(255)     not null comment 'org home link',
    logo         longtext         comment 'org logo pic, only support svg format',
    creator      varchar(100)     comment 'creator',
    modifier     varchar(100)     comment 'modifier',
    gmt_create   timestamp        default current_timestamp comment 'create time',
    gmt_update   datetime         default current_timestamp on update current_timestamp comment 'update time',
    primary key (id),
    unique key (component)
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Table structure for hzb_status_page_config
-- ----------------------------
DROP TABLE IF EXISTS  hzb_status_page_config ;
CREATE TABLE  hzb_status_page_config
(
    id             bigint           not null auto_increment comment 'ID',
    org_id         bigint           not null comment 'org id',
    component      varchar(255)     not null comment 'component name',
    desc           varchar(255)     comment 'component description',
    tag            varchar(255)     not null comment 'match tag{labelName:labelValue}',
    method         tinyint          not null default 0 comment 'calculate status method: 0-auto 1-manual',
    config_state   tinyint          comment 'config state when use auto method: 0-Normal 1-Abnormal 2-Suspended',
    current_state  tinyint          comment 'component current state: 0-Normal 1-Abnormal 2-Suspended',
    creator        varchar(100)     comment 'creator',
    modifier       varchar(100)     comment 'modifier',
    gmt_create     timestamp        default current_timestamp comment 'create time',
    gmt_update     datetime         default current_timestamp on update current_timestamp comment 'update time',
    primary key (id)
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;

-- ----------------------------
-- Table structure for hzb_status_page_history
-- ----------------------------
DROP TABLE IF EXISTS  hzb_status_page_history ;
CREATE TABLE  hzb_status_page_history
(
    id           bigint           not null auto_increment comment 'ID',
    component_id bigint           not null comment 'component id',
    state        tinyint          not null comment 'component state: 0-Normal 1-Abnormal 2-Suspended',
    timestamp    bigint           not null comment 'state calculate timestamp',
    creator      varchar(100)     comment 'creator',
    modifier     varchar(100)     comment 'modifier',
    gmt_create   timestamp        default current_timestamp comment 'create time',
    gmt_update   datetime         default current_timestamp on update current_timestamp comment 'update time',
    primary key (id)
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;

Checklist

  • I hereby agree to the terms of the HertzBeat CLA
  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Add or update API

  • I have added the necessary e2e tests and all cases have passed.

Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
@tomsun28 tomsun28 added enhancement New feature or request new feature labels Dec 27, 2023
Signed-off-by: tomsun28 <tomsun28@outlook.com>
@tomsun28
Copy link
Contributor Author

image

@hertzbeat
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


image

@tomsun28
Copy link
Contributor Author

@hertzbeat
Copy link
Contributor

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


https://discordstatus.com/#

Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
@tomsun28
Copy link
Contributor Author

image

Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
@tomsun28
Copy link
Contributor Author

14641706533983_ pic

@apache apache deleted a comment from hertzbeat Jan 29, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
@tomsun28 tomsun28 added this to the 1.4.5 milestone Jan 29, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
@tomsun28
Copy link
Contributor Author

image image

done! please help review and merge. @zqr10159

@zqr10159
Copy link
Member

OK.let me see

Copy link
Member

@zqr10159 zqr10159 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zqr10159 zqr10159 merged commit 59c9cf3 into master Jan 30, 2024
2 checks passed
tomsun28 added a commit that referenced this pull request Mar 9, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
tomsun28 added a commit that referenced this pull request Mar 9, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
tomsun28 added a commit that referenced this pull request Mar 9, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
tomsun28 added a commit that referenced this pull request Mar 10, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
tomsun28 added a commit that referenced this pull request Mar 10, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
tomsun28 added a commit that referenced this pull request Mar 11, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
tomsun28 added a commit that referenced this pull request Mar 11, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
tomsun28 added a commit that referenced this pull request Mar 11, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
tomsun28 added a commit that referenced this pull request Mar 11, 2024
Signed-off-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
@tomsun28 tomsun28 deleted the status-page branch March 11, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants