Skip to main content

insights_configs

Creates, updates, deletes, gets or lists an insights_configs resource.

Overview

Nameinsights_configs
TypeResource
Idgoogle.developerconnect.insights_configs

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The name of the InsightsConfig. Format: projects/{project}/locations/{location}/insightsConfigs/{insightsConfig}
annotationsobjectOptional. User specified annotations. See https://google.aip.dev/148#annotations for more details such as format and size limitations.
appHubApplicationstringOptional. The name of the App Hub Application. Format: projects/{project}/locations/{location}/applications/{application}
artifactConfigsarrayOptional. The artifact configurations of the artifacts that are deployed.
createTimestring (google-datetime)Output only. [Output only] Create timestamp
errorsarrayOutput 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.
labelsobjectOptional. Set of labels associated with an InsightsConfig.
reconcilingbooleanOutput 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.
runtimeConfigsarrayOutput only. The runtime configurations where the application is deployed.
statestringOptional. Output only. The state of the InsightsConfig.
updateTimestring (google-datetime)Output only. [Output only] Update timestamp

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, insightsConfigsIdGets details of a single Insight.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists InsightsConfigs in a given project and location.
createinsertprojectsId, locationsIdinsightsConfigId, validateOnlyCreates a new InsightsConfig in a given project and location.
patchupdateprojectsId, locationsId, insightsConfigsIdrequestId, allowMissing, validateOnlyUpdates the parameters of a single InsightsConfig.
deletedeleteprojectsId, locationsId, insightsConfigsIdrequestId, validateOnly, etagDelete a single Insight.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
insightsConfigsIdstring
locationsIdstring
projectsIdstring
allowMissingboolean
etagstring
filterstring
insightsConfigIdstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
requestIdstring
validateOnlyboolean

SELECT examples

Gets details of a single Insight.

SELECT
name,
annotations,
appHubApplication,
artifactConfigs,
createTime,
errors,
labels,
reconciling,
runtimeConfigs,
state,
updateTime
FROM google.developerconnect.insights_configs
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND insightsConfigsId = '{{ insightsConfigsId }}' -- required;

INSERT examples

Creates a new InsightsConfig in a given project and location.

INSERT INTO google.developerconnect.insights_configs (
data__appHubApplication,
data__name,
data__artifactConfigs,
data__state,
data__annotations,
data__labels,
projectsId,
locationsId,
insightsConfigId,
validateOnly
)
SELECT
'{{ appHubApplication }}',
'{{ name }}',
'{{ artifactConfigs }}',
'{{ state }}',
'{{ annotations }}',
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ insightsConfigId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single InsightsConfig.

UPDATE google.developerconnect.insights_configs
SET
data__appHubApplication = '{{ appHubApplication }}',
data__name = '{{ name }}',
data__artifactConfigs = '{{ artifactConfigs }}',
data__state = '{{ state }}',
data__annotations = '{{ annotations }}',
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND insightsConfigsId = '{{ insightsConfigsId }}' --required
AND requestId = '{{ requestId}}'
AND allowMissing = {{ allowMissing}}
AND validateOnly = {{ validateOnly}}
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Delete a single Insight.

DELETE FROM google.developerconnect.insights_configs
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND insightsConfigsId = '{{ insightsConfigsId }}' --required
AND requestId = '{{ requestId }}'
AND validateOnly = '{{ validateOnly }}'
AND etag = '{{ etag }}';