Skip to content

Commit 306242a

Browse files
joyvuu-daveclaude
andcommitted
Add WAS_RUNNING state constants to usage event repositories
WAS_RUNNING is a synthetic state used by an upcoming one-time data migration to mark currently-running processes and existing service instances as a baseline for billing consumers. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e856927 commit 306242a

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

app/repositories/app_usage_event_repository.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
module VCAP::CloudController
55
module Repositories
66
class AppUsageEventRepository
7+
WAS_RUNNING_STATE = 'WAS_RUNNING'.freeze
8+
79
def find(guid)
810
AppUsageEvent.find(guid:)
911
end

app/repositories/service_usage_event_repository.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class ServiceUsageEventRepository
77
DELETED_EVENT_STATE = 'DELETED'.freeze
88
CREATED_EVENT_STATE = 'CREATED'.freeze
99
UPDATED_EVENT_STATE = 'UPDATED'.freeze
10+
WAS_RUNNING_EVENT_STATE = 'WAS_RUNNING'.freeze
1011

1112
def find(guid)
1213
ServiceUsageEvent.find(guid:)

0 commit comments

Comments
 (0)