Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deserialize ¶
func Deserialize(jsonData string) (*prompb.WriteRequest, error)
Deserialize ... jsonData example: {"labels":{"__name__":"prometheus_tsdb_time_retentions_total","instance":"localhost:9090","job":"prometheus"},"name":"prometheus_tsdb_time_retentions_total","timestamp":"2023-10-26T09:19:41Z","value":"0"}
func DeserializeList ¶
func DeserializeList(jsonDataList []string) *prompb.WriteRequest
DeserializeList ... jsonDataList example: [{"labels":{"__name__":"prometheus_tsdb_time_retentions_total","instance":"localhost:9090","job":"prometheus"},"name":"prometheus_tsdb_time_retentions_total","timestamp":"2023-10-26T09:19:41Z","value":"0"}]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.