0.6.2 (latest) 0.6.1 0.5.3 0.4.1 0.3.0 0.2.2 0.1.2 Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class InsightsConfig.

The InsightsConfig resource is the core configuration object to capture
events from your Software Development Lifecycle. It acts as the central hub
for managing how Developer Connect understands your application, its runtime
environments, and the artifacts deployed within them.

Generated from protobuf message `google.cloud.developerconnect.v1.InsightsConfig`

## Namespace

Google \\ Cloud \\ DeveloperConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ app_hub_application` | `string` Optional. The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application} |
| `↳ projects` | `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.Projects` Optional. The projects to track with the InsightsConfig. |
| `↳ name` | `string` Identifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig} |
| `↳ create_time` | `Google\Protobuf\Timestamp` Output only. Create timestamp. |
| `↳ update_time` | `Google\Protobuf\Timestamp` Output only. Update timestamp. |
| `↳ runtime_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.RuntimeConfig>` Output only. The runtime configurations where the application is deployed. |
| `↳ artifact_configs` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.ArtifactConfig>` Optional. The artifact configurations of the artifacts that are deployed. |
| `↳ state` | `int` Optional. Output only. The state of the InsightsConfig. |
| `↳ annotations` | `array|Google\Protobuf\Internal\MapField` Optional. User specified annotations. See <https://google.aip.dev/148#annotations> for more details such as format and size limitations. |
| `↳ labels` | `array|Google\Protobuf\Internal\MapField` Optional. Set of labels associated with an InsightsConfig. |
| `↳ reconciling` | `bool` Output only. Reconciling (<https://google.aip.dev/128#reconciliation>). Set to true if the current state of InsightsConfig does not match the user's intended state, and the service is actively updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover or maintenance. |
| `↳ errors` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` Output only. Any errors that occurred while setting up the InsightsConfig. Each error will be in the format: `field_name: error_message`, e.g. GetAppHubApplication: Permission denied while getting App Hub application. Please grant permissions to the P4SA. |

### getAppHubApplication

Optional. The name of the App Hub Application.

Format:
projects/{project}/locations/{location}/applications/{application}

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

### hasAppHubApplication

### setAppHubApplication

Optional. The name of the App Hub Application.

Format:
projects/{project}/locations/{location}/applications/{application}

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

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

### getProjects

Optional. The projects to track with the InsightsConfig.

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

### hasProjects

### setProjects

Optional. The projects to track with the InsightsConfig.

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

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

### getName

Identifier. The name of the InsightsConfig.

Format:
projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}

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

### setName

Identifier. The name of the InsightsConfig.

Format:
projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}

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

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

### getCreateTime

Output only. Create timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Create timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getUpdateTime

Output only. Update timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Timestamp|null` |   |

### hasUpdateTime

### clearUpdateTime

### setUpdateTime

Output only. Update timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

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

### getRuntimeConfigs

Output only. The runtime configurations where the application is deployed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.RuntimeConfig>` |   |

### setRuntimeConfigs

Output only. The runtime configurations where the application is deployed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.RuntimeConfig>` |

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

### getArtifactConfigs

Optional. The artifact configurations of the artifacts that are deployed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.ArtifactConfig>` |   |

### setArtifactConfigs

Optional. The artifact configurations of the artifacts that are deployed.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.ArtifactConfig>` |

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

### getState

Optional. Output only. The state of the InsightsConfig.

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

### setState

Optional. Output only. The state of the InsightsConfig.

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

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

### getAnnotations

Optional. User specified annotations. See
<https://google.aip.dev/148#annotations> for more details such as format and
size limitations.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setAnnotations

Optional. User specified annotations. See
<https://google.aip.dev/148#annotations> for more details such as format and
size limitations.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getLabels

Optional. Set of labels associated with an InsightsConfig.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setLabels

Optional. Set of labels associated with an InsightsConfig.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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

### getReconciling

Output only. Reconciling (<https://google.aip.dev/128#reconciliation>).

Set to true if the current state of InsightsConfig does not match the
user's intended state, and the service is actively updating the resource to
reconcile them. This can happen due to user-triggered updates or
system actions like failover or maintenance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setReconciling

Output only. Reconciling (<https://google.aip.dev/128#reconciliation>).

Set to true if the current state of InsightsConfig does not match the
user's intended state, and the service is actively updating the resource to
reconcile them. This can happen due to user-triggered updates or
system actions like failover or maintenance.

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

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

### getErrors

Output only. Any errors that occurred while setting up the InsightsConfig.

Each error will be in the format: `field_name: error_message`, e.g.
GetAppHubApplication: Permission denied while getting App Hub
application. Please grant permissions to the P4SA.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |   |

### setErrors

Output only. Any errors that occurred while setting up the InsightsConfig.

Each error will be in the format: `field_name: error_message`, e.g.
GetAppHubApplication: Permission denied while getting App Hub
application. Please grant permissions to the P4SA.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html>` |

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

### getInsightsConfigContext

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