Package org.dashbuilder.dataset.json
Class PrometheusDefJSONMarshaller
- java.lang.Object
-
- org.dashbuilder.dataset.json.PrometheusDefJSONMarshaller
-
- All Implemented Interfaces:
DataSetDefJSONMarshallerExt<PrometheusDataSetDef>
public class PrometheusDefJSONMarshaller extends Object implements DataSetDefJSONMarshallerExt<PrometheusDataSetDef>
-
-
Field Summary
Fields Modifier and Type Field Description static PrometheusDefJSONMarshallerINSTANCEstatic StringPASSWORDstatic StringQUERYstatic StringSERVER_URLstatic StringUSER
-
Constructor Summary
Constructors Constructor Description PrometheusDefJSONMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromJson(PrometheusDataSetDef def, org.dashbuilder.json.JsonObject json)Updates the given data set def instance with the status stored into the json object passed as a parameter.voidtoJson(PrometheusDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)Writes into the given json object the status of the data set def instance.
-
-
-
Field Detail
-
INSTANCE
public static final PrometheusDefJSONMarshaller INSTANCE
-
SERVER_URL
public static final String SERVER_URL
- See Also:
- Constant Field Values
-
QUERY
public static final String QUERY
- See Also:
- Constant Field Values
-
USER
public static final String USER
- See Also:
- Constant Field Values
-
PASSWORD
public static final String PASSWORD
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromJson
public void fromJson(PrometheusDataSetDef def, org.dashbuilder.json.JsonObject json)
Description copied from interface:DataSetDefJSONMarshallerExtUpdates the given data set def instance with the status stored into the json object passed as a parameter.- Specified by:
fromJsonin interfaceDataSetDefJSONMarshallerExt<PrometheusDataSetDef>
-
toJson
public void toJson(PrometheusDataSetDef dataSetDef, org.dashbuilder.json.JsonObject json)
Description copied from interface:DataSetDefJSONMarshallerExtWrites into the given json object the status of the data set def instance.- Specified by:
toJsonin interfaceDataSetDefJSONMarshallerExt<PrometheusDataSetDef>
-
-