FieldStat

class FieldStat(    val return_type: String = "",     val errors_count: Long = 0,     val observed_execution_count: Long = 0,     val estimated_execution_count: Long = 0,     val requests_with_errors_count: Long = 0,     latency_count: List<Long> = emptyList(),     unknownFields: ByteString = ByteString.EMPTY) : Message<FieldStat, Nothing>

Constructors

Link copied to clipboard
constructor(return_type: String = "", errors_count: Long = 0, observed_execution_count: Long = 0, estimated_execution_count: Long = 0, requests_with_errors_count: Long = 0, latency_count: List<Long> = emptyList(), unknownFields: ByteString = ByteString.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val adapter: ProtoAdapter<FieldStat>
Link copied to clipboard

Number of errors whose path is this field. Note that we assume that error tracking does not require field-level instrumentation so this will include errors from requests that don't contribute to the observed_execution_count field (and does not need to be scaled by field_execution_weight).

Link copied to clipboard

Same as count but potentially scaled upwards if the server was only performing field-level instrumentation on a sampling of operations. For example, if the server randomly instruments 1% of requests for this operation, this number will be 100 times greater than observed_execution_count. (When aggregating a Trace into FieldStats, this number goes up by the trace's field_execution_weight for each observed field execution, while observed_execution_count above goes up by 1.)

Link copied to clipboard

Duration histogram for the latency of this field. Note that it is scaled in the same way as estimated_execution_count so its "total count" might be greater than observed_execution_count and may not exactly equal estimated_execution_count due to rounding.

Link copied to clipboard

Number of times that the resolver for this field is directly observed being executed.

Link copied to clipboard

Number of times the resolver for this field is executed that resulted in at least one error. "Request" is a misnomer here as this corresponds to resolver calls, not overall operations. Like errors_count above, this includes all requests rather than just requests with field-level instrumentation.

Link copied to clipboard

required; eg "String!" for User.email:String!

Link copied to clipboard
val unknownFields: ByteString

Functions

Link copied to clipboard
fun copy(    return_type: String = this.return_type,     errors_count: Long = this.errors_count,     observed_execution_count: Long = this.observed_execution_count,     estimated_execution_count: Long = this.estimated_execution_count,     requests_with_errors_count: Long = this.requests_with_errors_count,     latency_count: List<Long> = this.latency_count,     unknownFields: ByteString = this.unknownFields): FieldStat
Link copied to clipboard
fun encode(sink: BufferedSink)
Link copied to clipboard
fun encodeByteString(): ByteString
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String