Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
check-latest: true
- name: Install Protoc
uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Meant to address the build failure because of api rate limits here: https://github.com/temporalio/cloud-api/actions/runs/19523644024

- name: Validate and build go bindings from the proto files
run: make ci-build
env:
Expand Down
27 changes: 15 additions & 12 deletions temporal/api/cloud/namespace/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -95,40 +95,41 @@ message HighAvailabilitySpec {
// temporal:versioning:min_version=v0.10.0
message CapacitySpec {
oneof spec {
// on-demand capacity (dynamic-envelope)
// The on-demand capacity mode configuration.
OnDemand on_demand = 1;
// provisioned capacity
// The provisioned capacity mode configuration.
Provisioned provisioned = 2;
}

message OnDemand {
}

message Provisioned {
// the unit of the provisioned capacity (Temporal Resource Units)
// The units of provisioned capacity in TRU (Temporal Resource Units).
// Each TRU unit assigned to the namespace will entitle it with additional APS limits as specified in the documentation.
double value = 1;
}
}

message Capacity {

oneof current_mode {
// the current capacity is on-demand
// The status of on-demand capacity mode.
OnDemand on_demand = 1;
// the current capacity is provisioned
// The status of provisioned capacity mode.
Provisioned provisioned = 2;
}

message OnDemand {
}

message Provisioned {
// the current unit of the provisioned capacity (Temporal Resource Units)
// The current provisioned capacity for the namespace in Temporal Resource Units.
// Can be different from the requested capacity in latest_request if the request is still in progress.
double current_value = 1;
}

message Request {
// the current state of the capacity request (e.g. in-progress, completed, failed)
// The current state of the capacity request (e.g. in-progress, completed, failed).
State state = 1;
// The date and time when the capacity request was created.
google.protobuf.Timestamp start_time = 2;
Expand All @@ -147,7 +148,7 @@ message Capacity {
}
}

// The latest capacity request, if any.
// The latest requested capacity for the namespace, if any.
Request latest_request = 3;
}

Expand Down Expand Up @@ -209,6 +210,10 @@ message NamespaceSpec {
repeated string connectivity_rule_ids = 11;

// The capacity configuration for the namespace.
// There are two capacity modes: on-demand and provisioned.
// On-demand capacity mode allows the namespace to scale automatically based on usage.
// Provisioned capacity mode allows the user to specify a fixed amount of capacity (in TRUs) for the namespace.
// Can be changed only when the last capacity request is not in progress.
// temporal:versioning:min_version=v0.10.0
CapacitySpec capacity_spec = 12;

Expand Down Expand Up @@ -292,11 +297,9 @@ message Namespace {
map<string, NamespaceRegionStatus> region_status = 12;
// The connectivity rules that are set on this namespace.
repeated temporal.api.cloud.connectivityrule.v1.ConnectivityRule connectivity_rules = 14;

// The tags for the namespace.
map<string, string> tags = 15;

// The capacity of the namespace.
// The status of namespace's capacity, if any.
Capacity capacity = 16;
}

Expand Down
Loading