Package com.google.cloud.aiplatform.v1
Class FeatureStatsAnomaly
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.aiplatform.v1.FeatureStatsAnomaly
-
- All Implemented Interfaces:
FeatureStatsAnomalyOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class FeatureStatsAnomaly extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.cloud.aiplatform.v1.FeatureStatsAnomaly- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeatureStatsAnomaly.BuilderStats and Anomaly generated at specific timestamp for specific Feature.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intANOMALY_DETECTION_THRESHOLD_FIELD_NUMBERstatic intANOMALY_URI_FIELD_NUMBERstatic intDISTRIBUTION_DEVIATION_FIELD_NUMBERstatic intEND_TIME_FIELD_NUMBERstatic intSCORE_FIELD_NUMBERstatic intSTART_TIME_FIELD_NUMBERstatic intSTATS_URI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)doublegetAnomalyDetectionThreshold()This is the threshold used when detecting anomalies.StringgetAnomalyUri()Path of the anomaly file for current feature values in Cloud Storage bucket.com.google.protobuf.ByteStringgetAnomalyUriBytes()Path of the anomaly file for current feature values in Cloud Storage bucket.static FeatureStatsAnomalygetDefaultInstance()FeatureStatsAnomalygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()doublegetDistributionDeviation()Deviation from the current stats to baseline stats.com.google.protobuf.TimestampgetEndTime()The end timestamp of window where stats were generated.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()The end timestamp of window where stats were generated.com.google.protobuf.Parser<FeatureStatsAnomaly>getParserForType()doublegetScore()Feature importance score, only populated when cross-feature monitoring is enabled.intgetSerializedSize()com.google.protobuf.TimestampgetStartTime()The start timestamp of window where stats were generated.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()The start timestamp of window where stats were generated.StringgetStatsUri()Path of the stats file for current feature values in Cloud Storage bucket.com.google.protobuf.ByteStringgetStatsUriBytes()Path of the stats file for current feature values in Cloud Storage bucket.booleanhasEndTime()The end timestamp of window where stats were generated.inthashCode()booleanhasStartTime()The start timestamp of window where stats were generated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static FeatureStatsAnomaly.BuildernewBuilder()static FeatureStatsAnomaly.BuildernewBuilder(FeatureStatsAnomaly prototype)FeatureStatsAnomaly.BuildernewBuilderForType()protected FeatureStatsAnomaly.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static FeatureStatsAnomalyparseDelimitedFrom(InputStream input)static FeatureStatsAnomalyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureStatsAnomalyparseFrom(byte[] data)static FeatureStatsAnomalyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureStatsAnomalyparseFrom(com.google.protobuf.ByteString data)static FeatureStatsAnomalyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureStatsAnomalyparseFrom(com.google.protobuf.CodedInputStream input)static FeatureStatsAnomalyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureStatsAnomalyparseFrom(InputStream input)static FeatureStatsAnomalyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static FeatureStatsAnomalyparseFrom(ByteBuffer data)static FeatureStatsAnomalyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<FeatureStatsAnomaly>parser()FeatureStatsAnomaly.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATS_URI_FIELD_NUMBER
public static final int STATS_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANOMALY_URI_FIELD_NUMBER
public static final int ANOMALY_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISTRIBUTION_DEVIATION_FIELD_NUMBER
public static final int DISTRIBUTION_DEVIATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ANOMALY_DETECTION_THRESHOLD_FIELD_NUMBER
public static final int ANOMALY_DETECTION_THRESHOLD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_SKEW] and [ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT][google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType.FEATURE_ATTRIBUTION_DRIFT].
double score = 1;- Specified by:
getScorein interfaceFeatureStatsAnomalyOrBuilder- Returns:
- The score.
-
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](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
string stats_uri = 3;- Specified by:
getStatsUriin interfaceFeatureStatsAnomalyOrBuilder- Returns:
- The statsUri.
-
getStatsUriBytes
public com.google.protobuf.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](https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/statistics.proto).
string stats_uri = 3;- Specified by:
getStatsUriBytesin interfaceFeatureStatsAnomalyOrBuilder- Returns:
- The bytes for statsUri.
-
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] (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
string anomaly_uri = 4;- Specified by:
getAnomalyUriin interfaceFeatureStatsAnomalyOrBuilder- Returns:
- The anomalyUri.
-
getAnomalyUriBytes
public com.google.protobuf.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] (https://github.com/tensorflow/metadata/blob/master/tensorflow_metadata/proto/v0/anomalies.proto).
string anomaly_uri = 4;- Specified by:
getAnomalyUriBytesin interfaceFeatureStatsAnomalyOrBuilder- Returns:
- The bytes for anomalyUri.
-
getDistributionDeviation
public double getDistributionDeviation()
Deviation from the current stats to baseline stats. 1. For categorical feature, the distribution distance is calculated by L-inifinity norm. 2. For numerical feature, the distribution distance is calculated by Jensen–Shannon divergence.double distribution_deviation = 5;- Specified by:
getDistributionDeviationin interfaceFeatureStatsAnomalyOrBuilder- Returns:
- The distributionDeviation.
-
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][google.cloud.aiplatform.v1.ThresholdConfig.value].
double anomaly_detection_threshold = 9;- Specified by:
getAnomalyDetectionThresholdin interfaceFeatureStatsAnomalyOrBuilder- Returns:
- The anomalyDetectionThreshold.
-
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;- Specified by:
hasStartTimein interfaceFeatureStatsAnomalyOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.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;- Specified by:
getStartTimein interfaceFeatureStatsAnomalyOrBuilder- Returns:
- The startTime.
-
getStartTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getStartTimeOrBuilderin interfaceFeatureStatsAnomalyOrBuilder
-
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;- Specified by:
hasEndTimein interfaceFeatureStatsAnomalyOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.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;- Specified by:
getEndTimein interfaceFeatureStatsAnomalyOrBuilder- Returns:
- The endTime.
-
getEndTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getEndTimeOrBuilderin interfaceFeatureStatsAnomalyOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static FeatureStatsAnomaly parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureStatsAnomaly parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureStatsAnomaly parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureStatsAnomaly parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureStatsAnomaly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureStatsAnomaly parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FeatureStatsAnomaly parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FeatureStatsAnomaly parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FeatureStatsAnomaly parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static FeatureStatsAnomaly parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static FeatureStatsAnomaly parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static FeatureStatsAnomaly parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public FeatureStatsAnomaly.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static FeatureStatsAnomaly.Builder newBuilder()
-
newBuilder
public static FeatureStatsAnomaly.Builder newBuilder(FeatureStatsAnomaly prototype)
-
toBuilder
public FeatureStatsAnomaly.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected FeatureStatsAnomaly.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static FeatureStatsAnomaly getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<FeatureStatsAnomaly> parser()
-
getParserForType
public com.google.protobuf.Parser<FeatureStatsAnomaly> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public FeatureStatsAnomaly getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-