Skip to content
This repository was archived by the owner on Jun 23, 2022. It is now read-only.

feat(http): add HTTP interfaces to query backup info - #342

Merged
acelyc111 merged 124 commits into
XiaoMi:masterfrom
Smityz:http
Dec 12, 2019
Merged

acelyc111 merged 124 commits into
XiaoMi:masterfrom
Smityz:http

Conversation

@Smityz

@Smityz Smityz commented Nov 27, 2019 •

Copy link
Copy Markdown
Contributor

add http interface to get envs for a specified app.
The request url is:

ip:port/meta/backup_policy?name={policy name}

for example, assuming that the meta server address is 127.0.0.1:34601, to get all the policy we set before, the request is :

http://127.0.0.1:34601/meta/backup_policy

output json:

{
    "policy123123": {
      "name":"policy123123", 
      "backup_provider_type":"local_service",
      "backup_interval":"300",
      "app_ids":"{1}",
      "start_time":"16:00",
      "status":"enabled",
      "backup_history_count":"3"
    }
}

@Smityz
Smityz requested a review from neverchanje December 6, 2019 03:09
@neverchanje neverchanje added the component/http HTTP/RESTful support label Dec 10, 2019
@Smityz
Smityz requested a review from neverchanje December 10, 2019 06:22
Comment on lines +84 to +85
dsn::error_code ec = _ms->remote_storage_initialize();
_ms->_started = true;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

่ฟ™ไธค่กŒไปฃ็ ไธ้œ€่ฆ๏ผŒๅœจ meta_test_base::SetUp(); ๆ‰ง่กŒ่ฟ‡ไบ†

@Smityz
Smityz requested a review from neverchanje December 12, 2019 03:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

1.12.2 component/http HTTP/RESTful support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants