model.go
model.go - Overview
-
Overview This file defines the
QueueListRequest
struct and its associatedValidate
method, used for handling and validating requests for listing queues. -
Detailed Documentation
QueueListRequest
- Purpose: Represents a request for listing queues, including start and end times, filters, and a limit on the number of results.
- Parameters:
Start
(int64): The start time for the queue list request, represented as Unix nanoseconds.End
(int64): The end time for the queue list request, represented as Unix nanoseconds.Filters
(*v3.FilterSet): A set of filters to apply to the queue list request. Usesgithub.com/SigNoz/signoz/pkg/query-service/model/v3
Limit
(int): The maximum number of queues to return in the list.
- Returns: None
- Parameters:
Validate
- Purpose: Validates the
QueueListRequest
to ensure that the start and end times are non-negative and that the filters are valid.- Parameters: None
- Returns: error. Returns an error if validation fails; otherwise, returns
nil
.
-
Code Examples None
-
Clarity and Accuracy The documentation is based on the code provided.
-
Markdown & MDX Perfection The markdown is properly formatted.
-
Edge Cases To Avoid Breaking MDX No MDX errors are present.
-
Getting Started Relevance Include in Getting Started: NO