# RuntimeInfo

- [JSON representation](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#SCHEMA_REPRESENTATION)
- [UsageMetrics](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#UsageMetrics)
  - [JSON representation](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#UsageMetrics.SCHEMA_REPRESENTATION)
- [UsageSnapshot](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#UsageSnapshot)
  - [JSON representation](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#UsageSnapshot.SCHEMA_REPRESENTATION)
- [PropertiesInfo](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#PropertiesInfo)
  - [JSON representation](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#PropertiesInfo.SCHEMA_REPRESENTATION)
- [ValueInfo](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#ValueInfo)
  - [JSON representation](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#ValueInfo.SCHEMA_REPRESENTATION)
- [CohortInfo](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#CohortInfo)
  - [JSON representation](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#CohortInfo.SCHEMA_REPRESENTATION)
- [CohortSource](https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#CohortSource)

Runtime information about workload execution.

| JSON representation |
|---|
| ``` { "endpoints": { string: string, ... }, "outputUri": string, "diagnosticOutputUri": string, "approximateUsage": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#UsageMetrics`) }, "currentUsage": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#UsageSnapshot`) }, "propertiesInfo": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#PropertiesInfo`) }, "cohortInfo": { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#CohortInfo`) } } ``` |

| Fields ||
|---|---|
| `endpoints` | `map (key: string, value: string)` Output only. Map of remote access endpoints (such as web interfaces and APIs) to their URIs. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `outputUri` | `string` Output only. A URI pointing to the location of the stdout and stderr of the workload. |
| `diagnosticOutputUri` | `string` Output only. A URI pointing to the location of the diagnostics tarball. |
| `approximateUsage` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#UsageMetrics`)`` Output only. Approximate workload resource usage, calculated when the workload completes (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)). **Note:** This metric calculation may change in the future, for example, to capture cumulative workload resource consumption during workload execution (see the [Dataproc Serverless release notes](https://cloud.google.com/dataproc-serverless/docs/release-notes) for announcements, changes, fixes and other Dataproc developments). |
| `currentUsage` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#UsageSnapshot`)`` Output only. Snapshot of current workload resource usage. |
| `propertiesInfo` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#PropertiesInfo`)`` Optional. Properties of the workload organized by origin. |
| `cohortInfo` | ``object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#CohortInfo`)`` Output only. Information about the cohort that the workload belongs to. |

## UsageMetrics

Usage metrics represent approximate total resources consumed by a workload.

| JSON representation |
|---|
| ``` { "milliDcuSeconds": string, "shuffleStorageGbSeconds": string, "milliAcceleratorSeconds": string, "acceleratorType": string, "updateTime": string, "milliAcceleratorSecondsL4": string, "milliAcceleratorSecondsA10040": string, "milliAcceleratorSecondsA10080": string } ``` |

| Fields ||
|---|---|
| `milliDcuSeconds` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. DCU (Dataproc Compute Units) usage in (`milliDCU` x `seconds`) (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)). |
| `shuffleStorageGbSeconds` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Shuffle storage usage in (`GB` x `seconds`) (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)). |
| `milliAcceleratorSeconds` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Accelerator usage in (`milliAccelerator` x `seconds`) (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)). Deprecated: This field is only used in runtime versions below 3.0. |
| `acceleratorType` | `string` Optional. Accelerator type being used, if any Deprecated: This field is only used in runtime versions below 3.0. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Optional. The timestamp of the usage metrics. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `milliAcceleratorSecondsL4` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. L4 accelerator usage in (`milliAccelerator` x `seconds`) (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)). |
| `milliAcceleratorSecondsA10040` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. A100-40 accelerator usage in (`milliAccelerator` x `seconds`) (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)). |
| `milliAcceleratorSecondsA10080` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. A100-80 accelerator usage in (`milliAccelerator` x `seconds`) (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)). |

## UsageSnapshot

The usage snapshot represents the resources consumed by a workload at a specified time.

| JSON representation |
|---|
| ``` { "milliDcu": string, "shuffleStorageGb": string, "milliDcuPremium": string, "shuffleStorageGbPremium": string, "milliAccelerator": string, "acceleratorType": string, "snapshotTime": string, "milliAcceleratorL4": string, "milliAcceleratorA10040": string, "milliAcceleratorA10080": string } ``` |

| Fields ||
|---|---|
| `milliDcu` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)). |
| `shuffleStorageGb` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Shuffle Storage in gigabytes (GB). (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)) |
| `milliDcuPremium` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)). |
| `shuffleStorageGbPremium` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)) |
| `milliAccelerator` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Milli (one-thousandth) accelerator. (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)) Deprecated: This field is only used in runtime versions below 3.0. |
| `acceleratorType` | `string` Optional. Accelerator type being used, if any Deprecated: This field is only used in runtime versions below 3.0. |
| `snapshotTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Optional. The timestamp of the usage snapshot. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `milliAcceleratorL4` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Milli (one-thousandth) accelerator for L4 accelerators. (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)) |
| `milliAcceleratorA10040` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Milli (one-thousandth) accelerator for A100-40 accelerators. (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)) |
| `milliAcceleratorA10080` | `string (https://developers.google.com/discovery/v1/type-format format)` Optional. Milli (one-thousandth) accelerator for A100-80 accelerators. (see [Dataproc Serverless pricing](https://cloud.google.com/dataproc-serverless/pricing)) |

## PropertiesInfo

Properties of the workload organized by origin.

| JSON representation |
|---|
| ``` { "autotuningProperties": { string: { object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#ValueInfo`) }, ... } } ``` |

| Fields ||
|---|---|
| `autotuningProperties` | ``map (key: string, value: object (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#ValueInfo`))`` Output only. Properties set by autotuning engine. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## ValueInfo

Annotatated property value.

| JSON representation |
|---|
| ``` { "value": string, "annotation": string, "overriddenValue": string } ``` |

| Fields ||
|---|---|
| `value` | `string` Property value. |
| `annotation` | `string` Annotation, comment or explanation why the property was set. |
| `overriddenValue` | `string` Optional. Value which was replaced by the corresponding component. |

## CohortInfo

Information about the cohort that the workload belongs to.

| JSON representation |
|---|
| ``` { "cohort": string, "cohortSource": enum (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#CohortSource`) } ``` |

| Fields ||
|---|---|
| `cohort` | `string` Output only. Final cohort that was used to tune the workload. |
| `cohortSource` | ``enum (`https://docs.cloud.google.com/managed-spark/docs/reference/rest/v1/RuntimeInfo#CohortSource`)`` Output only. Source of the cohort. |

## CohortSource

Source of the cohort.

| Enums ||
|---|---|
| `COHORT_SOURCE_UNSPECIFIED` | Cohort source is unspecified. |
| `USER_PROVIDED` | Indicates that the cohort was explicitly provided. |
| `AIRFLOW` | Composed from the labels coming from Airflow/Composer. |