- 3.52.0 (latest)
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.2
- 3.3.0
- 3.2.0
- 3.0.0
- 2.9.8
- 2.8.9
- 2.7.4
- 2.5.3
- 2.4.0
public static final class FeatureStatsAnomaly.Builder extends GeneratedMessageV3.Builder<FeatureStatsAnomaly.Builder> implements FeatureStatsAnomalyOrBuilder
Stats and Anomaly generated at specific timestamp for specific Feature. The start_time and end_time are used to define the time range of the dataset that current stats belongs to, e.g. prediction traffic is bucketed into prediction datasets by time window. If the Dataset is not defined by time window, start_time = end_time. Timestamp of the stats and anomalies always refers to end_time. Raw stats and anomalies are stored in stats_uri or anomaly_uri in the tensorflow defined protos. Field data_stats contains almost identical information with the raw stats in Vertex AI defined proto, for UI to display.
Protobuf type google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FeatureStatsAnomaly.BuilderImplements
FeatureStatsAnomalyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FeatureStatsAnomaly.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
FeatureStatsAnomaly.Builder |
build()
public FeatureStatsAnomaly build()
Type | Description |
FeatureStatsAnomaly |
buildPartial()
public FeatureStatsAnomaly buildPartial()
Type | Description |
FeatureStatsAnomaly |
clear()
public FeatureStatsAnomaly.Builder clear()
Type | Description |
FeatureStatsAnomaly.Builder |
clearAnomalyDetectionThreshold()
public FeatureStatsAnomaly.Builder clearAnomalyDetectionThreshold()
This is the threshold used when detecting anomalies. The threshold can be changed by user, so this one might be different from ThresholdConfig.value.
double anomaly_detection_threshold = 9;
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
clearAnomalyUri()
public FeatureStatsAnomaly.Builder clearAnomalyUri()
Path of the anomaly file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/anomalies. Example: gs://monitoring_bucket/feature_name/anomalies. Stats are stored as binary format with Protobuf message Anoamlies are stored as binary format with Protobuf message tensorflow.metadata.v0.AnomalyInfo.
string anomaly_uri = 4;
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
clearDistributionDeviation()
public FeatureStatsAnomaly.Builder clearDistributionDeviation()
Deviation from the current stats to baseline stats.
- For categorical feature, the distribution distance is calculated by L-inifinity norm.
- For numerical feature, the distribution distance is calculated by Jensen\u2013Shannon divergence.
double distribution_deviation = 5;
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
clearEndTime()
public FeatureStatsAnomaly.Builder clearEndTime()
The end timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
.google.protobuf.Timestamp end_time = 8;
Type | Description |
FeatureStatsAnomaly.Builder |
clearField(Descriptors.FieldDescriptor field)
public FeatureStatsAnomaly.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
FeatureStatsAnomaly.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public FeatureStatsAnomaly.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
FeatureStatsAnomaly.Builder |
clearScore()
public FeatureStatsAnomaly.Builder clearScore()
Feature importance score, only populated when cross-feature monitoring is enabled. For now only used to represent feature attribution score within range [0, 1] for ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW and ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT.
double score = 1;
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
clearStartTime()
public FeatureStatsAnomaly.Builder clearStartTime()
The start timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
.google.protobuf.Timestamp start_time = 7;
Type | Description |
FeatureStatsAnomaly.Builder |
clearStatsUri()
public FeatureStatsAnomaly.Builder clearStatsUri()
Path of the stats file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/stats. Example: gs://monitoring_bucket/feature_name/stats. Stats are stored as binary format with Protobuf message tensorflow.metadata.v0.FeatureNameStatistics.
string stats_uri = 3;
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
clone()
public FeatureStatsAnomaly.Builder clone()
Type | Description |
FeatureStatsAnomaly.Builder |
getAnomalyDetectionThreshold()
public double getAnomalyDetectionThreshold()
This is the threshold used when detecting anomalies. The threshold can be changed by user, so this one might be different from ThresholdConfig.value.
double anomaly_detection_threshold = 9;
Type | Description |
double | The anomalyDetectionThreshold. |
getAnomalyUri()
public String getAnomalyUri()
Path of the anomaly file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/anomalies. Example: gs://monitoring_bucket/feature_name/anomalies. Stats are stored as binary format with Protobuf message Anoamlies are stored as binary format with Protobuf message tensorflow.metadata.v0.AnomalyInfo.
string anomaly_uri = 4;
Type | Description |
String | The anomalyUri. |
getAnomalyUriBytes()
public ByteString getAnomalyUriBytes()
Path of the anomaly file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/anomalies. Example: gs://monitoring_bucket/feature_name/anomalies. Stats are stored as binary format with Protobuf message Anoamlies are stored as binary format with Protobuf message tensorflow.metadata.v0.AnomalyInfo.
string anomaly_uri = 4;
Type | Description |
ByteString | The bytes for anomalyUri. |
getDefaultInstanceForType()
public FeatureStatsAnomaly getDefaultInstanceForType()
Type | Description |
FeatureStatsAnomaly |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDistributionDeviation()
public double getDistributionDeviation()
Deviation from the current stats to baseline stats.
- For categorical feature, the distribution distance is calculated by L-inifinity norm.
- For numerical feature, the distribution distance is calculated by Jensen\u2013Shannon divergence.
double distribution_deviation = 5;
Type | Description |
double | The distributionDeviation. |
getEndTime()
public Timestamp getEndTime()
The end timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
.google.protobuf.Timestamp end_time = 8;
Type | Description |
Timestamp | The endTime. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
The end timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
.google.protobuf.Timestamp end_time = 8;
Type | Description |
Builder |
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
The end timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
.google.protobuf.Timestamp end_time = 8;
Type | Description |
TimestampOrBuilder |
getScore()
public double getScore()
Feature importance score, only populated when cross-feature monitoring is enabled. For now only used to represent feature attribution score within range [0, 1] for ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW and ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT.
double score = 1;
Type | Description |
double | The score. |
getStartTime()
public Timestamp getStartTime()
The start timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
.google.protobuf.Timestamp start_time = 7;
Type | Description |
Timestamp | The startTime. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
The start timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
.google.protobuf.Timestamp start_time = 7;
Type | Description |
Builder |
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
The start timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
.google.protobuf.Timestamp start_time = 7;
Type | Description |
TimestampOrBuilder |
getStatsUri()
public String getStatsUri()
Path of the stats file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/stats. Example: gs://monitoring_bucket/feature_name/stats. Stats are stored as binary format with Protobuf message tensorflow.metadata.v0.FeatureNameStatistics.
string stats_uri = 3;
Type | Description |
String | The statsUri. |
getStatsUriBytes()
public ByteString getStatsUriBytes()
Path of the stats file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/stats. Example: gs://monitoring_bucket/feature_name/stats. Stats are stored as binary format with Protobuf message tensorflow.metadata.v0.FeatureNameStatistics.
string stats_uri = 3;
Type | Description |
ByteString | The bytes for statsUri. |
hasEndTime()
public boolean hasEndTime()
The end timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
.google.protobuf.Timestamp end_time = 8;
Type | Description |
boolean | Whether the endTime field is set. |
hasStartTime()
public boolean hasStartTime()
The start timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
.google.protobuf.Timestamp start_time = 7;
Type | Description |
boolean | Whether the startTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeEndTime(Timestamp value)
public FeatureStatsAnomaly.Builder mergeEndTime(Timestamp value)
The end timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
.google.protobuf.Timestamp end_time = 8;
Name | Description |
value | Timestamp |
Type | Description |
FeatureStatsAnomaly.Builder |
mergeFrom(FeatureStatsAnomaly other)
public FeatureStatsAnomaly.Builder mergeFrom(FeatureStatsAnomaly other)
Name | Description |
other | FeatureStatsAnomaly |
Type | Description |
FeatureStatsAnomaly.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FeatureStatsAnomaly.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
FeatureStatsAnomaly.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public FeatureStatsAnomaly.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
FeatureStatsAnomaly.Builder |
mergeStartTime(Timestamp value)
public FeatureStatsAnomaly.Builder mergeStartTime(Timestamp value)
The start timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
.google.protobuf.Timestamp start_time = 7;
Name | Description |
value | Timestamp |
Type | Description |
FeatureStatsAnomaly.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FeatureStatsAnomaly.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
FeatureStatsAnomaly.Builder |
setAnomalyDetectionThreshold(double value)
public FeatureStatsAnomaly.Builder setAnomalyDetectionThreshold(double value)
This is the threshold used when detecting anomalies. The threshold can be changed by user, so this one might be different from ThresholdConfig.value.
double anomaly_detection_threshold = 9;
Name | Description |
value | double The anomalyDetectionThreshold to set. |
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
setAnomalyUri(String value)
public FeatureStatsAnomaly.Builder setAnomalyUri(String value)
Path of the anomaly file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/anomalies. Example: gs://monitoring_bucket/feature_name/anomalies. Stats are stored as binary format with Protobuf message Anoamlies are stored as binary format with Protobuf message tensorflow.metadata.v0.AnomalyInfo.
string anomaly_uri = 4;
Name | Description |
value | String The anomalyUri to set. |
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
setAnomalyUriBytes(ByteString value)
public FeatureStatsAnomaly.Builder setAnomalyUriBytes(ByteString value)
Path of the anomaly file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/anomalies. Example: gs://monitoring_bucket/feature_name/anomalies. Stats are stored as binary format with Protobuf message Anoamlies are stored as binary format with Protobuf message tensorflow.metadata.v0.AnomalyInfo.
string anomaly_uri = 4;
Name | Description |
value | ByteString The bytes for anomalyUri to set. |
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
setDistributionDeviation(double value)
public FeatureStatsAnomaly.Builder setDistributionDeviation(double value)
Deviation from the current stats to baseline stats.
- For categorical feature, the distribution distance is calculated by L-inifinity norm.
- For numerical feature, the distribution distance is calculated by Jensen\u2013Shannon divergence.
double distribution_deviation = 5;
Name | Description |
value | double The distributionDeviation to set. |
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
setEndTime(Timestamp value)
public FeatureStatsAnomaly.Builder setEndTime(Timestamp value)
The end timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
.google.protobuf.Timestamp end_time = 8;
Name | Description |
value | Timestamp |
Type | Description |
FeatureStatsAnomaly.Builder |
setEndTime(Timestamp.Builder builderForValue)
public FeatureStatsAnomaly.Builder setEndTime(Timestamp.Builder builderForValue)
The end timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), end_time indicates the timestamp of the data used to generate stats (e.g. timestamp we take snapshots for feature values).
.google.protobuf.Timestamp end_time = 8;
Name | Description |
builderForValue | Builder |
Type | Description |
FeatureStatsAnomaly.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public FeatureStatsAnomaly.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
FeatureStatsAnomaly.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FeatureStatsAnomaly.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
FeatureStatsAnomaly.Builder |
setScore(double value)
public FeatureStatsAnomaly.Builder setScore(double value)
Feature importance score, only populated when cross-feature monitoring is enabled. For now only used to represent feature attribution score within range [0, 1] for ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW and ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT.
double score = 1;
Name | Description |
value | double The score to set. |
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
setStartTime(Timestamp value)
public FeatureStatsAnomaly.Builder setStartTime(Timestamp value)
The start timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
.google.protobuf.Timestamp start_time = 7;
Name | Description |
value | Timestamp |
Type | Description |
FeatureStatsAnomaly.Builder |
setStartTime(Timestamp.Builder builderForValue)
public FeatureStatsAnomaly.Builder setStartTime(Timestamp.Builder builderForValue)
The start timestamp of window where stats were generated. For objectives where time window doesn't make sense (e.g. Featurestore Snapshot Monitoring), start_time is only used to indicate the monitoring intervals, so it always equals to (end_time - monitoring_interval).
.google.protobuf.Timestamp start_time = 7;
Name | Description |
builderForValue | Builder |
Type | Description |
FeatureStatsAnomaly.Builder |
setStatsUri(String value)
public FeatureStatsAnomaly.Builder setStatsUri(String value)
Path of the stats file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/stats. Example: gs://monitoring_bucket/feature_name/stats. Stats are stored as binary format with Protobuf message tensorflow.metadata.v0.FeatureNameStatistics.
string stats_uri = 3;
Name | Description |
value | String The statsUri to set. |
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
setStatsUriBytes(ByteString value)
public FeatureStatsAnomaly.Builder setStatsUriBytes(ByteString value)
Path of the stats file for current feature values in Cloud Storage bucket. Format: gs://<bucket_name>/<object_name>/stats. Example: gs://monitoring_bucket/feature_name/stats. Stats are stored as binary format with Protobuf message tensorflow.metadata.v0.FeatureNameStatistics.
string stats_uri = 3;
Name | Description |
value | ByteString The bytes for statsUri to set. |
Type | Description |
FeatureStatsAnomaly.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final FeatureStatsAnomaly.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
FeatureStatsAnomaly.Builder |