datacollectors
Creates, updates, deletes, gets or lists a datacollectors
resource.
Overview
Name | datacollectors |
Type | Resource |
Id | google.apigee.datacollectors |
Fields
Name | Datatype | Description |
---|---|---|
name | string | ID of the data collector. Must begin with dc_ . |
description | string | A description of the data collector. |
createdAt | string | Output only. The time at which the data collector was created in milliseconds since the epoch. |
lastModifiedAt | string | Output only. The time at which the Data Collector was last updated in milliseconds since the epoch. |
type | string | Immutable. The type of data this data collector will collect. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
organizations_datacollectors_get | SELECT | datacollectorsId, organizationsId | Gets a data collector. |
organizations_datacollectors_list | SELECT | organizationsId | Lists all data collectors. |
organizations_datacollectors_create | INSERT | organizationsId | Creates a new data collector. |
organizations_datacollectors_delete | DELETE | datacollectorsId, organizationsId | Deletes a data collector. |
organizations_datacollectors_patch | UPDATE | datacollectorsId, organizationsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.apigee.datacollectors (
organizationsId,
type,
description,
name
)
SELECT
'{{ organizationsId }}',
'{{ type }}',
'{{ description }}',
'{{ name }}'
;
- name: your_resource_model_name
props:
- name: createdAt
value: string
- name: type
value: string
- name: description
value: string
- name: lastModifiedAt
value: string
- name: name
value: string
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 }}';