Package com.nettoolkit.dashboards
Class CreateChannelDatumRequest
java.lang.Object
com.nettoolkit.internal.request.BaseApiRequest
com.nettoolkit.internal.request.PostRequest
com.nettoolkit.dashboards.CreateChannelDatumRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalValues(JSONObject jsonAdditionalValues) Sets the datum additional values JSON.additionalValues(String strAdditionalValuesJson) Sets the datum additional values JSON string.Sets the channel for this datum by ID.channelName(String strChannelName) Sets the channel for this datum by name.protected HttpContentTypeprotected StringgetPath()send()Sends the request.stackTrace(Throwable throwable) Sets the datum text blob to a stack trace.Sets the datum text blob.Sets the datum value.Methods inherited from class com.nettoolkit.internal.request.PostRequest
getHttpMethod, newHttpRequestBuilder, serializeParametersMethods inherited from class com.nettoolkit.internal.request.BaseApiRequest
getClient, getParameters, toHttpRequest, toString
-
Constructor Details
-
CreateChannelDatumRequest
-
-
Method Details
-
getContentType
- Specified by:
getContentTypein classPostRequest
-
getPath
- Specified by:
getPathin classBaseApiRequest
-
channelName
Sets the channel for this datum by name. required unless channel ID is given- Parameters:
strChannelName- the channel name- Returns:
- this
-
channelId
Sets the channel for this datum by ID. required unless channel name is given- Parameters:
channelId- the channel ID- Returns:
- this
-
value
Sets the datum value.- Parameters:
dValue- the numeric value- Returns:
- this
-
additionalValues
Sets the datum additional values JSON.- Parameters:
jsonAdditionalValues- the additional values JSON- Returns:
- this
-
additionalValues
Sets the datum additional values JSON string. This is an escape hatch for situations where it's inconvenient to use the providedJSONObject. If you use this function, you must ensure that the given string represents a valid JSON object.- Parameters:
strAdditionalValuesJson- the additional values JSON string- Returns:
- this
-
textBlob
Sets the datum text blob. This can be useful for sending arbitrary text data.- Parameters:
strTextBlob- the text blob- Returns:
- this
-
stackTrace
Sets the datum text blob to a stack trace.- Parameters:
throwable- a throwable containing the stack trace to save- Returns:
- this
-
send
Sends the request.- Returns:
- a channel datum object
- Throws:
NetToolKitException
-