Class Metrics
- Namespace
- Temporalio.Api.Cloud.Account.V1
- Assembly
- Temporalio.dll
public sealed class Metrics : IMessage<Metrics>, IEquatable<Metrics>, IDeepCloneable<Metrics>, IBufferMessage, IMessage
- Inheritance
-
Metrics
- Inherited Members
Constructors
Metrics()
public Metrics()
Metrics(Metrics)
public Metrics(Metrics other)
Parameters
otherMetrics
Fields
UriFieldNumber
Field number for the "uri" field.
public const int UriFieldNumber = 1
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<Metrics> Parser { get; }
Property Value
- MessageParser<Metrics>
Uri
The prometheus metrics endpoint uri. This is only populated when the metrics is enabled in the metrics specification.
public string Uri { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public Metrics Clone()
Returns
- Metrics
A deep clone of this object.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
Equals(Metrics)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Metrics other)
Parameters
otherMetricsAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(Metrics)
Merges the given message into this one.
public void MergeFrom(Metrics other)
Parameters
otherMetrics
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.