Search Results for

    Show / Hide Table of Contents

    Class NodeMetrics

    The snapshot of current sampled health metrics for any monitored process. Collected and gossipped at regular intervals for dynamic cluster management strategies.

    Equality of NodeMetrics is based on its address.

    Inheritance
    object
    NodeMetrics
    Implements
    IEquatable<NodeMetrics>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Cluster.Metrics.Serialization
    Assembly: Akka.Cluster.Metrics.dll
    Syntax
    public sealed class NodeMetrics : IEquatable<NodeMetrics>

    Constructors

    | Edit this page View Source

    NodeMetrics(Address, long, IEnumerable<Metric>)

    Creates new instance of NodeMetrics

    Declaration
    public NodeMetrics(Address address, long timestamp, IEnumerable<NodeMetrics.Types.Metric> metrics)
    Parameters
    Type Name Description
    Address address

    Address of the node the metrics are gathered at

    long timestamp

    the time of sampling, in milliseconds since midnight, January 1, 1970 UTC

    IEnumerable<NodeMetrics.Types.Metric> metrics

    The set of sampled NodeMetrics.Types.Metric

    Properties

    | Edit this page View Source

    Address

    Declaration
    public Address Address { get; }
    Property Value
    Type Description
    Address
    | Edit this page View Source

    Metrics

    Declaration
    public ImmutableHashSet<NodeMetrics.Types.Metric> Metrics { get; }
    Property Value
    Type Description
    ImmutableHashSet<NodeMetrics.Types.Metric>
    | Edit this page View Source

    Timestamp

    Declaration
    public long Timestamp { get; }
    Property Value
    Type Description
    long

    Methods

    | Edit this page View Source

    Equals(NodeMetrics?)

    Declaration
    public bool Equals(NodeMetrics? other)
    Parameters
    Type Name Description
    NodeMetrics other
    Returns
    Type Description
    bool
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    Merge(NodeMetrics)

    Returns the most recent data.

    Declaration
    public NodeMetrics Merge(NodeMetrics that)
    Parameters
    Type Name Description
    NodeMetrics that
    Returns
    Type Description
    NodeMetrics
    | Edit this page View Source

    Metric(string)

    Gets metric by key

    Declaration
    public Option<NodeMetrics.Types.Metric> Metric(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    Option<NodeMetrics.Types.Metric>
    | Edit this page View Source

    SameAs(NodeMetrics)

    Returns true if

    that
    address is the same as this
    Declaration
    public bool SameAs(NodeMetrics that)
    Parameters
    Type Name Description
    NodeMetrics that
    Returns
    Type Description
    bool
    | Edit this page View Source

    Update(NodeMetrics)

    Returns the most recent data with NodeMetrics.Types.EWMA averaging.

    Declaration
    public NodeMetrics Update(NodeMetrics that)
    Parameters
    Type Name Description
    NodeMetrics that
    Returns
    Type Description
    NodeMetrics

    Implements

    IEquatable<T>

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET