model.go
model.go - Overview
-
Overview This file defines the
ThirdPartyApis
struct used for structuring data related to third-party API requests. -
Detailed Documentation
ThirdPartyApis
- Purpose: Represents the structure for data required to query third-party APIs. It contains information such as start and end times, display preferences, filtering criteria, and grouping attributes.
- Parameters: None
- Returns: None
Fields of ThirdPartyApis
struct:
Start
:- Purpose: Represents the start time for the API query.
- Type:
int64
- Description: Unix timestamp indicating the start of the time range.
End
:- Purpose: Represents the end time for the API query.
- Type:
int64
- Description: Unix timestamp indicating the end of the time range.
ShowIp
:- Purpose: Indicates whether IP addresses should be displayed in the results.
- Type:
bool
- Description: Boolean flag, omitempty tag means it will not be included if the value is false
Domain
:- Purpose: Represents the domain for the API query.
- Type:
int64
- Description: Represents domain ID
Endpoint
:- Purpose: Specifies the API endpoint to be queried.
- Type:
string
- Description: The URL endpoint for the third-party API.
Filters
:- Purpose: Contains the filtering criteria for the API query.
- Type:
v3.FilterSet
- Description: A set of filters to apply to the query, leveraging the
FilterSet
type from thev3
package.
GroupBy
:- Purpose: Specifies the attributes by which the results should be grouped.
- Type:
[]v3.AttributeKey
- Description: A slice of
AttributeKey
values from thev3
package, indicating the attributes for grouping.
-
Code Examples None
-
Clarity and Accuracy The documentation is derived directly from the code.
-
Markdown & MDX Perfection No issues found.
-
Edge Cases To Avoid Breaking MDX No issues found.
Include in Getting Started: NO