ReportHeader

class ReportHeader(    val graph_ref: String = "",     val hostname: String = "",     val agent_version: String = "",     val service_version: String = "",     val runtime_version: String = "",     val uname: String = "",     val executable_schema_id: String = "",     unknownFields: ByteString = ByteString.EMPTY) : Message<ReportHeader, Nothing>

The service value embedded within the header key is not guaranteed to contain an actual service, and, in most cases, the service information is trusted to come from upstream processing. If the service is specified in this header, then it is checked to match the context that is reporting it. Otherwise, the service information is deduced from the token context of the reporter and then sent along via other mechanisms (in Kafka, the `ReportKafkaKey). The other information (hostname, agent_version, etc.) is sent by the Apollo Engine Reporting agent, but we do not currently save that information to any of our persistent storage.

Constructors

Link copied to clipboard
constructor(    graph_ref: String = "",     hostname: String = "",     agent_version: String = "",     service_version: String = "",     runtime_version: String = "",     uname: String = "",     executable_schema_id: String = "",     unknownFields: ByteString = ByteString.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

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

eg "engineproxy 0.1.0" required

Link copied to clipboard

An id that is used to represent the schema to Apollo Graph Manager Using this in place of what used to be schema_hash, since that is no longer attached to a schema in the backend.

Link copied to clipboard

eg "mygraph@myvariant"

Link copied to clipboard

eg "host-01.example.com"

Link copied to clipboard

eg "node v4.6.0"

Link copied to clipboard

eg "prod-4279-20160804T065423Z-5-g3cf0aa8" (taken from git describe --tags)

Link copied to clipboard

eg "Linux box 4.6.5-1-ec2 #1 SMP Mon Aug 1 02:31:38 PDT 2016 x86_64 GNU/Linux"

Link copied to clipboard
val unknownFields: ByteString

Functions

Link copied to clipboard
fun copy(    graph_ref: String = this.graph_ref,     hostname: String = this.hostname,     agent_version: String = this.agent_version,     service_version: String = this.service_version,     runtime_version: String = this.runtime_version,     uname: String = this.uname,     executable_schema_id: String = this.executable_schema_id,     unknownFields: ByteString = this.unknownFields): ReportHeader
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