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
122 changes: 97 additions & 25 deletions metering/go/identity.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 20 additions & 7 deletions metering/metering/v1/identity.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,39 @@
// Deployment product, e.g. "cre". One of the deployment+DON+node
// dimensions used for coarse billing rollup.
string product = 1;
// Deployment tenant, e.g. "mainline" or "enterprise" for "cre"
// Deployment tenant name, e.g. "mainline" or "enterprise". This is the
// human-readable tenant label (not the numeric tenant ID).
string tenant = 2;
// Numeric tenant identifier as used by Accounts/Linking/registry/Vault DON.
// This is a numbered identifier represented as a string.
string numeric_tenant_id = 3;

Check failure on line 20 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "3" on message "ResourceIdentity" changed name from "environment" to "numeric_tenant_id".

Check failure on line 20 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "3" with name "numeric_tenant_id" on message "ResourceIdentity" changed option "json_name" from "environment" to "numericTenantId".
// Deployment environment, e.g. "production", "staging". A coarse
// billing-rollup dimension.
string environment = 3;
string environment = 4;

Check failure on line 23 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "4" on message "ResourceIdentity" changed name from "zone" to "environment".

Check failure on line 23 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "4" with name "environment" on message "ResourceIdentity" changed option "json_name" from "zone" to "environment".
// Deployment zone, e.g. "wf-zone-a". A coarse billing-rollup dimension.
string zone = 4;
string zone = 5;

Check failure on line 25 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "5" on message "ResourceIdentity" changed name from "don_identifier" to "zone".

Check failure on line 25 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "5" with name "zone" on message "ResourceIdentity" changed type from "message" to "string".

Check failure on line 25 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "5" with name "zone" on message "ResourceIdentity" changed option "json_name" from "donIdentifier" to "zone".

Check failure on line 25 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "5" with name "zone" on message "ResourceIdentity" changed cardinality from "optional with explicit presence" to "optional with implicit presence".
// DON-specific identity dimensions. Present only for DON emitters. Web2 or
// other non-DON emitters leave this unset instead of sending empty IDs.
optional DonIdentifier don_identifier = 5;
optional DonIdentity don = 6;

Check failure on line 28 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "6" with name "don" on message "ResourceIdentity" changed option "json_name" from "service" to "don".

Check failure on line 28 in metering/metering/v1/identity.proto

View workflow job for this annotation

GitHub Actions / buf

Field "6" with name "don" on message "ResourceIdentity" changed cardinality from "optional with implicit presence" to "optional with explicit presence".
// Stable service constant identifying the emitting service (the old
// `entity`), e.g. "cron-trigger", "http-trigger", "evm-log-trigger",
// "workflow-syncer-v2". A coarse billing-rollup dimension.
string service = 6;
string service = 7;
// Resource pool the action applies to, e.g. "trigger_registrations",
// "log_filters", "workflow_storage". Human friendly name
string resource_pool = 7;
string resource_pool = 8;
// optionality to add a level of hierarchy within the resource_pool, or
// UID a resource_pool
string resource_pool_id = 8;
string resource_pool_id = 9;
}

// DonIdentity captures DON-only identity dimensions together so consumers can
// branch on message presence, not individual field permutations.
message DonIdentity {
// DON ID the emitting service belongs to.
string don_id = 1;
// Node ID (the node's logical name, not the CSA public key).
string node_id = 2;
}

// DonIdentifier captures DON-only identity dimensions together so consumers
Expand Down
Loading