* Add models for node metrics * Add models for pod metrics * Add extension method for node metrics * Add extension method for pods metrics * dotnet format * fix type: use of interface type * Add metrics sample * Add tests for node and pod metrics
33 lines
938 B
C#
33 lines
938 B
C#
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
namespace k8s.Models
|
|
{
|
|
public class NodeMetricsList
|
|
{
|
|
/// <summary>
|
|
/// Defines the versioned schema of this representation of an object.
|
|
/// </summary>
|
|
[JsonProperty(PropertyName = "apiVersion")]
|
|
public string ApiVersion { get; set; }
|
|
|
|
/// <summary>
|
|
/// Defines the REST resource this object represents.
|
|
/// </summary>
|
|
[JsonProperty(PropertyName = "kind")]
|
|
public string Kind { get; set; }
|
|
|
|
/// <summary>
|
|
/// The kubernetes standard object's metadata.
|
|
/// </summary>
|
|
[JsonProperty(PropertyName = "metadata")]
|
|
public V1ObjectMeta Metadata { get; set; }
|
|
|
|
/// <summary>
|
|
/// The list of node metrics.
|
|
/// </summary>
|
|
[JsonProperty(PropertyName = "items")]
|
|
public IEnumerable<NodeMetrics> Items { get; set; }
|
|
}
|
|
}
|