Class DashboardColor
Defines an encoding of data value into color space.
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class DashboardColor : IEquatable<DashboardColor>
Constructors
DashboardColor()
Initializes a new instance of the Dashboard
Declaration
protected DashboardColor()
DashboardColor(String, DashboardColor.TypeEnum, String, String, Nullable<Single>)
Initializes a new instance of the Dashboard
Declaration
public DashboardColor(string id = null, DashboardColor.TypeEnum type = (DashboardColor.TypeEnum)0, string hex = null, string name = null, float? value = null)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The unique ID of the view color. (required). |
Dashboard |
type | Type is how the color is used. (required). |
System. |
hex | The hex number of the color (required). |
System. |
name | The user-facing name of the hex color. (required). |
System. |
value | The data value mapped to this color. (required). |
Properties
Hex
The hex number of the color
Declaration
public string Hex { get; set; }
Property Value
Type | Description |
---|---|
System. |
The hex number of the color |
Id
The unique ID of the view color.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System. |
The unique ID of the view color. |
Name
The user-facing name of the hex color.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
The user-facing name of the hex color. |
Type
Type is how the color is used.
Declaration
public DashboardColor.TypeEnum Type { get; set; }
Property Value
Type | Description |
---|---|
Dashboard |
Type is how the color is used. |
Value
The data value mapped to this color.
Declaration
public float? Value { get; set; }
Property Value
Type | Description |
---|---|
System. |
The data value mapped to this color. |
Methods
Equals(DashboardColor)
Returns true if DashboardColor instances are equal
Declaration
public bool Equals(DashboardColor input)
Parameters
Type | Name | Description |
---|---|---|
Dashboard |
input | Instance of DashboardColor to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System. |
input | Object to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System. |
JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
String presentation of the object |