Files
csharp/src/KubernetesClient/NodeMetricsList.cs
Ludovic Alarcon 5411bb6651 Nodes and pods metrics (#466)
* 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
2020-08-02 21:53:42 -07:00

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; }
}
}