# Google Cloud Chronicle V1 Client - Class DashboardChart (0.4.0)

0.4.0 (latest) 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle V1 Client class DashboardChart.

DashboardChart resource.

Generated from protobuf message `google.cloud.chronicle.v1.DashboardChart`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Name of the dashboardChart. |
| `↳ display_name` | `string` Required. Display name/Title of the dashboardChart visible to users. |
| `↳ description` | `string` Optional. Description of the dashboardChart. |
| `↳ native_dashboard` | `string` Output only. NativeDashboard this chart belongs to. |
| `↳ tile_type` | `int` Optional. Type of tile i.e., visualization, button or text. |
| `↳ chart_datasource` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.ChartDatasource` Optional. Query and datasource used in the chart. Should be empty for Button Tiles. |
| `↳ visualization` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.Visualization` Required. Depending on tile_type one of below fields will be required. |
| `↳ etag` | `string` Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. |
| `↳ drill_down_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.DrillDownConfig` Optional. Drill down configuration. |
| `↳ tokens` | `string[]` Optional. List of Advanced Filter tokens used in this chart's query (e.g., "hostname", "ip"). This allows the UI to identify dependencies without parsing the query text. The tokens are stored without the wrapping '$' characters. The number of tokens are not expected to be more than 10. |

### getName

Output only. Name of the dashboardChart.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Output only. Name of the dashboardChart.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDisplayName

Required. Display name/Title of the dashboardChart visible to users.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDisplayName

Required. Display name/Title of the dashboardChart visible to users.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

Optional. Description of the dashboardChart.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

Optional. Description of the dashboardChart.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNativeDashboard

Output only. NativeDashboard this chart belongs to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNativeDashboard

Output only. NativeDashboard this chart belongs to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTileType

Optional. Type of tile i.e., visualization, button or text.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TileType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.TileType). |

### setTileType

Optional. Type of tile i.e., visualization, button or text.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TileType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.TileType). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getChartDatasource

Optional. Query and datasource used in the chart. Should be empty for
Button Tiles.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.ChartDatasource|null` |   |

### hasChartDatasource

### clearChartDatasource

### setChartDatasource

Optional. Query and datasource used in the chart. Should be empty for
Button Tiles.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.ChartDatasource` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVisualization

Required. Depending on tile_type one of below fields will be required.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.Visualization|null` |   |

### hasVisualization

### clearVisualization

### setVisualization

Required. Depending on tile_type one of below fields will be required.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.Visualization` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEtag

Optional. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setEtag

Optional. This checksum is computed by the server based on the value of
other fields, and may be sent on update and delete requests to ensure the
client has an up-to-date value before proceeding.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDrillDownConfig

Optional. Drill down configuration.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.DrillDownConfig|null` |   |

### hasDrillDownConfig

### clearDrillDownConfig

### setDrillDownConfig

Optional. Drill down configuration.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.DashboardChart.DrillDownConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTokens

Optional. List of Advanced Filter tokens used in this chart's query (e.g.,
"hostname", "ip"). This allows the UI to identify dependencies without
parsing the query text. The tokens are stored without the wrapping '$'
characters.

The number of tokens are not expected to be more than 10.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setTokens

Optional. List of Advanced Filter tokens used in this chart's query (e.g.,
"hostname", "ip"). This allows the UI to identify dependencies without
parsing the query text. The tokens are stored without the wrapping '$'
characters.

The number of tokens are not expected to be more than 10.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |