Service Control Report

The servicecontrolreport template is used by the Google Service Control adapter.

Example config:

apiVersion: "config.istio.io/v1alpha2"
kind: servicecontrolreport
metadata:
  name: report
  namespace: istio-system
spec:
  api_version : api.version | ""
  api_operation : api.operation | ""
  api_protocol : api.protocol | ""
  api_service : api.service | ""
  api_key : api.key | ""
  request_time : request.time
  request_method : request.method
  request_path : request.path
  request_bytes: request.size
  response_time : response.time
  response_code : response.code | 520
  response_bytes : response.size | 0
  response_latency : response.duration | "0ms"

Template

A template used by Google Service Control (servicecontrol) adapter. The adapter generates metrics and logentry for each request based on the data point defined by this template.

FieldTypeDescription
apiVersionstring
apiOperationstring
apiProtocolstring
apiServicestring
apiKeystring
requestTimeistio.mixer.adapter.model.v1beta1.TimeStamp
requestMethodstring
requestPathstring
requestBytesint64
responseTimeistio.mixer.adapter.model.v1beta1.TimeStamp
responseCodeint64
responseBytesint64
responseLatencyistio.mixer.adapter.model.v1beta1.Duration

istio.mixer.adapter.model.v1beta1.Duration

Duration is used inside templates for fields that are of ValueType “DURATION”

FieldTypeDescription
valuegoogle.protobuf.Duration

Duration encoded as google.protobuf.Duration.

istio.mixer.adapter.model.v1beta1.TimeStamp

TimeStamp is used inside templates for fields that are of ValueType “TIMESTAMP”

FieldTypeDescription
valuegoogle.protobuf.Timestamp

TimeStamp encoded as google.protobuf.Timestamp.