ReportHeader

@SerialVersionUID(0L) final case
class ReportHeader(hostname: String, agentVersion: String, serviceVersion: String, runtimeVersion: String, uname: String, schemaTag: String, executableSchemaId: String, unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[ReportHeader]

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.

Value Params
agentVersion

eg "engineproxy 0.1.0" required

executableSchemaId

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.

hostname

eg "host-01.example.com"

runtimeVersion

eg "node v4.6.0"

schemaTag

eg "current", "prod"

serviceVersion

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

uname

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

Companion
object
trait Updatable[ReportHeader]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def getField(`__field`: FieldDescriptor): PValue
def getFieldByNumber(`__fieldNumber`: Int): Any
override
Definition Classes
GeneratedMessage
def toProtoString: String
def withAgentVersion(`__v`: String): ReportHeader
def withHostname(`__v`: String): ReportHeader
def withRuntimeVersion(`__v`: String): ReportHeader
def withSchemaTag(`__v`: String): ReportHeader
def withServiceVersion(`__v`: String): ReportHeader
def withUname(`__v`: String): ReportHeader
def withUnknownFields(`__v`: UnknownFieldSet): ReportHeader
def writeTo(`_output__`: CodedOutputStream): Unit

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final
def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Inherited from
GeneratedMessage
final
def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Inherited from
GeneratedMessage
final
def toPMessage: PMessage
Inherited from
GeneratedMessage
Inherited from
Updatable
final
def writeDelimitedTo(output: OutputStream): Unit
Inherited from
GeneratedMessage
final
def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Inherited from
GeneratedMessage