public final class Metric extends GeneratedMessage implements MetricOrBuilder
Stores precomputed aggregated analytic data for an entity.
Protobuf type google.backstory.Metric
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DIMENSIONS_FIELD_NUMBER
public static final int DIMENSIONS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
EXPORT_WINDOW_FIELD_NUMBER
public static final int EXPORT_WINDOW_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
FIRST_SEEN_FIELD_NUMBER
public static final int FIRST_SEEN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
LAST_SEEN_FIELD_NUMBER
public static final int LAST_SEEN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MATCH_VARIABLES_FIELD_NUMBER
public static final int MATCH_VARIABLES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
METRIC_NAME_FIELD_NUMBER
public static final int METRIC_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
OUTCOME_VARIABLES_FIELD_NUMBER
public static final int OUTCOME_VARIABLES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SUM_MEASURE_FIELD_NUMBER
public static final int SUM_MEASURE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TIME_RANGE_FIELD_NUMBER
public static final int TIME_RANGE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TOTAL_EVENTS_FIELD_NUMBER
public static final int TOTAL_EVENTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Metric getDefaultInstance()
| Returns |
| Type |
Description |
Metric |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Metric.Builder newBuilder()
newBuilder(Metric prototype)
public static Metric.Builder newBuilder(Metric prototype)
| Parameter |
| Name |
Description |
prototype |
Metric
|
parseDelimitedFrom(InputStream input)
public static Metric parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Metric |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Metric parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Metric |
|
parseFrom(byte[] data)
public static Metric parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Metric |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Metric parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Metric |
|
parseFrom(ByteString data)
public static Metric parseFrom(ByteString data)
| Returns |
| Type |
Description |
Metric |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Metric parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Metric |
|
parseFrom(CodedInputStream input)
public static Metric parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Metric |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Metric parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Metric |
|
parseFrom(InputStream input)
public static Metric parseFrom(InputStream input)
| Returns |
| Type |
Description |
Metric |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Metric parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Metric |
|
parseFrom(ByteBuffer data)
public static Metric parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Metric |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Metric parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Metric |
|
parser()
public static Parser<Metric> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Metric getDefaultInstanceForType()
| Returns |
| Type |
Description |
Metric |
|
getDimensions(int index)
public Metric.Dimension getDimensions(int index)
All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
getDimensionsCount()
public int getDimensionsCount()
All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Returns |
| Type |
Description |
int |
The count of dimensions.
|
getDimensionsList()
public List<Metric.Dimension> getDimensionsList()
All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Returns |
| Type |
Description |
List<Dimension> |
A list containing the dimensions.
|
getDimensionsValue(int index)
public int getDimensionsValue(int index)
All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire of dimensions at the given index.
|
getDimensionsValueList()
public List<Integer> getDimensionsValueList()
All group by clauses used to calculate the metric.
repeated .google.backstory.Metric.Dimension dimensions = 6;
| Returns |
| Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for dimensions.
|
getDisplayName()
public String getDisplayName()
Display name of the custom metric. Google-authored metrics do not have a
display name.
string display_name = 8;
| Returns |
| Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Display name of the custom metric. Google-authored metrics do not have a
display name.
string display_name = 8;
| Returns |
| Type |
Description |
ByteString |
The bytes for displayName.
|
getExportWindow()
public long getExportWindow()
Export window for which the metric was exported.
int64 export_window = 7;
| Returns |
| Type |
Description |
long |
The exportWindow.
|
getFirstSeen()
public Timestamp getFirstSeen()
Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Returns |
| Type |
Description |
Timestamp |
The firstSeen.
|
getFirstSeenOrBuilder()
public TimestampOrBuilder getFirstSeenOrBuilder()
Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
getLastSeen()
public Timestamp getLastSeen()
Time stamp of the last time last time the entity was seen in the
environment.
.google.protobuf.Timestamp last_seen = 2;
| Returns |
| Type |
Description |
Timestamp |
The lastSeen.
|
getLastSeenOrBuilder()
public TimestampOrBuilder getLastSeenOrBuilder()
Time stamp of the last time last time the entity was seen in the
environment.
.google.protobuf.Timestamp last_seen = 2;
getMatchVariables(int index)
public FindingVariable getMatchVariables(int index)
List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter |
| Name |
Description |
index |
int
|
getMatchVariablesCount()
public int getMatchVariablesCount()
List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Returns |
| Type |
Description |
int |
|
getMatchVariablesList()
public List<FindingVariable> getMatchVariablesList()
List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
getMatchVariablesOrBuilder(int index)
public FindingVariableOrBuilder getMatchVariablesOrBuilder(int index)
List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Parameter |
| Name |
Description |
index |
int
|
getMatchVariablesOrBuilderList()
public List<? extends FindingVariableOrBuilder> getMatchVariablesOrBuilderList()
List of match variables used in the custom metric.
repeated .google.backstory.FindingVariable match_variables = 10;
| Returns |
| Type |
Description |
List<? extends com.google.backstory.FindingVariableOrBuilder> |
|
getMetricName()
public Metric.MetricName getMetricName()
Name of the analytic.
.google.backstory.Metric.MetricName metric_name = 5;
getMetricNameValue()
public int getMetricNameValue()
Name of the analytic.
.google.backstory.Metric.MetricName metric_name = 5;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for metricName.
|
getOutcomeVariables(int index)
public FindingVariable getOutcomeVariables(int index)
List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter |
| Name |
Description |
index |
int
|
getOutcomeVariablesCount()
public int getOutcomeVariablesCount()
List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Returns |
| Type |
Description |
int |
|
getOutcomeVariablesList()
public List<FindingVariable> getOutcomeVariablesList()
List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
getOutcomeVariablesOrBuilder(int index)
public FindingVariableOrBuilder getOutcomeVariablesOrBuilder(int index)
List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Parameter |
| Name |
Description |
index |
int
|
getOutcomeVariablesOrBuilderList()
public List<? extends FindingVariableOrBuilder> getOutcomeVariablesOrBuilderList()
List of outcome variables used in the custom metric.
repeated .google.backstory.FindingVariable outcome_variables = 9;
| Returns |
| Type |
Description |
List<? extends com.google.backstory.FindingVariableOrBuilder> |
|
getParserForType()
public Parser<Metric> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSumMeasure()
public Metric.Measure getSumMeasure()
Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
getSumMeasureOrBuilder()
public Metric.MeasureOrBuilder getSumMeasureOrBuilder()
Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
getTimeRange()
public Interval getTimeRange()
Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Returns |
| Type |
Description |
com.google.type.Interval |
The timeRange.
|
getTimeRangeOrBuilder()
public IntervalOrBuilder getTimeRangeOrBuilder()
Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Returns |
| Type |
Description |
com.google.type.IntervalOrBuilder |
|
getTotalEvents()
public long getTotalEvents()
Total number of events used to calculate the given precomputed metric.
int64 total_events = 4;
| Returns |
| Type |
Description |
long |
The totalEvents.
|
hasFirstSeen()
public boolean hasFirstSeen()
Timestamp of the first time the entity was seen in the environment.
.google.protobuf.Timestamp first_seen = 1;
| Returns |
| Type |
Description |
boolean |
Whether the firstSeen field is set.
|
hasLastSeen()
public boolean hasLastSeen()
Time stamp of the last time last time the entity was seen in the
environment.
.google.protobuf.Timestamp last_seen = 2;
| Returns |
| Type |
Description |
boolean |
Whether the lastSeen field is set.
|
hasSumMeasure()
public boolean hasSumMeasure()
Sum of all precomputed measures for the given metric.
.google.backstory.Metric.Measure sum_measure = 3;
| Returns |
| Type |
Description |
boolean |
Whether the sumMeasure field is set.
|
hasTimeRange()
public boolean hasTimeRange()
Time range for which the custom metric was calculated.
.google.type.Interval time_range = 11;
| Returns |
| Type |
Description |
boolean |
Whether the timeRange field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Metric.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Metric.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Metric.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides