Class PrometheusResponse<T>
Models the Prometheus HTTP API response.
Namespace: Neon.Kube
Assembly: Neon.Kube.dll
Syntax
public class PrometheusResponse<T>Type Parameters
| Name | Description | 
|---|---|
| T | Models the Prometheus HTTP API response. | 
Constructors
PrometheusResponse()
Constructor
Declaration
public PrometheusResponse()Properties
Data
Describes the error type.
Declaration
[JsonProperty(PropertyName = "data", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public T Data { get; set; }Property Value
| Type | Description | 
|---|---|
| T | 
Error
Describes the error.
Declaration
[JsonProperty(PropertyName = "error", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string Error { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
ErrorType
Describes the error type.
Declaration
[JsonProperty(PropertyName = "errorType", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string ErrorType { get; set; }Property Value
| Type | Description | 
|---|---|
| string | 
Status
Specifies the status of the request.
Declaration
[JsonProperty(PropertyName = "status", Required = Required.Always, DefaultValueHandling = DefaultValueHandling.Include)]
public PrometheusResponseStatus Status { get; set; }Property Value
| Type | Description | 
|---|---|
| PrometheusResponseStatus | 
Warnings
Lists warnings.
Declaration
[JsonProperty(PropertyName = "warnings", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public List<string> Warnings { get; set; }Property Value
| Type | Description | 
|---|---|
| List<string> |