Class InstanceCommunication.MetricsData
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.apache.pulsar.functions.proto.InstanceCommunication.MetricsData
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,InstanceCommunication.MetricsDataOrBuilder
- Enclosing class:
- InstanceCommunication
public static final class InstanceCommunication.MetricsData
extends com.google.protobuf.GeneratedMessageV3
implements InstanceCommunication.MetricsDataOrBuilder
message DataDigest {
double count = 1;
double sum = 2;
double max = 3;
double min = 4;
}
map<string, DataDigest> metrics = 1 [deprecated=true];
Protobuf type proto.MetricsData- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classmessage DataDigest { double count = 1; double sum = 2; double max = 3; double min = 4; } map<string, DataDigest> metrics = 1 [deprecated=true];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 Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanUser defined metricsbooleandoubleAverage process latency for functiondoubledouble avgProcessLatency_1min = 15;static final com.google.protobuf.Descriptors.DescriptorlongTimestamp of when the function was last invokedcom.google.protobuf.Parser<InstanceCommunication.MetricsData>longTotal number of records successfully processed by user functionlongint64 processedSuccessfullyTotal_1min = 12;longTotal number of records function received from sourcelongint64 receivedTotal_1min = 10;intlongTotal number of system exceptions thrownlongint64 systemExceptionsTotal_1min = 13;longTotal number of user exceptions thrownlongint64 userExceptionsTotal_1min = 14;Deprecated.intUser defined metricsUser defined metricsdoublegetUserMetricsOrDefault(String key, double defaultValue) User defined metricsdoubleUser defined metricsinthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(InstanceCommunication.MetricsData prototype) newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<InstanceCommunication.MetricsData>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RECEIVEDTOTAL_FIELD_NUMBER
public static final int RECEIVEDTOTAL_FIELD_NUMBER- See Also:
-
RECEIVEDTOTAL_1MIN_FIELD_NUMBER
public static final int RECEIVEDTOTAL_1MIN_FIELD_NUMBER- See Also:
-
PROCESSEDSUCCESSFULLYTOTAL_FIELD_NUMBER
public static final int PROCESSEDSUCCESSFULLYTOTAL_FIELD_NUMBER- See Also:
-
PROCESSEDSUCCESSFULLYTOTAL_1MIN_FIELD_NUMBER
public static final int PROCESSEDSUCCESSFULLYTOTAL_1MIN_FIELD_NUMBER- See Also:
-
SYSTEMEXCEPTIONSTOTAL_FIELD_NUMBER
public static final int SYSTEMEXCEPTIONSTOTAL_FIELD_NUMBER- See Also:
-
SYSTEMEXCEPTIONSTOTAL_1MIN_FIELD_NUMBER
public static final int SYSTEMEXCEPTIONSTOTAL_1MIN_FIELD_NUMBER- See Also:
-
USEREXCEPTIONSTOTAL_FIELD_NUMBER
public static final int USEREXCEPTIONSTOTAL_FIELD_NUMBER- See Also:
-
USEREXCEPTIONSTOTAL_1MIN_FIELD_NUMBER
public static final int USEREXCEPTIONSTOTAL_1MIN_FIELD_NUMBER- See Also:
-
AVGPROCESSLATENCY_FIELD_NUMBER
public static final int AVGPROCESSLATENCY_FIELD_NUMBER- See Also:
-
AVGPROCESSLATENCY_1MIN_FIELD_NUMBER
public static final int AVGPROCESSLATENCY_1MIN_FIELD_NUMBER- See Also:
-
LASTINVOCATION_FIELD_NUMBER
public static final int LASTINVOCATION_FIELD_NUMBER- See Also:
-
USERMETRICS_FIELD_NUMBER
public static final int USERMETRICS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getReceivedTotal
public long getReceivedTotal()Total number of records function received from source
int64 receivedTotal = 2;- Specified by:
getReceivedTotalin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The receivedTotal.
-
getReceivedTotal1Min
public long getReceivedTotal1Min()int64 receivedTotal_1min = 10;- Specified by:
getReceivedTotal1Minin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The receivedTotal1min.
-
getProcessedSuccessfullyTotal
public long getProcessedSuccessfullyTotal()Total number of records successfully processed by user function
int64 processedSuccessfullyTotal = 4;- Specified by:
getProcessedSuccessfullyTotalin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The processedSuccessfullyTotal.
-
getProcessedSuccessfullyTotal1Min
public long getProcessedSuccessfullyTotal1Min()int64 processedSuccessfullyTotal_1min = 12;- Specified by:
getProcessedSuccessfullyTotal1Minin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The processedSuccessfullyTotal1min.
-
getSystemExceptionsTotal
public long getSystemExceptionsTotal()Total number of system exceptions thrown
int64 systemExceptionsTotal = 5;- Specified by:
getSystemExceptionsTotalin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The systemExceptionsTotal.
-
getSystemExceptionsTotal1Min
public long getSystemExceptionsTotal1Min()int64 systemExceptionsTotal_1min = 13;- Specified by:
getSystemExceptionsTotal1Minin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The systemExceptionsTotal1min.
-
getUserExceptionsTotal
public long getUserExceptionsTotal()Total number of user exceptions thrown
int64 userExceptionsTotal = 6;- Specified by:
getUserExceptionsTotalin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The userExceptionsTotal.
-
getUserExceptionsTotal1Min
public long getUserExceptionsTotal1Min()int64 userExceptionsTotal_1min = 14;- Specified by:
getUserExceptionsTotal1Minin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The userExceptionsTotal1min.
-
getAvgProcessLatency
public double getAvgProcessLatency()Average process latency for function
double avgProcessLatency = 7;- Specified by:
getAvgProcessLatencyin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The avgProcessLatency.
-
getAvgProcessLatency1Min
public double getAvgProcessLatency1Min()double avgProcessLatency_1min = 15;- Specified by:
getAvgProcessLatency1Minin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The avgProcessLatency1min.
-
getLastInvocation
public long getLastInvocation()Timestamp of when the function was last invoked
int64 lastInvocation = 8;- Specified by:
getLastInvocationin interfaceInstanceCommunication.MetricsDataOrBuilder- Returns:
- The lastInvocation.
-
getUserMetricsCount
public int getUserMetricsCount()Description copied from interface:InstanceCommunication.MetricsDataOrBuilderUser defined metrics
map<string, double> userMetrics = 9;- Specified by:
getUserMetricsCountin interfaceInstanceCommunication.MetricsDataOrBuilder
-
containsUserMetrics
User defined metrics
map<string, double> userMetrics = 9;- Specified by:
containsUserMetricsin interfaceInstanceCommunication.MetricsDataOrBuilder
-
getUserMetrics
Deprecated.UsegetUserMetricsMap()instead.- Specified by:
getUserMetricsin interfaceInstanceCommunication.MetricsDataOrBuilder
-
getUserMetricsMap
User defined metrics
map<string, double> userMetrics = 9;- Specified by:
getUserMetricsMapin interfaceInstanceCommunication.MetricsDataOrBuilder
-
getUserMetricsOrDefault
User defined metrics
map<string, double> userMetrics = 9;- Specified by:
getUserMetricsOrDefaultin interfaceInstanceCommunication.MetricsDataOrBuilder
-
getUserMetricsOrThrow
User defined metrics
map<string, double> userMetrics = 9;- Specified by:
getUserMetricsOrThrowin interfaceInstanceCommunication.MetricsDataOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- 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
- 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 InstanceCommunication.MetricsData parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static InstanceCommunication.MetricsData parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static InstanceCommunication.MetricsData parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static InstanceCommunication.MetricsData.Builder newBuilder(InstanceCommunication.MetricsData prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected InstanceCommunication.MetricsData.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-