ReportHeader

mdg.engine.proto.reports.ReportHeader
See theReportHeader companion object
final case class ReportHeader(hostname: String, agentVersion: String, serviceVersion: String, runtimeVersion: String, uname: String, schemaTag: String, executableSchemaId: String, unknownFields: UnknownFieldSet) extends GeneratedMessage, 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 parameters

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"

Attributes

Companion
object
Graph
Supertypes
trait Updatable[ReportHeader]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getField(`__field`: FieldDescriptor): PValue
def getFieldByNumber(`__fieldNumber`: Int): Any
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

def withAgentVersion(`__v`: String): ReportHeader
def withExecutableSchemaId(`__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

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

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

Attributes

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

Attributes

Inherited from:
GeneratedMessage
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
def update(ms: Lens[ReportHeader, ReportHeader] => () => ReportHeader*): A

Attributes

Inherited from:
Updatable
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

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

Attributes

Inherited from:
GeneratedMessage