Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetPartitionMonitorOpts ¶
type GetPartitionMonitorOpts struct { // Name of the stream to be queried. // Maximum: 60 StreamName string // Partition No. // The value can be in either of the following formats: // - shardId-0000000000 // - 0 // For example, if a stream has three partitions, the partition identifiers are 0, 1, and 2, or // shardId-0000000000, // shardId-0000000001, // and shardId-0000000002, // respectively. PartitionId string // Partition monitoring metric. // (Either label or label_list must be specified. // If both label_list and label are specified, label_list prevails.) // - total_put_bytes_per_stream: total input traffic (byte) // - total_get_bytes_per_stream: total output traffic (byte) // - total_put_records_per_stream: total number of input records // - total_get_records_per_stream: total number of output records // Enumeration values: // total_put_bytes_per_stream // total_get_bytes_per_stream // total_put_records_per_stream // total_get_records_per_stream Label string `q:"label,omitempty"` // List of labels separated by commas (,) to query multiple labels in batches. // (Either label or label_list must be specified. // If both label_list and label exist, label_list prevails.) LabelList string `q:"label_list,omitempty"` // Monitoring start time, which is a 10-digit timestamp. StartTime int64 `q:"start_time"` // Monitoring end time, which is a 10-digit timestamp. EndTime int64 `q:"end_time"` }
type GetPartitionMonitorResponse ¶
type GetPartitionMonitorResponse struct { // Data object. Metrics Metrics `json:"metrics,omitempty"` }
func GetPartitionMonitor ¶
func GetPartitionMonitor(client *golangsdk.ServiceClient, opts GetPartitionMonitorOpts) (*GetPartitionMonitorResponse, error)
type GetStreamMonitorOpts ¶
type GetStreamMonitorOpts struct { // Name of the stream to be queried. // Maximum: 60 StreamName string // Stream monitoring metric. // (Either label or label_list must be specified. // If both label_list and label are specified, label_list prevails.) // - total_put_bytes_per_stream: total input traffic (byte) // - total_get_bytes_per_stream: total output traffic (byte) // - total_put_records_per_stream: total number of input records // - total_get_records_per_stream: total number of output records // - total_put_req_latency: average processing time of upload requests (millisecond) // - total_get_req_latency: average processing time of download requests (millisecond) // - total_put_req_suc_per_stream: number of successful upload requests // - total_get_req_suc_per_stream: number of successful download requests // - traffic_control_put: number of rejected upload requests due to flow control // - traffic_control_get: number of rejected download requests due to flow control // Enumeration values: // total_put_bytes_per_stream // total_get_bytes_per_stream // total_put_records_per_stream // total_get_records_per_stream // total_put_req_latency // total_get_req_latency // total_put_req_suc_per_stream // total_get_req_suc_per_stream // traffic_control_put // traffic_control_get Label string `q:"label,omitempty"` // List of labels separated by commas (,) to query multiple labels in batches. // (Either label or label_list must be set. // If both label_list and label exist, label_list prevails.) LabelList string `q:"label_list,omitempty"` // Monitoring start time, which is a 10-digit timestamp. StartTime int64 `q:"start_time"` // Monitoring end time, which is a 10-digit timestamp. EndTime int64 `q:"end_time"` }
type GetStreamMonitorResponse ¶
type GetStreamMonitorResponse struct { // Data object. Metrics Metrics `json:"metrics,omitempty"` // List of monitored data objects. MetricsList []Metrics `json:"metrics_list,omitempty"` }
func GetStreamMonitor ¶
func GetStreamMonitor(client *golangsdk.ServiceClient, opts GetStreamMonitorOpts) (*GetStreamMonitorResponse, error)
Click to show internal directories.
Click to hide internal directories.