features
Creates, updates, deletes, gets or lists a features
resource.
Overview
Name | features |
Type | Resource |
Id | google.aiplatform.features |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Name of the Feature. Format: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature} projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature} The last part feature is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type. |
createTime | string (google-datetime) | Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was created. |
description | string | Description of the Feature. |
disableMonitoring | boolean | Optional. Only applicable for Vertex AI Feature Store (Legacy). If not set, use the monitoring_config defined for the EntityType this Feature belongs to. Only Features with type (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable monitoring. If set to true, all types of data monitoring are disabled despite the config on EntityType. |
etag | string | Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | Optional. The labels with user-defined metadata to organize your Features. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one Feature (System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. |
monitoringStatsAnomalies | array | Output only. Only applicable for Vertex AI Feature Store (Legacy). The list of historical stats and anomalies with specified objectives. |
pointOfContact | string | Entity responsible for maintaining this feature. Can be comma separated list of email addresses or URIs. |
updateTime | string (google-datetime) | Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was most recently updated. |
valueType | string | Immutable. Only applicable for Vertex AI Feature Store (Legacy). Type of Feature value. |
versionColumnName | string | Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/View column hosting data for this version. If no value is provided, will use feature_id. |
Successful response
Name | Datatype | Description |
---|---|---|
name | string | Immutable. Name of the Feature. Format: projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature} projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature} The last part feature is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type. |
createTime | string (google-datetime) | Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was created. |
description | string | Description of the Feature. |
disableMonitoring | boolean | Optional. Only applicable for Vertex AI Feature Store (Legacy). If not set, use the monitoring_config defined for the EntityType this Feature belongs to. Only Features with type (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable monitoring. If set to true, all types of data monitoring are disabled despite the config on EntityType. |
etag | string | Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens. |
labels | object | Optional. The labels with user-defined metadata to organize your Features. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one Feature (System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable. |
monitoringStatsAnomalies | array | Output only. Only applicable for Vertex AI Feature Store (Legacy). The list of historical stats and anomalies with specified objectives. |
pointOfContact | string | Entity responsible for maintaining this feature. Can be comma separated list of email addresses or URIs. |
updateTime | string (google-datetime) | Output only. Only applicable for Vertex AI Feature Store (Legacy). Timestamp when this EntityType was most recently updated. |
valueType | string | Immutable. Only applicable for Vertex AI Feature Store (Legacy). Type of Feature value. |
versionColumnName | string | Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/View column hosting data for this version. If no value is provided, will use feature_id. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | projectsId , locationsId , featureGroupsId , featuresId | Gets details of a single Feature. | |
list | select | projectsId , locationsId , featureGroupsId | filter , pageSize , pageToken , orderBy , readMask , latestStatsCount | Lists Features in a given FeatureGroup. |
create | insert | projectsId , locationsId , featureGroupsId | featureId | Creates a new Feature in a given FeatureGroup. |
batch_create | insert | projectsId , locationsId , featureGroupsId | Creates a batch of Features in a given FeatureGroup. | |
patch | update | projectsId , locationsId , featureGroupsId , featuresId | updateMask | Updates the parameters of a single Feature. |
delete | delete | projectsId , locationsId , featureGroupsId , featuresId | Deletes a single Feature. |
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.
Name | Datatype | Description |
---|---|---|
featureGroupsId | string | |
featuresId | string | |
locationsId | string | |
projectsId | string | |
featureId | string | |
filter | string | |
latestStatsCount | integer (int32) | |
orderBy | string | |
pageSize | integer (int32) | |
pageToken | string | |
readMask | string (google-fieldmask) | |
updateMask | string (google-fieldmask) |
SELECT
examples
- get
- list
Gets details of a single Feature.
SELECT
name,
createTime,
description,
disableMonitoring,
etag,
labels,
monitoringStatsAnomalies,
pointOfContact,
updateTime,
valueType,
versionColumnName
FROM google.aiplatform.features
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND featureGroupsId = '{{ featureGroupsId }}' -- required
AND featuresId = '{{ featuresId }}' -- required;
Lists Features in a given FeatureGroup.
SELECT
name,
createTime,
description,
disableMonitoring,
etag,
labels,
monitoringStatsAnomalies,
pointOfContact,
updateTime,
valueType,
versionColumnName
FROM google.aiplatform.features
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND featureGroupsId = '{{ featureGroupsId }}' -- required
AND filter = '{{ filter }}'
AND pageSize = '{{ pageSize }}'
AND pageToken = '{{ pageToken }}'
AND orderBy = '{{ orderBy }}'
AND readMask = '{{ readMask }}'
AND latestStatsCount = '{{ latestStatsCount }}';
INSERT
examples
- create
- batch_create
- Manifest
Creates a new Feature in a given FeatureGroup.
INSERT INTO google.aiplatform.features (
data__name,
data__description,
data__valueType,
data__labels,
data__etag,
data__disableMonitoring,
data__versionColumnName,
data__pointOfContact,
projectsId,
locationsId,
featureGroupsId,
featureId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ valueType }}',
'{{ labels }}',
'{{ etag }}',
{{ disableMonitoring }},
'{{ versionColumnName }}',
'{{ pointOfContact }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ featureGroupsId }}',
'{{ featureId }}'
RETURNING
name,
done,
error,
metadata,
response
;
Creates a batch of Features in a given FeatureGroup.
INSERT INTO google.aiplatform.features (
data__requests,
projectsId,
locationsId,
featureGroupsId
)
SELECT
'{{ requests }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ featureGroupsId }}'
RETURNING
name,
done,
error,
metadata,
response
;
# Description fields are for documentation purposes
- name: features
props:
- name: projectsId
value: string
description: Required parameter for the features resource.
- name: locationsId
value: string
description: Required parameter for the features resource.
- name: featureGroupsId
value: string
description: Required parameter for the features resource.
- name: name
value: string
description: >
Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}` The last part feature is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type.
- name: description
value: string
description: >
Description of the Feature.
- name: valueType
value: string
description: >
Immutable. Only applicable for Vertex AI Feature Store (Legacy). Type of Feature value.
valid_values: ['VALUE_TYPE_UNSPECIFIED', 'BOOL', 'BOOL_ARRAY', 'DOUBLE', 'DOUBLE_ARRAY', 'INT64', 'INT64_ARRAY', 'STRING', 'STRING_ARRAY', 'BYTES', 'STRUCT']
- name: labels
value: object
description: >
Optional. The labels with user-defined metadata to organize your Features. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one Feature (System labels are excluded)." System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
- name: etag
value: string
description: >
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
- name: disableMonitoring
value: boolean
description: >
Optional. Only applicable for Vertex AI Feature Store (Legacy). If not set, use the monitoring_config defined for the EntityType this Feature belongs to. Only Features with type (Feature.ValueType) BOOL, STRING, DOUBLE or INT64 can enable monitoring. If set to true, all types of data monitoring are disabled despite the config on EntityType.
- name: versionColumnName
value: string
description: >
Only applicable for Vertex AI Feature Store. The name of the BigQuery Table/View column hosting data for this version. If no value is provided, will use feature_id.
- name: pointOfContact
value: string
description: >
Entity responsible for maintaining this feature. Can be comma separated list of email addresses or URIs.
- name: requests
value: array
description: >
Required. The request message specifying the Features to create. All Features must be created under the same parent EntityType / FeatureGroup. The `parent` field in each child request message can be omitted. If `parent` is set in a child request, then the value must match the `parent` value in this request message.
- name: featureId
value: string
UPDATE
examples
- patch
Updates the parameters of a single Feature.
UPDATE google.aiplatform.features
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__valueType = '{{ valueType }}',
data__labels = '{{ labels }}',
data__etag = '{{ etag }}',
data__disableMonitoring = {{ disableMonitoring }},
data__versionColumnName = '{{ versionColumnName }}',
data__pointOfContact = '{{ pointOfContact }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND featureGroupsId = '{{ featureGroupsId }}' --required
AND featuresId = '{{ featuresId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;
DELETE
examples
- delete
Deletes a single Feature.
DELETE FROM google.aiplatform.features
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND featureGroupsId = '{{ featureGroupsId }}' --required
AND featuresId = '{{ featuresId }}' --required;