log_statistics

package
v0.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListLogHistogramOpts

type ListLogHistogramOpts struct {
	// StartTime is the start timestamp accurate to a millisecond.
	StartTime string `json:"start_time" required:"true"`
	// EndTime is the end timestamp accurate to a millisecond.
	EndTime string `json:"end_time" required:"true"`
	// StepInterval is the time step in milliseconds.
	StepInterval int64 `json:"step_interval" required:"true"`
	// GroupID is the log group ID.
	GroupID string `json:"group_id" required:"true"`
	// StreamID is the log stream ID.
	StreamID string `json:"stream_id" required:"true"`
	// Keyword is the keyword to count.
	Keyword string `json:"key_word" required:"true"`
	// IsIterative indicates whether the log query is iterative.
	IsIterative *bool `json:"is_iterative,omitempty"`
}

type ListTimelineTrafficStatisticsOpts

type ListTimelineTrafficStatisticsOpts struct {
	// Timezone is the time zone used to aggregate the results.
	Timezone string `json:"-" q:"timezone" required:"true"`
	// StartTime is the start timestamp in milliseconds.
	StartTime *int64 `json:"start_time" required:"true"`
	// EndTime is the end timestamp in milliseconds.
	EndTime *int64 `json:"end_time" required:"true"`
	// Period is the query interval in hours, from 1 to 24.
	Period int `json:"period" required:"true"`
	// ResourceType is log_group, log_stream, or tenant.
	ResourceType string `json:"resource_type" required:"true"`
	// SearchType is write, index, or storage.
	SearchType string `json:"search_type" required:"true"`
	// ResourceID is the optional log group or log stream ID.
	ResourceID string `json:"resource_id,omitempty"`
}

type ListTopNTrafficStatisticsOpts

type ListTopNTrafficStatisticsOpts struct {
	// EndTime is the end timestamp in milliseconds.
	EndTime *int64 `json:"end_time" required:"true"`
	// IsDesc controls whether data is sorted in descending order.
	IsDesc *bool `json:"is_desc" required:"true"`
	// ResourceType is log_group, log_stream, or tenant.
	ResourceType string `json:"resource_type" required:"true"`
	// SortBy is index, write, or storage.
	SortBy string `json:"sort_by" required:"true"`
	// StartTime is the start timestamp in milliseconds.
	StartTime *int64 `json:"start_time" required:"true"`
	// TopN is the number of records to return, from 1 to 100.
	TopN int `json:"topn" required:"true"`
	// Filter contains exact-match log_group_id or log_stream_id filters.
	Filter *map[string]string `json:"filter" required:"true"`
	// SearchList contains one or more of index, write, and storage.
	SearchList []string `json:"search_list" required:"true"`
}

type LogHistogram

type LogHistogram struct {
	Num       int64 `json:"num"`
	StartTime int64 `json:"startTime"`
	EndTime   int64 `json:"endTime"`
}

type LogHistogramResponse

type LogHistogramResponse struct {
	Count           int64          `json:"count"`
	Histogram       []LogHistogram `json:"histogram"`
	IsQueryComplete bool           `json:"isQueryComplete"`
}

func (*LogHistogramResponse) UnmarshalJSON

func (r *LogHistogramResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON decodes the JSON-encoded histogram returned by LTS.

type TimelineStatistic

type TimelineStatistic struct {
	Timestamp int64   `json:"timestamp"`
	Value     float64 `json:"value"`
}

type TrafficStatistic

type TrafficStatistic struct {
	IndexTraffic       float64 `json:"index_traffic"`
	Storage            float64 `json:"storage"`
	WriteTraffic       float64 `json:"write_traffic"`
	LogGroupID         string  `json:"log_group_id"`
	LogGroupName       string  `json:"log_group_name"`
	LogStreamID        string  `json:"log_stream_id"`
	LogStreamName      string  `json:"log_stream_name"`
	LogGroupNameAlias  string  `json:"log_group_name_alias"`
	LogStreamNameAlias string  `json:"log_stream_name_alias"`
}

func ListTopNTrafficStatistics

func ListTopNTrafficStatistics(
	client *golangsdk.ServiceClient,
	opts ListTopNTrafficStatisticsOpts,
) ([]TrafficStatistic, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL