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,java.io.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 typeproto.MetricsData- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInstanceCommunication.MetricsData.Buildermessage 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<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAVGPROCESSLATENCY_1MIN_FIELD_NUMBERstatic intAVGPROCESSLATENCY_FIELD_NUMBERstatic intLASTINVOCATION_FIELD_NUMBERstatic intPROCESSEDSUCCESSFULLYTOTAL_1MIN_FIELD_NUMBERstatic intPROCESSEDSUCCESSFULLYTOTAL_FIELD_NUMBERstatic intRECEIVEDTOTAL_1MIN_FIELD_NUMBERstatic intRECEIVEDTOTAL_FIELD_NUMBERstatic intSYSTEMEXCEPTIONSTOTAL_1MIN_FIELD_NUMBERstatic intSYSTEMEXCEPTIONSTOTAL_FIELD_NUMBERstatic intUSEREXCEPTIONSTOTAL_1MIN_FIELD_NUMBERstatic intUSEREXCEPTIONSTOTAL_FIELD_NUMBERstatic intUSERMETRICS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsUserMetrics(java.lang.String key)User defined metricsbooleanequals(java.lang.Object obj)doublegetAvgProcessLatency()Average process latency for functiondoublegetAvgProcessLatency1Min()double avgProcessLatency_1min = 15;static InstanceCommunication.MetricsDatagetDefaultInstance()InstanceCommunication.MetricsDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()longgetLastInvocation()Timestamp of when the function was last invokedcom.google.protobuf.Parser<InstanceCommunication.MetricsData>getParserForType()longgetProcessedSuccessfullyTotal()Total number of records successfully processed by user functionlonggetProcessedSuccessfullyTotal1Min()int64 processedSuccessfullyTotal_1min = 12;longgetReceivedTotal()Total number of records function received from sourcelonggetReceivedTotal1Min()int64 receivedTotal_1min = 10;intgetSerializedSize()longgetSystemExceptionsTotal()Total number of system exceptions thrownlonggetSystemExceptionsTotal1Min()int64 systemExceptionsTotal_1min = 13;com.google.protobuf.UnknownFieldSetgetUnknownFields()longgetUserExceptionsTotal()Total number of user exceptions thrownlonggetUserExceptionsTotal1Min()int64 userExceptionsTotal_1min = 14;java.util.Map<java.lang.String,java.lang.Double>getUserMetrics()Deprecated.intgetUserMetricsCount()User defined metricsjava.util.Map<java.lang.String,java.lang.Double>getUserMetricsMap()User defined metricsdoublegetUserMetricsOrDefault(java.lang.String key, double defaultValue)User defined metricsdoublegetUserMetricsOrThrow(java.lang.String key)User defined metricsinthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static InstanceCommunication.MetricsData.BuildernewBuilder()static InstanceCommunication.MetricsData.BuildernewBuilder(InstanceCommunication.MetricsData prototype)InstanceCommunication.MetricsData.BuildernewBuilderForType()protected InstanceCommunication.MetricsData.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static InstanceCommunication.MetricsDataparseDelimitedFrom(java.io.InputStream input)static InstanceCommunication.MetricsDataparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceCommunication.MetricsDataparseFrom(byte[] data)static InstanceCommunication.MetricsDataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceCommunication.MetricsDataparseFrom(com.google.protobuf.ByteString data)static InstanceCommunication.MetricsDataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceCommunication.MetricsDataparseFrom(com.google.protobuf.CodedInputStream input)static InstanceCommunication.MetricsDataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceCommunication.MetricsDataparseFrom(java.io.InputStream input)static InstanceCommunication.MetricsDataparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InstanceCommunication.MetricsDataparseFrom(java.nio.ByteBuffer data)static InstanceCommunication.MetricsDataparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<InstanceCommunication.MetricsData>parser()InstanceCommunication.MetricsData.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, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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
-
RECEIVEDTOTAL_FIELD_NUMBER
public static final int RECEIVEDTOTAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECEIVEDTOTAL_1MIN_FIELD_NUMBER
public static final int RECEIVEDTOTAL_1MIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROCESSEDSUCCESSFULLYTOTAL_FIELD_NUMBER
public static final int PROCESSEDSUCCESSFULLYTOTAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROCESSEDSUCCESSFULLYTOTAL_1MIN_FIELD_NUMBER
public static final int PROCESSEDSUCCESSFULLYTOTAL_1MIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYSTEMEXCEPTIONSTOTAL_FIELD_NUMBER
public static final int SYSTEMEXCEPTIONSTOTAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYSTEMEXCEPTIONSTOTAL_1MIN_FIELD_NUMBER
public static final int SYSTEMEXCEPTIONSTOTAL_1MIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USEREXCEPTIONSTOTAL_FIELD_NUMBER
public static final int USEREXCEPTIONSTOTAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USEREXCEPTIONSTOTAL_1MIN_FIELD_NUMBER
public static final int USEREXCEPTIONSTOTAL_1MIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVGPROCESSLATENCY_FIELD_NUMBER
public static final int AVGPROCESSLATENCY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVGPROCESSLATENCY_1MIN_FIELD_NUMBER
public static final int AVGPROCESSLATENCY_1MIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LASTINVOCATION_FIELD_NUMBER
public static final int LASTINVOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USERMETRICS_FIELD_NUMBER
public static final int USERMETRICS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin 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
public boolean containsUserMetrics(java.lang.String key)
User defined metrics
map<string, double> userMetrics = 9;- Specified by:
containsUserMetricsin interfaceInstanceCommunication.MetricsDataOrBuilder
-
getUserMetrics
@Deprecated public java.util.Map<java.lang.String,java.lang.Double> getUserMetrics()
Deprecated.UsegetUserMetricsMap()instead.- Specified by:
getUserMetricsin interfaceInstanceCommunication.MetricsDataOrBuilder
-
getUserMetricsMap
public java.util.Map<java.lang.String,java.lang.Double> getUserMetricsMap()
User defined metrics
map<string, double> userMetrics = 9;- Specified by:
getUserMetricsMapin interfaceInstanceCommunication.MetricsDataOrBuilder
-
getUserMetricsOrDefault
public double getUserMetricsOrDefault(java.lang.String key, double defaultValue)User defined metrics
map<string, double> userMetrics = 9;- Specified by:
getUserMetricsOrDefaultin interfaceInstanceCommunication.MetricsDataOrBuilder
-
getUserMetricsOrThrow
public double getUserMetricsOrThrow(java.lang.String key)
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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.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 InstanceCommunication.MetricsData parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(java.nio.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
public static InstanceCommunication.MetricsData parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static InstanceCommunication.MetricsData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static InstanceCommunication.MetricsData parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static InstanceCommunication.MetricsData parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public InstanceCommunication.MetricsData.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static InstanceCommunication.MetricsData.Builder newBuilder()
-
newBuilder
public static InstanceCommunication.MetricsData.Builder newBuilder(InstanceCommunication.MetricsData prototype)
-
toBuilder
public InstanceCommunication.MetricsData.Builder 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
public static InstanceCommunication.MetricsData getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<InstanceCommunication.MetricsData> parser()
-
getParserForType
public com.google.protobuf.Parser<InstanceCommunication.MetricsData> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public InstanceCommunication.MetricsData getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-