# Google Cloud Chronicle V1 Client - Class ChartDatasource (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 ChartDatasource.

Datasource of the chart including the query reference and source name.

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

## Namespace

Google \\ Cloud \\ Chronicle \\ V1 \\ DashboardChart

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ dashboard_query` | `string` Reference to dashboard query resource used in the chart. |
| `↳ data_sources` | `int[]` Name of the datasource used in the chart. |

### getDashboardQuery

Reference to dashboard query resource used in the chart.

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

### setDashboardQuery

Reference to dashboard query resource used in the chart.

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

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

### getDataSources

Name of the datasource used in the chart.

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

### setDataSources

Name of the datasource used in the chart.

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

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