ResourceMetrics

case
class ResourceMetrics(name: String, costPerTick: Double, idleUpdate: Long, busyTime: Long, idleTime: Long, tasks: Int, cost: Double)

Metrics for at TaskResource.

Value Params
busyTime

the total amount of virtual time that the TaskResource has been busy, i.e. attached to a TaskInstance

cost

the total cost associated with this TaskResource

idleTime

the total amount of virtual time that the TaskResource has been idle, i.e. not attached to any TaskInstance

name

the unique name of the TaskResource

tasks

the number of different TaskInstances that have been attached to this TaskResource

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def idle(t: Long): ResourceMetrics

Adds some idle time to the total.

Adds some idle time to the total.

def task(t: Long, task: TaskInstance): ResourceMetrics

Updates the metrics given a new TaskInstance has been attached to the TaskResource.

Updates the metrics given a new TaskInstance has been attached to the TaskResource.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product