Skip to main content

datacollectors

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

Overview​

Namedatacollectors
TypeResource
Idgoogle.apigee.datacollectors

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringID of the data collector. Must begin with dc_.
createdAtstring (int64)Output only. The time at which the data collector was created in milliseconds since the epoch.
descriptionstringA description of the data collector.
lastModifiedAtstring (int64)Output 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. (TYPE_UNSPECIFIED, INTEGER, FLOAT, STRING, BOOLEAN, DATETIME)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
organizations_datacollectors_getselectorganizationsId, datacollectorsIdGets a data collector.
organizations_datacollectors_listselectorganizationsIdpageSize, pageTokenLists all data collectors.
organizations_datacollectors_createinsertorganizationsIddataCollectorIdCreates a new data collector.
organizations_datacollectors_patchupdateorganizationsId, datacollectorsIdupdateMaskUpdates a data collector.
organizations_datacollectors_deletedeleteorganizationsId, datacollectorsIdDeletes a data collector.

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
datacollectorsIdstring
organizationsIdstring
dataCollectorIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples​

Gets a data collector.

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

INSERT examples​

Creates a new data collector.

INSERT INTO google.apigee.datacollectors (
data__description,
data__name,
data__type,
organizationsId,
dataCollectorId
)
SELECT
'{{ description }}',
'{{ name }}',
'{{ type }}',
'{{ organizationsId }}',
'{{ dataCollectorId }}'
RETURNING
name,
createdAt,
description,
lastModifiedAt,
type
;

UPDATE examples​

Updates a data collector.

UPDATE google.apigee.datacollectors
SET
data__description = '{{ description }}',
data__name = '{{ name }}',
data__type = '{{ type }}'
WHERE
organizationsId = '{{ organizationsId }}' --required
AND datacollectorsId = '{{ datacollectorsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createdAt,
description,
lastModifiedAt,
type;

DELETE examples​

Deletes a data collector.

DELETE FROM google.apigee.datacollectors
WHERE organizationsId = '{{ organizationsId }}' --required
AND datacollectorsId = '{{ datacollectorsId }}' --required
;