Name | Type | Description | Notes |
---|---|---|---|
QueryString | string | The metrics, traces or logs query. | |
QueryType | string | The type of the query, either `Metrics`, `Traces` or `Logs`. | |
QueryKey | string | The key for metric, traces or log queries. Used as an identifier for queries. | |
MetricsQueryMode | Pointer to string | The mode of the metrics query that the user was editing. Can be `Basic` or `Advanced`. Will ONLY be specified for metrics queries. | [optional] |
MetricsQueryData | Pointer to MetricsQueryData | [optional] | |
TracesQueryData | Pointer to TracesQueryData | [optional] | |
ParseMode | Pointer to string | This field only applies for queryType of `Logs` but other query types may be supported in the future. Define the parsing mode to scan the JSON format log messages. Possible values are: 1. `Auto` 2. `Manual` In AutoParse mode, the system automatically figures out fields to parse based on the search query. While in the Manual mode, no fields are parsed out automatically. For more information see Dynamic Parsing. | [optional] [default to "Auto"] |
TimeSource | Pointer to string | This field only applies for queryType of `Logs` but other query types may be supported in the future. Define the time source of this query. Possible values are `Message` and `Receipt`. `Message` will use the timeStamp on the message, while `Receipt` will use the timestamp it was received by Sumo. | [optional] [default to "Message"] |
func NewQuery(queryString string, queryType string, queryKey string, ) *Query
NewQuery instantiates a new Query object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewQueryWithDefaults() *Query
NewQueryWithDefaults instantiates a new Query object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Query) GetQueryString() string
GetQueryString returns the QueryString field if non-nil, zero value otherwise.
func (o *Query) GetQueryStringOk() (*string, bool)
GetQueryStringOk returns a tuple with the QueryString field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Query) SetQueryString(v string)
SetQueryString sets QueryString field to given value.
func (o *Query) GetQueryType() string
GetQueryType returns the QueryType field if non-nil, zero value otherwise.
func (o *Query) GetQueryTypeOk() (*string, bool)
GetQueryTypeOk returns a tuple with the QueryType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Query) SetQueryType(v string)
SetQueryType sets QueryType field to given value.
func (o *Query) GetQueryKey() string
GetQueryKey returns the QueryKey field if non-nil, zero value otherwise.
func (o *Query) GetQueryKeyOk() (*string, bool)
GetQueryKeyOk returns a tuple with the QueryKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Query) SetQueryKey(v string)
SetQueryKey sets QueryKey field to given value.
func (o *Query) GetMetricsQueryMode() string
GetMetricsQueryMode returns the MetricsQueryMode field if non-nil, zero value otherwise.
func (o *Query) GetMetricsQueryModeOk() (*string, bool)
GetMetricsQueryModeOk returns a tuple with the MetricsQueryMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Query) SetMetricsQueryMode(v string)
SetMetricsQueryMode sets MetricsQueryMode field to given value.
func (o *Query) HasMetricsQueryMode() bool
HasMetricsQueryMode returns a boolean if a field has been set.
func (o *Query) GetMetricsQueryData() MetricsQueryData
GetMetricsQueryData returns the MetricsQueryData field if non-nil, zero value otherwise.
func (o *Query) GetMetricsQueryDataOk() (*MetricsQueryData, bool)
GetMetricsQueryDataOk returns a tuple with the MetricsQueryData field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Query) SetMetricsQueryData(v MetricsQueryData)
SetMetricsQueryData sets MetricsQueryData field to given value.
func (o *Query) HasMetricsQueryData() bool
HasMetricsQueryData returns a boolean if a field has been set.
func (o *Query) GetTracesQueryData() TracesQueryData
GetTracesQueryData returns the TracesQueryData field if non-nil, zero value otherwise.
func (o *Query) GetTracesQueryDataOk() (*TracesQueryData, bool)
GetTracesQueryDataOk returns a tuple with the TracesQueryData field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Query) SetTracesQueryData(v TracesQueryData)
SetTracesQueryData sets TracesQueryData field to given value.
func (o *Query) HasTracesQueryData() bool
HasTracesQueryData returns a boolean if a field has been set.
func (o *Query) GetParseMode() string
GetParseMode returns the ParseMode field if non-nil, zero value otherwise.
func (o *Query) GetParseModeOk() (*string, bool)
GetParseModeOk returns a tuple with the ParseMode field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Query) SetParseMode(v string)
SetParseMode sets ParseMode field to given value.
func (o *Query) HasParseMode() bool
HasParseMode returns a boolean if a field has been set.
func (o *Query) GetTimeSource() string
GetTimeSource returns the TimeSource field if non-nil, zero value otherwise.
func (o *Query) GetTimeSourceOk() (*string, bool)
GetTimeSourceOk returns a tuple with the TimeSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Query) SetTimeSource(v string)
SetTimeSource sets TimeSource field to given value.
func (o *Query) HasTimeSource() bool
HasTimeSource returns a boolean if a field has been set.