From 585fcb0420e40cae99426cc8fa660ac9add84463 Mon Sep 17 00:00:00 2001 From: jcj Date: Tue, 5 Aug 2025 15:02:55 +0900 Subject: [PATCH] feat: add remove_cache and preload_cache RPCs to DataSourceService for cache management Signed-off-by: jcj --- .../api/cost_analysis/v1/data_source.proto | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/proto/spaceone/api/cost_analysis/v1/data_source.proto b/proto/spaceone/api/cost_analysis/v1/data_source.proto index e3cb7736a..8377bca75 100644 --- a/proto/spaceone/api/cost_analysis/v1/data_source.proto +++ b/proto/spaceone/api/cost_analysis/v1/data_source.proto @@ -76,6 +76,22 @@ service DataSource { }; } + // Removes cached data related to the specified DataSource. Useful for clearing outdated or unnecessary cache. + rpc remove_cache (DataSourceRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/cost-analysis/v1/data-source/remove-cache" + body: "*" + }; + } + + // Preloads cache for the specified DataSource. Initiates pre-caching to improve data access performance. + rpc preload_cache (DataSourceRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/cost-analysis/v1/data-source/preload-cache" + body: "*" + }; + } + // Gets a specific DataSource. Prints detailed information about the DataSource, including `name`, `plugin_info`, and `schedule`. rpc get (DataSourceRequest) returns (DataSourceInfo) { option (google.api.http) = {