Skip to content

Latest commit

 

History

History
223 lines (120 loc) · 7.1 KB

Query.md

File metadata and controls

223 lines (120 loc) · 7.1 KB

Query

Properties

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"]

Methods

NewQuery

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

NewQueryWithDefaults

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

GetQueryString

func (o *Query) GetQueryString() string

GetQueryString returns the QueryString field if non-nil, zero value otherwise.

GetQueryStringOk

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.

SetQueryString

func (o *Query) SetQueryString(v string)

SetQueryString sets QueryString field to given value.

GetQueryType

func (o *Query) GetQueryType() string

GetQueryType returns the QueryType field if non-nil, zero value otherwise.

GetQueryTypeOk

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.

SetQueryType

func (o *Query) SetQueryType(v string)

SetQueryType sets QueryType field to given value.

GetQueryKey

func (o *Query) GetQueryKey() string

GetQueryKey returns the QueryKey field if non-nil, zero value otherwise.

GetQueryKeyOk

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.

SetQueryKey

func (o *Query) SetQueryKey(v string)

SetQueryKey sets QueryKey field to given value.

GetMetricsQueryMode

func (o *Query) GetMetricsQueryMode() string

GetMetricsQueryMode returns the MetricsQueryMode field if non-nil, zero value otherwise.

GetMetricsQueryModeOk

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.

SetMetricsQueryMode

func (o *Query) SetMetricsQueryMode(v string)

SetMetricsQueryMode sets MetricsQueryMode field to given value.

HasMetricsQueryMode

func (o *Query) HasMetricsQueryMode() bool

HasMetricsQueryMode returns a boolean if a field has been set.

GetMetricsQueryData

func (o *Query) GetMetricsQueryData() MetricsQueryData

GetMetricsQueryData returns the MetricsQueryData field if non-nil, zero value otherwise.

GetMetricsQueryDataOk

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.

SetMetricsQueryData

func (o *Query) SetMetricsQueryData(v MetricsQueryData)

SetMetricsQueryData sets MetricsQueryData field to given value.

HasMetricsQueryData

func (o *Query) HasMetricsQueryData() bool

HasMetricsQueryData returns a boolean if a field has been set.

GetTracesQueryData

func (o *Query) GetTracesQueryData() TracesQueryData

GetTracesQueryData returns the TracesQueryData field if non-nil, zero value otherwise.

GetTracesQueryDataOk

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.

SetTracesQueryData

func (o *Query) SetTracesQueryData(v TracesQueryData)

SetTracesQueryData sets TracesQueryData field to given value.

HasTracesQueryData

func (o *Query) HasTracesQueryData() bool

HasTracesQueryData returns a boolean if a field has been set.

GetParseMode

func (o *Query) GetParseMode() string

GetParseMode returns the ParseMode field if non-nil, zero value otherwise.

GetParseModeOk

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.

SetParseMode

func (o *Query) SetParseMode(v string)

SetParseMode sets ParseMode field to given value.

HasParseMode

func (o *Query) HasParseMode() bool

HasParseMode returns a boolean if a field has been set.

GetTimeSource

func (o *Query) GetTimeSource() string

GetTimeSource returns the TimeSource field if non-nil, zero value otherwise.

GetTimeSourceOk

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.

SetTimeSource

func (o *Query) SetTimeSource(v string)

SetTimeSource sets TimeSource field to given value.

HasTimeSource

func (o *Query) HasTimeSource() bool

HasTimeSource returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]