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.policy.v1beta1.TimeStamp
requestMethodstring
requestPathstring
requestBytesint64
responseTimeistio.policy.v1beta1.TimeStamp
responseCodeint64
responseBytesint64
responseLatencyistio.policy.v1beta1.Duration

istio.policy.v1beta1.Duration

An instance field of type Duration denotes that the expression for the field must evalaute to ValueType.DURATION

Objects of type Duration are also passed to the adapters during request-time for the instance fields of type Duration

FieldTypeDescription
valuegoogle.protobuf.Duration

Duration encoded as google.protobuf.Duration.

istio.policy.v1beta1.TimeStamp

An instance field of type TimeStamp denotes that the expression for the field must evalaute to ValueType.TIMESTAMP

Objects of type TimeStamp are also passed to the adapters during request-time for the instance fields of type TimeStamp

FieldTypeDescription
valuegoogle.protobuf.Timestamp

TimeStamp encoded as google.protobuf.Timestamp.