--- title: Service Control Report overview: A template used by the Google Service Control adapter. location: https://istio.io/docs/reference/config/template/servicecontrolreport.html layout: protoc-gen-docs number_of_entries: 3 ---

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

## 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.

Config example:

    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"

Field | Type | Description
--- | --- | ---
`apiVersion` | `string` |
`apiOperation` | `string` |
`apiProtocol` | `string` |
`apiService` | `string` |
`apiKey` | `string` |
`requestTime` | `istio.mixer.adapter.model.v1beta1.TimeStamp` |
`requestMethod` | `string` |
`requestPath` | `string` |
`requestBytes` | `int64` |
`responseTime` | `istio.mixer.adapter.model.v1beta1.TimeStamp` |
`responseCode` | `int64` |
`responseBytes` | `int64` |
`responseLatency` | `istio.mixer.adapter.model.v1beta1.Duration` |

## istio.mixer.adapter.model.v1beta1.Duration

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

Field | Type | Description
--- | --- | ---
`value` | `google.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”

Field | Type | Description
--- | --- | ---
`value` | `google.protobuf.Timestamp` | TimeStamp encoded as google.protobuf.Timestamp.