Skip to main content

datacollectors

Creates, updates, deletes, gets or lists a datacollectors resource.

Overview

Namedatacollectors
TypeResource
Idgoogle.apigee.datacollectors

Fields

NameDatatypeDescription
namestringID of the data collector. Must begin with dc_.
descriptionstringA description of the data collector.
createdAtstringOutput only. The time at which the data collector was created in milliseconds since the epoch.
lastModifiedAtstringOutput only. The time at which the Data Collector was last updated in milliseconds since the epoch.
typestringImmutable. The type of data this data collector will collect.

Methods

NameAccessible byRequired ParamsDescription
organizations_datacollectors_getSELECTdatacollectorsId, organizationsIdGets a data collector.
organizations_datacollectors_listSELECTorganizationsIdLists all data collectors.
organizations_datacollectors_createINSERTorganizationsIdCreates a new data collector.
organizations_datacollectors_deleteDELETEdatacollectorsId, organizationsIdDeletes a data collector.
organizations_datacollectors_patchUPDATEdatacollectorsId, organizationsIdUpdates a data collector.

SELECT examples

Lists all data collectors.

SELECT
name,
description,
createdAt,
lastModifiedAt,
type
FROM google.apigee.datacollectors
WHERE organizationsId = '{{ organizationsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new datacollectors resource.

/*+ create */
INSERT INTO google.apigee.datacollectors (
organizationsId,
type,
description,
name
)
SELECT
'{{ organizationsId }}',
'{{ type }}',
'{{ description }}',
'{{ name }}'
;

UPDATE example

Updates a datacollectors resource.

/*+ update */
UPDATE google.apigee.datacollectors
SET
type = '{{ type }}',
description = '{{ description }}',
name = '{{ name }}'
WHERE
datacollectorsId = '{{ datacollectorsId }}'
AND organizationsId = '{{ organizationsId }}';

DELETE example

Deletes the specified datacollectors resource.

/*+ delete */
DELETE FROM google.apigee.datacollectors
WHERE datacollectorsId = '{{ datacollectorsId }}'
AND organizationsId = '{{ organizationsId }}';