From 14b0e098244e7ee4f4120ede3c5dfdc6ff1d9411 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 30 Sep 2026 18:31:34 +0200 Subject: [PATCH] feat: added service endpoints for runtime usage --- README.md | 2 +- .../sagittarius_gateway.runtime_usage.proto | 21 +++++++++++++++++++ .../sagittarius_rails.runtime_usage.proto | 21 +++++++++++++++++++ proto/shared/shared.runtime_usage.proto | 10 +++++++++ 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 proto/sagittarius_gateway/sagittarius_gateway.runtime_usage.proto create mode 100644 proto/sagittarius_rails/sagittarius_rails.runtime_usage.proto create mode 100644 proto/shared/shared.runtime_usage.proto diff --git a/README.md b/README.md index 8d66f3f..d20d0ba 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ services that Aquila must implement as a server. │ ├── module - Module service to receive datatypes, functions and flow types from aquila │ ├── runtime_status - Service for runtime status (handles information about Draco and Taurus) │ ├── runtime_usage - Service for runtime usage (handles execution time of a flow) -│ └── test_execution - Service and Types for the test execution├── sagittarius +│ └── test_execution - Service and Types for the test execution ├── sagittarius_rails │ ├── flow - Flow service (handles flow updates) │ ├── module - Module service to receive datatypes, functions and flow types from aquila diff --git a/proto/sagittarius_gateway/sagittarius_gateway.runtime_usage.proto b/proto/sagittarius_gateway/sagittarius_gateway.runtime_usage.proto new file mode 100644 index 0000000..011bffc --- /dev/null +++ b/proto/sagittarius_gateway/sagittarius_gateway.runtime_usage.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +package sagittarius_gateway; + +import "shared.errors.proto"; +import "shared.runtime_usage.proto"; + +option ruby_package = "Tucana::Sagittarius::Gateway"; + +message RuntimeUsageRequest { + repeated shared.RuntimeUsage runtime_usage = 1; +} + +message RuntimeUsageResponse { + bool success = 1; + optional shared.ServiceError error = 2; +} + +service RuntimeUsageService { + rpc Update(RuntimeUsageRequest) returns (RuntimeUsageResponse) {} +} diff --git a/proto/sagittarius_rails/sagittarius_rails.runtime_usage.proto b/proto/sagittarius_rails/sagittarius_rails.runtime_usage.proto new file mode 100644 index 0000000..293f010 --- /dev/null +++ b/proto/sagittarius_rails/sagittarius_rails.runtime_usage.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +package sagittarius_rails; + +import "shared.errors.proto"; +import "shared.runtime_usage.proto"; + +option ruby_package = "Tucana::Sagittarius::Rails"; + +message RuntimeUsageRequest { + repeated shared.RuntimeUsage runtime_usage = 1; +} + +message RuntimeUsageResponse { + bool success = 1; + optional shared.ServiceError error = 2; +} + +service RuntimeUsageService { + rpc Update(RuntimeUsageRequest) returns (RuntimeUsageResponse) {} +} diff --git a/proto/shared/shared.runtime_usage.proto b/proto/shared/shared.runtime_usage.proto new file mode 100644 index 0000000..441a216 --- /dev/null +++ b/proto/shared/shared.runtime_usage.proto @@ -0,0 +1,10 @@ +syntax = "proto3"; + +package shared; + +option ruby_package = "Tucana::Shared"; + +message RuntimeUsage { + int64 flow_id = 1; + int64 duration = 2; +}