ResourceUsageAggregation
No description
type ResourceUsageAggregation implements Node {
id: ID!
deletedAt: Time
resourceType: ResourceUsageAggregationResourceType!
resourceID: ID!
ownerID: String!
runnerID: ID
granularity: ResourceUsageAggregationAggregationGranularity!
bucketStart: Time!
bucketEnd: Time!
cpuCoreSeconds: Float!
cpuAvgPercent: Float!
cpuMaxPercent: Float!
memoryGBSeconds: Float!
memoryAvgBytes: Int!
memoryMaxBytes: Int!
networkRxBytes: Int!
networkTxBytes: Int!
blockReadBytes: Int!
blockWriteBytes: Int!
sampleCount: Int!
createdAt: Time!
runner: BotRunner
}
Fields
ResourceUsageAggregation.id ● ID! non-null scalar
ResourceUsageAggregation.deletedAt ● Time scalar
Soft-delete timestamp. If set, record is considered deleted.
ResourceUsageAggregation.resourceType ● ResourceUsageAggregationResourceType! non-null enum
Type of resource: bot or backtest
ResourceUsageAggregation.resourceID ● ID! non-null scalar
ID of the bot or backtest
ResourceUsageAggregation.ownerID ● String! non-null scalar
Organization ID for billing
ResourceUsageAggregation.runnerID ● ID scalar
Runner ID for rate lookup (nullable: preserved after runner purge per ADR-0041)
ResourceUsageAggregation.granularity ● ResourceUsageAggregationAggregationGranularity! non-null enum
Aggregation level: hourly or daily
ResourceUsageAggregation.bucketStart ● Time! non-null scalar
Start of the time bucket
ResourceUsageAggregation.bucketEnd ● Time! non-null scalar
End of the time bucket
ResourceUsageAggregation.cpuCoreSeconds ● Float! non-null scalar
Total CPU consumption in core-seconds
ResourceUsageAggregation.cpuAvgPercent ● Float! non-null scalar
Average CPU percentage during bucket
ResourceUsageAggregation.cpuMaxPercent ● Float! non-null scalar
Maximum CPU percentage during bucket
ResourceUsageAggregation.memoryGBSeconds ● Float! non-null scalar
Total memory consumption in GB-seconds
ResourceUsageAggregation.memoryAvgBytes ● Int! non-null scalar
Average memory usage in bytes
ResourceUsageAggregation.memoryMaxBytes ● Int! non-null scalar
Maximum memory usage in bytes
ResourceUsageAggregation.networkRxBytes ● Int! non-null scalar
Total network bytes received
ResourceUsageAggregation.networkTxBytes ● Int! non-null scalar
Total network bytes transmitted
ResourceUsageAggregation.blockReadBytes ● Int! non-null scalar
Total disk bytes read
ResourceUsageAggregation.blockWriteBytes ● Int! non-null scalar
Total disk bytes written
ResourceUsageAggregation.sampleCount ● Int! non-null scalar
Number of samples in this aggregation
ResourceUsageAggregation.createdAt ● Time! non-null scalar
ResourceUsageAggregation.runner ● BotRunner object
Interfaces
Node interface
An object with an ID. Follows the Relay Global Object Identification Specification
Returned By
botUsageHistory query ● organizationUsage query ● resourceUsageAggregations query