models

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonPromQLMatcher added in v0.7.0

type CommonPromQLMatcher struct {

	// Prometheus label name for the matcher
	Name string `json:"name,omitempty"`

	// type
	Type CommonPromQLMatcherType `json:"type,omitempty"`

	// Prometheus label value for the matcher
	Value string `json:"value,omitempty"`
}

CommonPromQLMatcher common prom q l matcher

swagger:model commonPromQLMatcher

func (*CommonPromQLMatcher) ContextValidate added in v0.7.0

func (m *CommonPromQLMatcher) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this common prom q l matcher based on the context it is used

func (*CommonPromQLMatcher) MarshalBinary added in v0.7.0

func (m *CommonPromQLMatcher) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommonPromQLMatcher) UnmarshalBinary added in v0.7.0

func (m *CommonPromQLMatcher) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommonPromQLMatcher) Validate added in v0.7.0

func (m *CommonPromQLMatcher) Validate(formats strfmt.Registry) error

Validate validates this common prom q l matcher

type CommonPromQLMatcherType added in v0.7.0

type CommonPromQLMatcherType string

CommonPromQLMatcherType common prom q l matcher type

swagger:model commonPromQLMatcherType

const (

	// CommonPromQLMatcherTypeMatchEqual captures enum value "MatchEqual"
	CommonPromQLMatcherTypeMatchEqual CommonPromQLMatcherType = "MatchEqual"

	// CommonPromQLMatcherTypeMatchRegexp captures enum value "MatchRegexp"
	CommonPromQLMatcherTypeMatchRegexp CommonPromQLMatcherType = "MatchRegexp"

	// CommonPromQLMatcherTypeMatchNotEqual captures enum value "MatchNotEqual"
	CommonPromQLMatcherTypeMatchNotEqual CommonPromQLMatcherType = "MatchNotEqual"

	// CommonPromQLMatcherTypeMatchNotRegexp captures enum value "MatchNotRegexp"
	CommonPromQLMatcherTypeMatchNotRegexp CommonPromQLMatcherType = "MatchNotRegexp"
)

func NewCommonPromQLMatcherType added in v0.7.0

func NewCommonPromQLMatcherType(value CommonPromQLMatcherType) *CommonPromQLMatcherType

func (CommonPromQLMatcherType) ContextValidate added in v0.7.0

func (m CommonPromQLMatcherType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this common prom q l matcher type based on context it is used

func (CommonPromQLMatcherType) Pointer added in v0.7.0

Pointer returns a pointer to a freshly-allocated CommonPromQLMatcherType.

func (CommonPromQLMatcherType) Validate added in v0.7.0

func (m CommonPromQLMatcherType) Validate(formats strfmt.Registry) error

Validate validates this common prom q l matcher type

type Configv1PageParams

type Configv1PageParams struct {

	// Sets the preferred number of items to return per page. If set to `0`, the
	// server will use its default value. Regardless of the value specified, clients
	// must never assume how many items will be returned.
	MaxSize int64 `json:"max_size,omitempty"`

	// An opaque page token that identifies which page the client should request.
	// An empty value indicates the first page.
	Token string `json:"token,omitempty"`
}

Configv1PageParams configv1 page params

swagger:model configv1PageParams

func (*Configv1PageParams) ContextValidate

func (m *Configv1PageParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this configv1 page params based on context it is used

func (*Configv1PageParams) MarshalBinary

func (m *Configv1PageParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Configv1PageParams) UnmarshalBinary

func (m *Configv1PageParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Configv1PageParams) Validate

func (m *Configv1PageParams) Validate(formats strfmt.Registry) error

Validate validates this configv1 page params

type Configv1PageResult

type Configv1PageResult struct {

	// An opaque page token that identifies the next page of items that the
	// client should request. An empty value indicates that there are no
	// more items to return.
	NextToken string `json:"next_token,omitempty"`
}

Configv1PageResult configv1 page result

swagger:model configv1PageResult

func (*Configv1PageResult) ContextValidate

func (m *Configv1PageResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this configv1 page result based on context it is used

func (*Configv1PageResult) MarshalBinary

func (m *Configv1PageResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Configv1PageResult) UnmarshalBinary

func (m *Configv1PageResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Configv1PageResult) Validate

func (m *Configv1PageResult) Validate(formats strfmt.Registry) error

Validate validates this configv1 page result

type DataV1PutPanelAnnotationBody added in v0.7.0

type DataV1PutPanelAnnotationBody struct {

	// Map of user-supplied key:value pairs associated with the event. The
	// following maximums apply:
	// - Number of labels per event: `50`
	// - Key character length: `200`
	// - Value character length: `500`
	Labels map[string]string `json:"labels,omitempty"`

	// The start time of the period being annotated.
	// Format: date-time
	StartsAt strfmt.DateTime `json:"starts_at,omitempty"`

	// A short description explaining the annotation. Maximum character length: `100`.
	Title string `json:"title,omitempty"`
}

DataV1PutPanelAnnotationBody data v1 put panel annotation body

swagger:model DataV1PutPanelAnnotationBody

func (*DataV1PutPanelAnnotationBody) ContextValidate added in v0.7.0

func (m *DataV1PutPanelAnnotationBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this data v1 put panel annotation body based on context it is used

func (*DataV1PutPanelAnnotationBody) MarshalBinary added in v0.7.0

func (m *DataV1PutPanelAnnotationBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DataV1PutPanelAnnotationBody) UnmarshalBinary added in v0.7.0

func (m *DataV1PutPanelAnnotationBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DataV1PutPanelAnnotationBody) Validate added in v0.7.0

func (m *DataV1PutPanelAnnotationBody) Validate(formats strfmt.Registry) error

Validate validates this data v1 put panel annotation body

type Datav1Alert added in v0.7.0

type Datav1Alert struct {

	// Unique identifier for the alert.
	AlertID string `json:"alert_id,omitempty"`

	// The title of the alert, as rendered when it fired.
	AlertTitle string `json:"alert_title,omitempty"`

	// The slug of the collection the monitor or SLO belongs to.
	CollectionSlug string `json:"collection_slug,omitempty"`

	// The (external connection, destination identity) pairs a notification was
	// attempted through for this alert, including sends that failed. Empty for an
	// alert that was never notified.
	ExternalConnections []*Datav1ExternalConnection `json:"external_connections"`

	// firing status
	FiringStatus Datav1FiringStatus `json:"firing_status,omitempty"`

	// The labels of the monitor or SLO that raised the alert.
	MonitorLabels map[string]string `json:"monitor_labels,omitempty"`

	// The name of the monitor that raised the alert. Empty for an SLO alert.
	MonitorName string `json:"monitor_name,omitempty"`

	// The slug of the monitor that raised the alert. Empty for an SLO alert.
	MonitorSlug string `json:"monitor_slug,omitempty"`

	// mute status
	MuteStatus Datav1MuteStatus `json:"mute_status,omitempty"`

	// The slug of the notification policy the alert was routed through.
	NotificationPolicySlug string `json:"notification_policy_slug,omitempty"`

	// The notifiers a notification was attempted against for this alert,
	// including sends that failed. Empty for an alert that was never notified.
	NotifierSlugs []string `json:"notifier_slugs"`

	// When the alert stopped firing. Unset while the alert is still firing.
	// Format: date-time
	ResolvedAt strfmt.DateTime `json:"resolved_at,omitempty"`

	// severity
	Severity Datav1Severity `json:"severity,omitempty"`

	// The labels of the signal that fired.
	Signal map[string]string `json:"signal,omitempty"`

	// The name of the SLO that raised the alert. Empty for a monitor alert.
	SloName string `json:"slo_name,omitempty"`

	// The slug of the SLO that raised the alert. Empty for a monitor alert.
	SloSlug string `json:"slo_slug,omitempty"`

	// When the alert started firing.
	// Format: date-time
	TriggeredAt strfmt.DateTime `json:"triggered_at,omitempty"`
}

Datav1Alert A single alert instance: one signal crossing one monitor or SLO threshold, from the moment it triggered until it resolved.

swagger:model datav1Alert

func (*Datav1Alert) ContextValidate added in v0.7.0

func (m *Datav1Alert) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 alert based on the context it is used

func (*Datav1Alert) MarshalBinary added in v0.7.0

func (m *Datav1Alert) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1Alert) UnmarshalBinary added in v0.7.0

func (m *Datav1Alert) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1Alert) Validate added in v0.7.0

func (m *Datav1Alert) Validate(formats strfmt.Registry) error

Validate validates this datav1 alert

type Datav1AlertsFilter added in v0.7.0

type Datav1AlertsFilter struct {

	// active time range
	ActiveTimeRange *Datav1TimeRange `json:"active_time_range,omitempty"`

	// Return only the alerts with these IDs.
	AlertIds []string `json:"alert_ids"`

	// Match alerts whose title contains this string, case-insensitively. Only
	// the title is matched, never the name or slug of the monitor or SLO that
	// raised the alert. This is one of the OR'ed search filters, so setting it
	// widens the result set rather than narrowing it: an alert matches the
	// search as soon as it matches any one of those filters. See
	// `AlertsFilter` for the full list.
	AlertTitleContains string `json:"alert_title_contains,omitempty"`

	// Return only alerts a notification was attempted through one of these
	// (external connection, destination identity) pairs for. Failed sends match
	// too, exactly as for `notifier_slugs`, and setting both OR's the two lists
	// together.
	//
	// The pair is matched whole. `destination_identity` is compared exactly, so
	// leaving it empty matches only destinations stored without one (PagerDuty,
	// OpsGenie, webhook) rather than every identity on the connection.
	ExternalConnections []*Datav1ExternalConnection `json:"external_connections"`

	// firing status
	FiringStatus Datav1FiringStatus `json:"firing_status,omitempty"`

	// Each LabelFilter is one AND clause; the clauses are OR'ed together. An
	// alert is returned if it satisfies at least one of them.
	LabelFilters []*Datav1LabelFilter `json:"label_filters"`

	// Match alerts raised by monitors whose name or slug contains this string,
	// case-insensitively. This is one of the OR'ed search filters, so setting
	// it widens the result set rather than narrowing it: an alert matches the
	// search as soon as it matches any one of those filters. See
	// `AlertsFilter` for the full list.
	MonitorNameContains string `json:"monitor_name_contains,omitempty"`

	// Match alerts raised by monitors with these slugs. This is one of the
	// OR'ed search filters, so setting it widens the result set rather than
	// narrowing it: an alert matches the search as soon as it matches any one
	// of those filters. See `AlertsFilter` for the full list.
	MonitorSlugs []string `json:"monitor_slugs"`

	// mute status
	MuteStatus Datav1MuteStatus `json:"mute_status,omitempty"`

	// Return only alerts a notification was attempted against one of these
	// notifiers for. A send that failed still matches: the question this answers
	// is "which alerts tried to reach me here", not "which reached me".
	//
	// This is OR'ed with `external_connections` rather than AND'ed with it:
	// setting both returns alerts matching either list, because notifiers and
	// external connections are two spellings of the same idea. The combined
	// delivery filter is then AND'ed with every other filter.
	NotifierSlugs []string `json:"notifier_slugs"`

	// severity
	Severity Datav1Severity `json:"severity,omitempty"`

	// Match alerts raised by SLOs whose name or slug contains this string,
	// case-insensitively. This is one of the OR'ed search filters, so setting
	// it widens the result set rather than narrowing it: an alert matches the
	// search as soon as it matches any one of those filters. See
	// `AlertsFilter` for the full list.
	SloNameContains string `json:"slo_name_contains,omitempty"`

	// Match alerts raised by SLOs with these slugs. This is one of the OR'ed
	// search filters, so setting it widens the result set rather than
	// narrowing it: an alert matches the search as soon as it matches any one
	// of those filters. See `AlertsFilter` for the full list.
	SloSlugs []string `json:"slo_slugs"`

	// Return only alerts whose monitor or SLO belongs to one of these
	// collections.
	SourceCollectionSlugs []string `json:"source_collection_slugs"`

	// Return only alerts owned by one of these teams. The owning team is
	// recorded when the alert triggers, so re-assigning a collection to a
	// different team does not change the team on alerts that already fired.
	// Alerts that triggered before this API recorded an owning team match no
	// team.
	SourceTeamSlugs []string `json:"source_team_slugs"`

	// source type
	SourceType Datav1SourceType `json:"source_type,omitempty"`

	// trigger time range
	TriggerTimeRange *Datav1TimeRange `json:"trigger_time_range,omitempty"`
}

Datav1AlertsFilter The set of alerts to return. Filters of different kinds are combined with AND: an alert is returned only if it satisfies every filter that is set.

The search filters (`monitor_slugs`, `monitor_name_contains`, `slo_slugs`, `slo_name_contains` and `alert_title_contains`) are the one exception. They are OR'ed with each other into a single search clause, so an alert matches the search as soon as it matches any one of them: setting `monitor_slugs` and `alert_title_contains` together returns the alerts matching either, not only the alerts matching both. That clause is then AND'ed with every filter outside the group, so `severity` combined with a search term still requires both to hold.

`notifier_slugs` and `external_connections` form a second such group: they are OR'ed with each other into one delivery clause, which is then AND'ed with everything else.

swagger:model datav1AlertsFilter

func (*Datav1AlertsFilter) ContextValidate added in v0.7.0

func (m *Datav1AlertsFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 alerts filter based on the context it is used

func (*Datav1AlertsFilter) MarshalBinary added in v0.7.0

func (m *Datav1AlertsFilter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1AlertsFilter) UnmarshalBinary added in v0.7.0

func (m *Datav1AlertsFilter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1AlertsFilter) Validate added in v0.7.0

func (m *Datav1AlertsFilter) Validate(formats strfmt.Registry) error

Validate validates this datav1 alerts filter

type Datav1CreateEventRequest

type Datav1CreateEventRequest struct {

	// event
	Event *Datav1Event `json:"event,omitempty"`
}

Datav1CreateEventRequest Request to create an event.

swagger:model datav1CreateEventRequest

func (*Datav1CreateEventRequest) ContextValidate

func (m *Datav1CreateEventRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 create event request based on the context it is used

func (*Datav1CreateEventRequest) MarshalBinary

func (m *Datav1CreateEventRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1CreateEventRequest) UnmarshalBinary

func (m *Datav1CreateEventRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1CreateEventRequest) Validate

func (m *Datav1CreateEventRequest) Validate(formats strfmt.Registry) error

Validate validates this datav1 create event request

type Datav1CreateEventResponse

type Datav1CreateEventResponse interface{}

Datav1CreateEventResponse Response returned after an event is created.

swagger:model datav1CreateEventResponse

type Datav1CreatePanelAnnotationRequest added in v0.7.0

type Datav1CreatePanelAnnotationRequest struct {

	// Map of user-supplied key:value pairs associated with the annotation. The
	// following maximums apply:
	// - Number of labels per annotation: `50`
	// - Key character length: `200`
	// - Value character length: `500`
	Labels map[string]string `json:"labels,omitempty"`

	// The start time of the period being annotated.
	// Format: date-time
	StartsAt strfmt.DateTime `json:"starts_at,omitempty"`

	// The `slug` of the resource being annotated.
	TargetReference string `json:"target_reference,omitempty"`

	// A short description explaining the annotation.
	// Max character length: `100`.
	Title string `json:"title,omitempty"`

	// type
	Type Datav1PanelAnnotationTargetType `json:"type,omitempty"`
}

Datav1CreatePanelAnnotationRequest datav1 create panel annotation request

swagger:model datav1CreatePanelAnnotationRequest

func (*Datav1CreatePanelAnnotationRequest) ContextValidate added in v0.7.0

func (m *Datav1CreatePanelAnnotationRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 create panel annotation request based on the context it is used

func (*Datav1CreatePanelAnnotationRequest) MarshalBinary added in v0.7.0

func (m *Datav1CreatePanelAnnotationRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1CreatePanelAnnotationRequest) UnmarshalBinary added in v0.7.0

func (m *Datav1CreatePanelAnnotationRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1CreatePanelAnnotationRequest) Validate added in v0.7.0

Validate validates this datav1 create panel annotation request

type Datav1Event

type Datav1Event struct {

	// Category used to group the event. Built-in categories:
	//  * `alerts`
	//  * `broadcasts`
	//  * `chronosphere`
	//  * `deploys`
	//  * `feature_flags`
	//  * `infrastructure`
	//  * `third_party`
	//
	// Change Event categories are case sensitive. Each of the listed categories are
	// lowercase and must be queried in all lowercase. For example, `"category":
	// "alerts"` is valid, but `"category": "Alerts"` is invalid.
	//
	// Palo Alto Networks Support can add and remove custom categories upon request.
	// Because categories are case sensitive, custom categories must be queried using
	// the same case they were created. For example, if you create a category called
	// `INGEST`, any queries in Changes Explorer must use `INGEST` in all uppercase
	// as the category to query.
	Category string `json:"category,omitempty"`

	// Time when the event occurred. Must be no more than 24 hours before or after
	// the current time. Default: current time.
	// Format: date-time
	HappenedAt strfmt.DateTime `json:"happened_at,omitempty"`

	// Output only. Unique identifier for the change event.
	// Read Only: true
	ID string `json:"id,omitempty"`

	// Map of queryable, user-supplied key-value pairs associated with the event.
	//  * Maximum labels: 200 per event
	//  * Maximum key length: 200 characters
	//  * Maximum value length: 5,000 characters
	Labels map[string]string `json:"labels,omitempty"`

	// Original event as a string-escaped JSON value. Set either `payload_json` or
	// `payload_object`, but not both. This field is not queryable.
	// Maximum length: 100,000 characters.
	PayloadJSON string `json:"payload_json,omitempty"`

	// Input only. JSON payload for an original event in key-value format. Set either
	// `payload_json` or `payload_object`, but not both.
	// Maximum length: 100,000 characters.
	PayloadObject interface{} `json:"payload_object,omitempty"`

	// System or integration from which the event originated. Use this value to
	// identify the instrumentation or integration to update.
	// Maximum length: 50 characters.
	Source string `json:"source,omitempty"`

	// A short description of the event, such as a deployment commit message.
	// Maximum length: 100 characters.
	Title string `json:"title,omitempty"`

	// Event type used to group and distinguish events within a `category` or
	// `source`.
	Type string `json:"type,omitempty"`
}

Datav1Event A change event.

swagger:model datav1Event

func (*Datav1Event) ContextValidate

func (m *Datav1Event) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 event based on the context it is used

func (*Datav1Event) MarshalBinary

func (m *Datav1Event) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1Event) UnmarshalBinary

func (m *Datav1Event) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1Event) Validate

func (m *Datav1Event) Validate(formats strfmt.Registry) error

Validate validates this datav1 event

type Datav1ExternalConnection added in v0.7.0

type Datav1ExternalConnection struct {

	// Identity within the connection, such as a Slack channel or an email
	// address. Empty for connection types that have none (PagerDuty, OpsGenie,
	// webhook).
	DestinationIdentity string `json:"destination_identity,omitempty"`

	// Slug of the external connection. Required when used as a filter.
	Slug string `json:"slug,omitempty"`
}

Datav1ExternalConnection An (external connection, destination identity) pair a notification was sent through. Used both to filter alerts and to report what an alert was notified through.

swagger:model datav1ExternalConnection

func (*Datav1ExternalConnection) ContextValidate added in v0.7.0

func (m *Datav1ExternalConnection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 external connection based on context it is used

func (*Datav1ExternalConnection) MarshalBinary added in v0.7.0

func (m *Datav1ExternalConnection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1ExternalConnection) UnmarshalBinary added in v0.7.0

func (m *Datav1ExternalConnection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1ExternalConnection) Validate added in v0.7.0

func (m *Datav1ExternalConnection) Validate(formats strfmt.Registry) error

Validate validates this datav1 external connection

type Datav1FiringStatus added in v0.7.0

type Datav1FiringStatus string

Datav1FiringStatus Whether an alert is currently firing or has resolved.

swagger:model datav1FiringStatus

const (

	// Datav1FiringStatusRESOLVED captures enum value "RESOLVED"
	Datav1FiringStatusRESOLVED Datav1FiringStatus = "RESOLVED"

	// Datav1FiringStatusFIRING captures enum value "FIRING"
	Datav1FiringStatusFIRING Datav1FiringStatus = "FIRING"
)

func NewDatav1FiringStatus added in v0.7.0

func NewDatav1FiringStatus(value Datav1FiringStatus) *Datav1FiringStatus

func (Datav1FiringStatus) ContextValidate added in v0.7.0

func (m Datav1FiringStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 firing status based on context it is used

func (Datav1FiringStatus) Pointer added in v0.7.0

Pointer returns a pointer to a freshly-allocated Datav1FiringStatus.

func (Datav1FiringStatus) Validate added in v0.7.0

func (m Datav1FiringStatus) Validate(formats strfmt.Registry) error

Validate validates this datav1 firing status

type Datav1LabelFilter added in v0.7.0

type Datav1LabelFilter struct {

	// The matchers that make up this clause. An alert must satisfy all of
	// them. A filter with no matchers is ignored rather than matching
	// everything.
	LabelMatchers []*LabelFilterLabelMatcher `json:"label_matchers"`

	// match strategy
	MatchStrategy LabelFilterMatchStrategy `json:"match_strategy,omitempty"`
}

Datav1LabelFilter A set of label matchers evaluated together as a single AND clause.

swagger:model datav1LabelFilter

func (*Datav1LabelFilter) ContextValidate added in v0.7.0

func (m *Datav1LabelFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 label filter based on the context it is used

func (*Datav1LabelFilter) MarshalBinary added in v0.7.0

func (m *Datav1LabelFilter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1LabelFilter) UnmarshalBinary added in v0.7.0

func (m *Datav1LabelFilter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1LabelFilter) Validate added in v0.7.0

func (m *Datav1LabelFilter) Validate(formats strfmt.Registry) error

Validate validates this datav1 label filter

type Datav1ListAlertsRequest added in v0.7.0

type Datav1ListAlertsRequest struct {

	// filter
	Filter *Datav1AlertsFilter `json:"filter,omitempty"`

	// page
	Page *Configv1PageParams `json:"page,omitempty"`

	// sort order
	SortOrder ListAlertsRequestSortOrder `json:"sort_order,omitempty"`
}

Datav1ListAlertsRequest datav1 list alerts request

swagger:model datav1ListAlertsRequest

func (*Datav1ListAlertsRequest) ContextValidate added in v0.7.0

func (m *Datav1ListAlertsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 list alerts request based on the context it is used

func (*Datav1ListAlertsRequest) MarshalBinary added in v0.7.0

func (m *Datav1ListAlertsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1ListAlertsRequest) UnmarshalBinary added in v0.7.0

func (m *Datav1ListAlertsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1ListAlertsRequest) Validate added in v0.7.0

func (m *Datav1ListAlertsRequest) Validate(formats strfmt.Registry) error

Validate validates this datav1 list alerts request

type Datav1ListAlertsResponse added in v0.7.0

type Datav1ListAlertsResponse struct {

	// The alerts on this page, in the requested sort order.
	Alerts []*Datav1Alert `json:"alerts"`

	// page
	Page *Configv1PageResult `json:"page,omitempty"`

	// The number of alerts matching the filter across all pages.
	TotalCount string `json:"total_count,omitempty"`
}

Datav1ListAlertsResponse datav1 list alerts response

swagger:model datav1ListAlertsResponse

func (*Datav1ListAlertsResponse) ContextValidate added in v0.7.0

func (m *Datav1ListAlertsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 list alerts response based on the context it is used

func (*Datav1ListAlertsResponse) MarshalBinary added in v0.7.0

func (m *Datav1ListAlertsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1ListAlertsResponse) UnmarshalBinary added in v0.7.0

func (m *Datav1ListAlertsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1ListAlertsResponse) Validate added in v0.7.0

func (m *Datav1ListAlertsResponse) Validate(formats strfmt.Registry) error

Validate validates this datav1 list alerts response

type Datav1ListEventFieldValuesResponse added in v0.7.0

type Datav1ListEventFieldValuesResponse struct {

	// Values ordered by descending frequency, with ties ordered alphabetically.
	Values []string `json:"values"`
}

Datav1ListEventFieldValuesResponse Response containing values for an event field.

swagger:model datav1ListEventFieldValuesResponse

func (*Datav1ListEventFieldValuesResponse) ContextValidate added in v0.7.0

func (m *Datav1ListEventFieldValuesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 list event field values response based on context it is used

func (*Datav1ListEventFieldValuesResponse) MarshalBinary added in v0.7.0

func (m *Datav1ListEventFieldValuesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1ListEventFieldValuesResponse) UnmarshalBinary added in v0.7.0

func (m *Datav1ListEventFieldValuesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1ListEventFieldValuesResponse) Validate added in v0.7.0

Validate validates this datav1 list event field values response

type Datav1ListEventsResponse

type Datav1ListEventsResponse struct {

	// Events in the current page.
	Events []*Datav1Event `json:"events"`

	// page
	Page *Configv1PageResult `json:"page,omitempty"`
}

Datav1ListEventsResponse Response containing a page of events.

swagger:model datav1ListEventsResponse

func (*Datav1ListEventsResponse) ContextValidate

func (m *Datav1ListEventsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 list events response based on the context it is used

func (*Datav1ListEventsResponse) MarshalBinary

func (m *Datav1ListEventsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1ListEventsResponse) UnmarshalBinary

func (m *Datav1ListEventsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1ListEventsResponse) Validate

func (m *Datav1ListEventsResponse) Validate(formats strfmt.Registry) error

Validate validates this datav1 list events response

type Datav1ListPanelAnnotationsResponse added in v0.7.0

type Datav1ListPanelAnnotationsResponse struct {

	// page
	Page *Configv1PageResult `json:"page,omitempty"`

	// panel annotations
	PanelAnnotations []*Datav1PanelAnnotationResponse `json:"panel_annotations"`
}

Datav1ListPanelAnnotationsResponse datav1 list panel annotations response

swagger:model datav1ListPanelAnnotationsResponse

func (*Datav1ListPanelAnnotationsResponse) ContextValidate added in v0.7.0

func (m *Datav1ListPanelAnnotationsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 list panel annotations response based on the context it is used

func (*Datav1ListPanelAnnotationsResponse) MarshalBinary added in v0.7.0

func (m *Datav1ListPanelAnnotationsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1ListPanelAnnotationsResponse) UnmarshalBinary added in v0.7.0

func (m *Datav1ListPanelAnnotationsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1ListPanelAnnotationsResponse) Validate added in v0.7.0

Validate validates this datav1 list panel annotations response

type Datav1ListTracesRequest

type Datav1ListTracesRequest struct {

	// End time for the search.
	// Format: date-time
	EndTime strfmt.DateTime `json:"end_time,omitempty"`

	// Operation to filter on. An empty value doesn't apply any operation filter.
	Operation string `json:"operation,omitempty"`

	// query type
	QueryType ListTracesRequestQueryType `json:"query_type,omitempty"`

	// Service to filter on. An empty value doesn't apply any service filter.
	Service string `json:"service,omitempty"`

	// Start time for the search.
	// Format: date-time
	StartTime strfmt.DateTime `json:"start_time,omitempty"`

	// Tag filter to apply. An empty value doesn't apply any tag filter.
	TagFilters []*ListTracesRequestTagFilter `json:"tag_filters"`

	// Trace IDs to search for.
	TraceIds []string `json:"trace_ids"`
}

Datav1ListTracesRequest datav1 list traces request

swagger:model datav1ListTracesRequest

func (*Datav1ListTracesRequest) ContextValidate

func (m *Datav1ListTracesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 list traces request based on the context it is used

func (*Datav1ListTracesRequest) MarshalBinary

func (m *Datav1ListTracesRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1ListTracesRequest) UnmarshalBinary

func (m *Datav1ListTracesRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1ListTracesRequest) Validate

func (m *Datav1ListTracesRequest) Validate(formats strfmt.Registry) error

Validate validates this datav1 list traces request

type Datav1ListTracesResponse

type Datav1ListTracesResponse struct {

	// traces
	Traces []*V1TracesData `json:"traces"`
}

Datav1ListTracesResponse datav1 list traces response

swagger:model datav1ListTracesResponse

func (*Datav1ListTracesResponse) ContextValidate

func (m *Datav1ListTracesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 list traces response based on the context it is used

func (*Datav1ListTracesResponse) MarshalBinary

func (m *Datav1ListTracesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1ListTracesResponse) UnmarshalBinary

func (m *Datav1ListTracesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1ListTracesResponse) Validate

func (m *Datav1ListTracesResponse) Validate(formats strfmt.Registry) error

Validate validates this datav1 list traces response

type Datav1MetricMetadata added in v0.7.0

type Datav1MetricMetadata struct {

	// Human-readable description of what the metric measures.
	Description string `json:"description,omitempty"`

	// The name of the metric.
	Name string `json:"name,omitempty"`

	// source
	Source Datav1Source `json:"source,omitempty"`

	// type
	Type Datav1MetricType `json:"type,omitempty"`
}

Datav1MetricMetadata MetricMetadata contains metadata information about a metric.

swagger:model datav1MetricMetadata

func (*Datav1MetricMetadata) ContextValidate added in v0.7.0

func (m *Datav1MetricMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 metric metadata based on the context it is used

func (*Datav1MetricMetadata) MarshalBinary added in v0.7.0

func (m *Datav1MetricMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1MetricMetadata) UnmarshalBinary added in v0.7.0

func (m *Datav1MetricMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1MetricMetadata) Validate added in v0.7.0

func (m *Datav1MetricMetadata) Validate(formats strfmt.Registry) error

Validate validates this datav1 metric metadata

type Datav1MetricType added in v0.7.0

type Datav1MetricType string

Datav1MetricType MetricType defines the canonical metric types supported by the platform.

  • CUMULATIVE_COUNTER: A Prom-style cumulative counter, which stores a strictly increasing count

of distinct events (but may reset to zero). Each datapoint stores the running total at the given timestamp.

  • GAUGE: A true gauge, which stores an observation of state at a point in time,

where it is impossible to have two different states at a single point in time. Each datapoint stores the value at the given timestamp.

  • DELTA_COUNTER: A delta counter, which stores the same type of data as COUNTER, but where

each datapoint stores a strictly positive delta increment at the given timestamp.

  • MEASUREMENT: A raw observation with some discrete value, e.g. individual request

latency, individual request size, etc. Unlike a counter, each MEASUREMENT event has a discrete value. And unlike a gauge, there can be multiple values at any point in time.

  • CUMULATIVE_EXPONENTIAL_HISTOGRAM: An exponential histogram, where each datapoint is a structured value (not a

float), which stores compressed buckets of cumulative measurement counts, along with total sum and count.

  • DELTA_EXPONENTIAL_HISTOGRAM: An exponential histogram, where each datapoint is a structured value (not a

float), which stores compressed buckets of measurement count deltas, along with total sum and count.

swagger:model datav1MetricType

const (

	// Datav1MetricTypeCUMULATIVECOUNTER captures enum value "CUMULATIVE_COUNTER"
	Datav1MetricTypeCUMULATIVECOUNTER Datav1MetricType = "CUMULATIVE_COUNTER"

	// Datav1MetricTypeGAUGE captures enum value "GAUGE"
	Datav1MetricTypeGAUGE Datav1MetricType = "GAUGE"

	// Datav1MetricTypeDELTACOUNTER captures enum value "DELTA_COUNTER"
	Datav1MetricTypeDELTACOUNTER Datav1MetricType = "DELTA_COUNTER"

	// Datav1MetricTypeMEASUREMENT captures enum value "MEASUREMENT"
	Datav1MetricTypeMEASUREMENT Datav1MetricType = "MEASUREMENT"

	// Datav1MetricTypeCUMULATIVEEXPONENTIALHISTOGRAM captures enum value "CUMULATIVE_EXPONENTIAL_HISTOGRAM"
	Datav1MetricTypeCUMULATIVEEXPONENTIALHISTOGRAM Datav1MetricType = "CUMULATIVE_EXPONENTIAL_HISTOGRAM"

	// Datav1MetricTypeDELTAEXPONENTIALHISTOGRAM captures enum value "DELTA_EXPONENTIAL_HISTOGRAM"
	Datav1MetricTypeDELTAEXPONENTIALHISTOGRAM Datav1MetricType = "DELTA_EXPONENTIAL_HISTOGRAM"
)

func NewDatav1MetricType added in v0.7.0

func NewDatav1MetricType(value Datav1MetricType) *Datav1MetricType

func (Datav1MetricType) ContextValidate added in v0.7.0

func (m Datav1MetricType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 metric type based on context it is used

func (Datav1MetricType) Pointer added in v0.7.0

func (m Datav1MetricType) Pointer() *Datav1MetricType

Pointer returns a pointer to a freshly-allocated Datav1MetricType.

func (Datav1MetricType) Validate added in v0.7.0

func (m Datav1MetricType) Validate(formats strfmt.Registry) error

Validate validates this datav1 metric type

type Datav1MuteStatus added in v0.7.0

type Datav1MuteStatus string

Datav1MuteStatus Whether notifications for an alert are currently muted.

swagger:model datav1MuteStatus

const (

	// Datav1MuteStatusMUTED captures enum value "MUTED"
	Datav1MuteStatusMUTED Datav1MuteStatus = "MUTED"

	// Datav1MuteStatusNOTMUTED captures enum value "NOT_MUTED"
	Datav1MuteStatusNOTMUTED Datav1MuteStatus = "NOT_MUTED"
)

func NewDatav1MuteStatus added in v0.7.0

func NewDatav1MuteStatus(value Datav1MuteStatus) *Datav1MuteStatus

func (Datav1MuteStatus) ContextValidate added in v0.7.0

func (m Datav1MuteStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 mute status based on context it is used

func (Datav1MuteStatus) Pointer added in v0.7.0

func (m Datav1MuteStatus) Pointer() *Datav1MuteStatus

Pointer returns a pointer to a freshly-allocated Datav1MuteStatus.

func (Datav1MuteStatus) Validate added in v0.7.0

func (m Datav1MuteStatus) Validate(formats strfmt.Registry) error

Validate validates this datav1 mute status

type Datav1PanelAnnotationResponse added in v0.7.0

type Datav1PanelAnnotationResponse struct {

	// Display name of the creator of this annotation.
	CreatedBy string `json:"created_by,omitempty"`

	// Unique identifier of the panel annotation.
	ID string `json:"id,omitempty"`

	// Map of user-supplied key:value pairs associated with the annotation. The
	// following maximums apply:
	// - Number of labels per annotation: `50`
	// - Key character length: `200`
	// - Value character length: `500`
	Labels map[string]string `json:"labels,omitempty"`

	// The start of the time period being annotated.
	// Format: date-time
	StartsAt strfmt.DateTime `json:"starts_at,omitempty"`

	// The `slug` of the resource being annotated.
	TargetReference string `json:"target_reference,omitempty"`

	// A short description explaining the annotation.
	// Max length, 100 characters.
	Title string `json:"title,omitempty"`

	// type
	Type Datav1PanelAnnotationTargetType `json:"type,omitempty"`
}

Datav1PanelAnnotationResponse datav1 panel annotation response

swagger:model datav1PanelAnnotationResponse

func (*Datav1PanelAnnotationResponse) ContextValidate added in v0.7.0

func (m *Datav1PanelAnnotationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 panel annotation response based on the context it is used

func (*Datav1PanelAnnotationResponse) MarshalBinary added in v0.7.0

func (m *Datav1PanelAnnotationResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1PanelAnnotationResponse) UnmarshalBinary added in v0.7.0

func (m *Datav1PanelAnnotationResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1PanelAnnotationResponse) Validate added in v0.7.0

func (m *Datav1PanelAnnotationResponse) Validate(formats strfmt.Registry) error

Validate validates this datav1 panel annotation response

type Datav1PanelAnnotationTargetType added in v0.7.0

type Datav1PanelAnnotationTargetType string

Datav1PanelAnnotationTargetType datav1 panel annotation target type

swagger:model datav1PanelAnnotationTargetType

const (

	// Datav1PanelAnnotationTargetTypeDASHBOARD captures enum value "DASHBOARD"
	Datav1PanelAnnotationTargetTypeDASHBOARD Datav1PanelAnnotationTargetType = "DASHBOARD"
)

func NewDatav1PanelAnnotationTargetType added in v0.7.0

func NewDatav1PanelAnnotationTargetType(value Datav1PanelAnnotationTargetType) *Datav1PanelAnnotationTargetType

func (Datav1PanelAnnotationTargetType) ContextValidate added in v0.7.0

func (m Datav1PanelAnnotationTargetType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 panel annotation target type based on context it is used

func (Datav1PanelAnnotationTargetType) Pointer added in v0.7.0

Pointer returns a pointer to a freshly-allocated Datav1PanelAnnotationTargetType.

func (Datav1PanelAnnotationTargetType) Validate added in v0.7.0

Validate validates this datav1 panel annotation target type

type Datav1QueryLogsRangeResponse

type Datav1QueryLogsRangeResponse struct {

	// grid data
	GridData *QueryLogsRangeResponseGridData `json:"grid_data,omitempty"`

	// metadata
	Metadata *QueryLogsRangeResponseMetadata `json:"metadata,omitempty"`

	// time series data
	TimeSeriesData *QueryLogsRangeResponseTimeSeriesData `json:"time_series_data,omitempty"`
}

Datav1QueryLogsRangeResponse datav1 query logs range response

swagger:model datav1QueryLogsRangeResponse

func (*Datav1QueryLogsRangeResponse) ContextValidate

func (m *Datav1QueryLogsRangeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 query logs range response based on the context it is used

func (*Datav1QueryLogsRangeResponse) MarshalBinary

func (m *Datav1QueryLogsRangeResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1QueryLogsRangeResponse) UnmarshalBinary

func (m *Datav1QueryLogsRangeResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1QueryLogsRangeResponse) Validate

func (m *Datav1QueryLogsRangeResponse) Validate(formats strfmt.Registry) error

Validate validates this datav1 query logs range response

type Datav1ReadMetricMetadataResponse added in v0.7.0

type Datav1ReadMetricMetadataResponse struct {

	// metadata
	Metadata *Datav1MetricMetadata `json:"metadata,omitempty"`
}

Datav1ReadMetricMetadataResponse ReadMetricMetadataResponse contains the metadata for the requested metric.

swagger:model datav1ReadMetricMetadataResponse

func (*Datav1ReadMetricMetadataResponse) ContextValidate added in v0.7.0

func (m *Datav1ReadMetricMetadataResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this datav1 read metric metadata response based on the context it is used

func (*Datav1ReadMetricMetadataResponse) MarshalBinary added in v0.7.0

func (m *Datav1ReadMetricMetadataResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1ReadMetricMetadataResponse) UnmarshalBinary added in v0.7.0

func (m *Datav1ReadMetricMetadataResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1ReadMetricMetadataResponse) Validate added in v0.7.0

Validate validates this datav1 read metric metadata response

type Datav1Severity added in v0.7.0

type Datav1Severity string

Datav1Severity The severity an alert fired at.

swagger:model datav1Severity

const (

	// Datav1SeverityWARN captures enum value "WARN"
	Datav1SeverityWARN Datav1Severity = "WARN"

	// Datav1SeverityCRITICAL captures enum value "CRITICAL"
	Datav1SeverityCRITICAL Datav1Severity = "CRITICAL"
)

func NewDatav1Severity added in v0.7.0

func NewDatav1Severity(value Datav1Severity) *Datav1Severity

func (Datav1Severity) ContextValidate added in v0.7.0

func (m Datav1Severity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 severity based on context it is used

func (Datav1Severity) Pointer added in v0.7.0

func (m Datav1Severity) Pointer() *Datav1Severity

Pointer returns a pointer to a freshly-allocated Datav1Severity.

func (Datav1Severity) Validate added in v0.7.0

func (m Datav1Severity) Validate(formats strfmt.Registry) error

Validate validates this datav1 severity

type Datav1Source added in v0.7.0

type Datav1Source string

Datav1Source Source is the wire format used to ingest the metric (maps to the __metric_source__ synthetic label). Metrics predating CanonicalSource tracking will have UNSPECIFIED.

swagger:model datav1Source

const (

	// Datav1SourcePROMETHEUS captures enum value "PROMETHEUS"
	Datav1SourcePROMETHEUS Datav1Source = "PROMETHEUS"

	// Datav1SourceSTATSD captures enum value "STATSD"
	Datav1SourceSTATSD Datav1Source = "STATSD"

	// Datav1SourceOPENMETRICS captures enum value "OPEN_METRICS"
	Datav1SourceOPENMETRICS Datav1Source = "OPEN_METRICS"

	// Datav1SourceCARBON captures enum value "CARBON"
	Datav1SourceCARBON Datav1Source = "CARBON"

	// Datav1SourceOPENTELEMETRY captures enum value "OPEN_TELEMETRY"
	Datav1SourceOPENTELEMETRY Datav1Source = "OPEN_TELEMETRY"

	// Datav1SourceSIGNALFX captures enum value "SIGNALFX"
	Datav1SourceSIGNALFX Datav1Source = "SIGNALFX"

	// Datav1SourceWAVEFRONT captures enum value "WAVEFRONT"
	Datav1SourceWAVEFRONT Datav1Source = "WAVEFRONT"

	// Datav1SourceDOGSTATSD captures enum value "DOGSTATSD"
	Datav1SourceDOGSTATSD Datav1Source = "DOGSTATSD"

	// Datav1SourceCHRONOGCP captures enum value "CHRONO_GCP"
	Datav1SourceCHRONOGCP Datav1Source = "CHRONO_GCP"

	// Datav1SourceCLOUDWATCHMETRICSTREAM captures enum value "CLOUDWATCH_METRIC_STREAM"
	Datav1SourceCLOUDWATCHMETRICSTREAM Datav1Source = "CLOUDWATCH_METRIC_STREAM"

	// Datav1SourceCHRONOAZURE captures enum value "CHRONO_AZURE"
	Datav1SourceCHRONOAZURE Datav1Source = "CHRONO_AZURE"

	// Datav1SourceTAGGEDSTATSD captures enum value "TAGGED_STATSD"
	Datav1SourceTAGGEDSTATSD Datav1Source = "TAGGED_STATSD"

	// Datav1SourceCHRONOCLOUDFLARE captures enum value "CHRONO_CLOUDFLARE"
	Datav1SourceCHRONOCLOUDFLARE Datav1Source = "CHRONO_CLOUDFLARE"

	// Datav1SourceCHRONOINTEGRATION captures enum value "CHRONO_INTEGRATION"
	Datav1SourceCHRONOINTEGRATION Datav1Source = "CHRONO_INTEGRATION"
)

func NewDatav1Source added in v0.7.0

func NewDatav1Source(value Datav1Source) *Datav1Source

func (Datav1Source) ContextValidate added in v0.7.0

func (m Datav1Source) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 source based on context it is used

func (Datav1Source) Pointer added in v0.7.0

func (m Datav1Source) Pointer() *Datav1Source

Pointer returns a pointer to a freshly-allocated Datav1Source.

func (Datav1Source) Validate added in v0.7.0

func (m Datav1Source) Validate(formats strfmt.Registry) error

Validate validates this datav1 source

type Datav1SourceType added in v0.7.0

type Datav1SourceType string

Datav1SourceType Whether an alert was raised by a monitor or by an SLO.

swagger:model datav1SourceType

const (

	// Datav1SourceTypeMONITOR captures enum value "MONITOR"
	Datav1SourceTypeMONITOR Datav1SourceType = "MONITOR"

	// Datav1SourceTypeSLO captures enum value "SLO"
	Datav1SourceTypeSLO Datav1SourceType = "SLO"
)

func NewDatav1SourceType added in v0.7.0

func NewDatav1SourceType(value Datav1SourceType) *Datav1SourceType

func (Datav1SourceType) ContextValidate added in v0.7.0

func (m Datav1SourceType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 source type based on context it is used

func (Datav1SourceType) Pointer added in v0.7.0

func (m Datav1SourceType) Pointer() *Datav1SourceType

Pointer returns a pointer to a freshly-allocated Datav1SourceType.

func (Datav1SourceType) Validate added in v0.7.0

func (m Datav1SourceType) Validate(formats strfmt.Registry) error

Validate validates this datav1 source type

type Datav1TimeRange added in v0.7.0

type Datav1TimeRange struct {

	// The inclusive end of the interval.
	// Format: date-time
	End strfmt.DateTime `json:"end,omitempty"`

	// The inclusive start of the interval.
	// Format: date-time
	Start strfmt.DateTime `json:"start,omitempty"`
}

Datav1TimeRange A closed time interval. Both bounds are required unless the field documents a default for the one that is missing.

swagger:model datav1TimeRange

func (*Datav1TimeRange) ContextValidate added in v0.7.0

func (m *Datav1TimeRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this datav1 time range based on context it is used

func (*Datav1TimeRange) MarshalBinary added in v0.7.0

func (m *Datav1TimeRange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Datav1TimeRange) UnmarshalBinary added in v0.7.0

func (m *Datav1TimeRange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Datav1TimeRange) Validate added in v0.7.0

func (m *Datav1TimeRange) Validate(formats strfmt.Registry) error

Validate validates this datav1 time range

type GooglerpcStatus

type GooglerpcStatus struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*ProtobufAny `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

GooglerpcStatus googlerpc status

swagger:model googlerpcStatus

func (*GooglerpcStatus) ContextValidate

func (m *GooglerpcStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this googlerpc status based on the context it is used

func (*GooglerpcStatus) MarshalBinary

func (m *GooglerpcStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GooglerpcStatus) UnmarshalBinary

func (m *GooglerpcStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GooglerpcStatus) Validate

func (m *GooglerpcStatus) Validate(formats strfmt.Registry) error

Validate validates this googlerpc status

type LabelFilterLabelMatcher added in v0.7.0

type LabelFilterLabelMatcher struct {

	// filter target
	FilterTarget LabelMatcherFilterTarget `json:"filter_target,omitempty"`

	// matcher
	Matcher *CommonPromQLMatcher `json:"matcher,omitempty"`
}

LabelFilterLabelMatcher One matcher, and which of the alert's two label sets it applies to.

swagger:model LabelFilterLabelMatcher

func (*LabelFilterLabelMatcher) ContextValidate added in v0.7.0

func (m *LabelFilterLabelMatcher) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this label filter label matcher based on the context it is used

func (*LabelFilterLabelMatcher) MarshalBinary added in v0.7.0

func (m *LabelFilterLabelMatcher) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LabelFilterLabelMatcher) UnmarshalBinary added in v0.7.0

func (m *LabelFilterLabelMatcher) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LabelFilterLabelMatcher) Validate added in v0.7.0

func (m *LabelFilterLabelMatcher) Validate(formats strfmt.Registry) error

Validate validates this label filter label matcher

type LabelFilterMatchStrategy added in v0.7.0

type LabelFilterMatchStrategy string

LabelFilterMatchStrategy How closely an alert's labels must correspond to the matchers.

  • SUBSET_MATCH: EQUAL matchers require the labels to contain all the given labels, but

the alert may carry more. NOT_EQUAL excludes an alert when the labels match any matcher.

  • EXACT_MATCH: EQUAL matchers require exactly the provided labels, no more or less.

NOT_EQUAL excludes an alert only when every NOT_EQUAL matcher applies.

swagger:model LabelFilterMatchStrategy

const (

	// LabelFilterMatchStrategySUBSETMATCH captures enum value "SUBSET_MATCH"
	LabelFilterMatchStrategySUBSETMATCH LabelFilterMatchStrategy = "SUBSET_MATCH"

	// LabelFilterMatchStrategyEXACTMATCH captures enum value "EXACT_MATCH"
	LabelFilterMatchStrategyEXACTMATCH LabelFilterMatchStrategy = "EXACT_MATCH"
)

func NewLabelFilterMatchStrategy added in v0.7.0

func NewLabelFilterMatchStrategy(value LabelFilterMatchStrategy) *LabelFilterMatchStrategy

func (LabelFilterMatchStrategy) ContextValidate added in v0.7.0

func (m LabelFilterMatchStrategy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label filter match strategy based on context it is used

func (LabelFilterMatchStrategy) Pointer added in v0.7.0

Pointer returns a pointer to a freshly-allocated LabelFilterMatchStrategy.

func (LabelFilterMatchStrategy) Validate added in v0.7.0

func (m LabelFilterMatchStrategy) Validate(formats strfmt.Registry) error

Validate validates this label filter match strategy

type LabelMatcherFilterTarget added in v0.7.0

type LabelMatcherFilterTarget string

LabelMatcherFilterTarget The label set a matcher reads. An alert carries the labels of the signal that fired (`SIGNAL`) and the labels of the monitor or SLO that raised it (`MONITOR`); the two are matched independently.

swagger:model LabelMatcherFilterTarget

const (

	// LabelMatcherFilterTargetMONITOR captures enum value "MONITOR"
	LabelMatcherFilterTargetMONITOR LabelMatcherFilterTarget = "MONITOR"

	// LabelMatcherFilterTargetSIGNAL captures enum value "SIGNAL"
	LabelMatcherFilterTargetSIGNAL LabelMatcherFilterTarget = "SIGNAL"
)

func NewLabelMatcherFilterTarget added in v0.7.0

func NewLabelMatcherFilterTarget(value LabelMatcherFilterTarget) *LabelMatcherFilterTarget

func (LabelMatcherFilterTarget) ContextValidate added in v0.7.0

func (m LabelMatcherFilterTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this label matcher filter target based on context it is used

func (LabelMatcherFilterTarget) Pointer added in v0.7.0

Pointer returns a pointer to a freshly-allocated LabelMatcherFilterTarget.

func (LabelMatcherFilterTarget) Validate added in v0.7.0

func (m LabelMatcherFilterTarget) Validate(formats strfmt.Registry) error

Validate validates this label matcher filter target

type ListAlertsRequestSortOrder added in v0.7.0

type ListAlertsRequestSortOrder string

ListAlertsRequestSortOrder The order alerts are returned in, by the time they triggered.

swagger:model ListAlertsRequestSortOrder

const (

	// ListAlertsRequestSortOrderTRIGGEREDDESC captures enum value "TRIGGERED_DESC"
	ListAlertsRequestSortOrderTRIGGEREDDESC ListAlertsRequestSortOrder = "TRIGGERED_DESC"

	// ListAlertsRequestSortOrderTRIGGEREDASC captures enum value "TRIGGERED_ASC"
	ListAlertsRequestSortOrderTRIGGEREDASC ListAlertsRequestSortOrder = "TRIGGERED_ASC"
)

func NewListAlertsRequestSortOrder added in v0.7.0

func NewListAlertsRequestSortOrder(value ListAlertsRequestSortOrder) *ListAlertsRequestSortOrder

func (ListAlertsRequestSortOrder) ContextValidate added in v0.7.0

func (m ListAlertsRequestSortOrder) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list alerts request sort order based on context it is used

func (ListAlertsRequestSortOrder) Pointer added in v0.7.0

Pointer returns a pointer to a freshly-allocated ListAlertsRequestSortOrder.

func (ListAlertsRequestSortOrder) Validate added in v0.7.0

func (m ListAlertsRequestSortOrder) Validate(formats strfmt.Registry) error

Validate validates this list alerts request sort order

type ListTracesRequestQueryType

type ListTracesRequestQueryType string

ListTracesRequestQueryType list traces request query type

swagger:model ListTracesRequestQueryType

const (

	// ListTracesRequestQueryTypeTRACEIDS captures enum value "TRACE_IDS"
	ListTracesRequestQueryTypeTRACEIDS ListTracesRequestQueryType = "TRACE_IDS"

	// ListTracesRequestQueryTypeSERVICEOPERATION captures enum value "SERVICE_OPERATION"
	ListTracesRequestQueryTypeSERVICEOPERATION ListTracesRequestQueryType = "SERVICE_OPERATION"
)

func (ListTracesRequestQueryType) ContextValidate

func (m ListTracesRequestQueryType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this list traces request query type based on context it is used

func (ListTracesRequestQueryType) Pointer

Pointer returns a pointer to a freshly-allocated ListTracesRequestQueryType.

func (ListTracesRequestQueryType) Validate

func (m ListTracesRequestQueryType) Validate(formats strfmt.Registry) error

Validate validates this list traces request query type

type ListTracesRequestTagFilter

type ListTracesRequestTagFilter struct {

	// The key (or name) of the span tag that is inspected by this filter.
	Key string `json:"key,omitempty"`

	// numeric value
	NumericValue *TagFilterNumericFilter `json:"numeric_value,omitempty"`

	// value
	Value *TagFilterStringFilter `json:"value,omitempty"`
}

ListTracesRequestTagFilter list traces request tag filter

swagger:model ListTracesRequestTagFilter

func (*ListTracesRequestTagFilter) ContextValidate

func (m *ListTracesRequestTagFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list traces request tag filter based on the context it is used

func (*ListTracesRequestTagFilter) MarshalBinary

func (m *ListTracesRequestTagFilter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ListTracesRequestTagFilter) UnmarshalBinary

func (m *ListTracesRequestTagFilter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ListTracesRequestTagFilter) Validate

func (m *ListTracesRequestTagFilter) Validate(formats strfmt.Registry) error

Validate validates this list traces request tag filter

type NumericFilterComparisonType

type NumericFilterComparisonType string

NumericFilterComparisonType numeric filter comparison type

swagger:model NumericFilterComparisonType

const (

	// NumericFilterComparisonTypeEQUAL captures enum value "EQUAL"
	NumericFilterComparisonTypeEQUAL NumericFilterComparisonType = "EQUAL"

	// NumericFilterComparisonTypeNOTEQUAL captures enum value "NOT_EQUAL"
	NumericFilterComparisonTypeNOTEQUAL NumericFilterComparisonType = "NOT_EQUAL"

	// NumericFilterComparisonTypeGREATERTHAN captures enum value "GREATER_THAN"
	NumericFilterComparisonTypeGREATERTHAN NumericFilterComparisonType = "GREATER_THAN"

	// NumericFilterComparisonTypeGREATERTHANOREQUAL captures enum value "GREATER_THAN_OR_EQUAL"
	NumericFilterComparisonTypeGREATERTHANOREQUAL NumericFilterComparisonType = "GREATER_THAN_OR_EQUAL"

	// NumericFilterComparisonTypeLESSTHAN captures enum value "LESS_THAN"
	NumericFilterComparisonTypeLESSTHAN NumericFilterComparisonType = "LESS_THAN"

	// NumericFilterComparisonTypeLESSTHANOREQUAL captures enum value "LESS_THAN_OR_EQUAL"
	NumericFilterComparisonTypeLESSTHANOREQUAL NumericFilterComparisonType = "LESS_THAN_OR_EQUAL"
)

func (NumericFilterComparisonType) ContextValidate

func (m NumericFilterComparisonType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this numeric filter comparison type based on context it is used

func (NumericFilterComparisonType) Pointer

Pointer returns a pointer to a freshly-allocated NumericFilterComparisonType.

func (NumericFilterComparisonType) Validate

func (m NumericFilterComparisonType) Validate(formats strfmt.Registry) error

Validate validates this numeric filter comparison type

type ProtobufAny

type ProtobufAny struct {

	// at type
	AtType string `json:"@type,omitempty"`

	// protobuf any
	ProtobufAny map[string]interface{} `json:"-"`
}

ProtobufAny protobuf any

swagger:model protobufAny

func (*ProtobufAny) ContextValidate

func (m *ProtobufAny) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this protobuf any based on context it is used

func (*ProtobufAny) MarshalBinary

func (m *ProtobufAny) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ProtobufAny) MarshalJSON

func (m ProtobufAny) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*ProtobufAny) UnmarshalBinary

func (m *ProtobufAny) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProtobufAny) UnmarshalJSON

func (m *ProtobufAny) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*ProtobufAny) Validate

func (m *ProtobufAny) Validate(formats strfmt.Registry) error

Validate validates this protobuf any

type QueryLogsRangeResponseColumnMeta

type QueryLogsRangeResponseColumnMeta struct {

	// The column names to include in the tabular results.
	Name string `json:"name,omitempty"`

	// type
	Type QueryLogsRangeResponseColumnMetaType `json:"type,omitempty"`
}

QueryLogsRangeResponseColumnMeta query logs range response column meta

swagger:model QueryLogsRangeResponseColumnMeta

func (*QueryLogsRangeResponseColumnMeta) ContextValidate

func (m *QueryLogsRangeResponseColumnMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query logs range response column meta based on the context it is used

func (*QueryLogsRangeResponseColumnMeta) MarshalBinary

func (m *QueryLogsRangeResponseColumnMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryLogsRangeResponseColumnMeta) UnmarshalBinary

func (m *QueryLogsRangeResponseColumnMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryLogsRangeResponseColumnMeta) Validate

Validate validates this query logs range response column meta

type QueryLogsRangeResponseColumnMetaType

type QueryLogsRangeResponseColumnMetaType string

QueryLogsRangeResponseColumnMetaType The data type to include in each column.

swagger:model QueryLogsRangeResponseColumnMetaType

const (

	// QueryLogsRangeResponseColumnMetaTypeBOOLEAN captures enum value "BOOLEAN"
	QueryLogsRangeResponseColumnMetaTypeBOOLEAN QueryLogsRangeResponseColumnMetaType = "BOOLEAN"

	// QueryLogsRangeResponseColumnMetaTypeFLOAT captures enum value "FLOAT"
	QueryLogsRangeResponseColumnMetaTypeFLOAT QueryLogsRangeResponseColumnMetaType = "FLOAT"

	// QueryLogsRangeResponseColumnMetaTypeSTRING captures enum value "STRING"
	QueryLogsRangeResponseColumnMetaTypeSTRING QueryLogsRangeResponseColumnMetaType = "STRING"
)

func (QueryLogsRangeResponseColumnMetaType) ContextValidate

func (m QueryLogsRangeResponseColumnMetaType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this query logs range response column meta type based on context it is used

func (QueryLogsRangeResponseColumnMetaType) Pointer

Pointer returns a pointer to a freshly-allocated QueryLogsRangeResponseColumnMetaType.

func (QueryLogsRangeResponseColumnMetaType) Validate

Validate validates this query logs range response column meta type

type QueryLogsRangeResponseGridData

type QueryLogsRangeResponseGridData struct {

	// Defines the structure and data types of columns in tabular log results.
	Columns []*QueryLogsRangeResponseColumnMeta `json:"columns"`

	// Defines the structure and data types of rows in tabular log results.
	Rows []*QueryLogsRangeResponseRow `json:"rows"`
}

QueryLogsRangeResponseGridData query logs range response grid data

swagger:model QueryLogsRangeResponseGridData

func (*QueryLogsRangeResponseGridData) ContextValidate

func (m *QueryLogsRangeResponseGridData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query logs range response grid data based on the context it is used

func (*QueryLogsRangeResponseGridData) MarshalBinary

func (m *QueryLogsRangeResponseGridData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryLogsRangeResponseGridData) UnmarshalBinary

func (m *QueryLogsRangeResponseGridData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryLogsRangeResponseGridData) Validate

func (m *QueryLogsRangeResponseGridData) Validate(formats strfmt.Registry) error

Validate validates this query logs range response grid data

type QueryLogsRangeResponseMetadata

type QueryLogsRangeResponseMetadata struct {

	// Indicates whether the result is truncated by the request limit.
	LimitEnforced bool `json:"limit_enforced,omitempty"`

	// page
	Page *QueryLogsRangeResponseMetadataPageResult `json:"page,omitempty"`
}

QueryLogsRangeResponseMetadata query logs range response metadata

swagger:model QueryLogsRangeResponseMetadata

func (*QueryLogsRangeResponseMetadata) ContextValidate

func (m *QueryLogsRangeResponseMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query logs range response metadata based on the context it is used

func (*QueryLogsRangeResponseMetadata) MarshalBinary

func (m *QueryLogsRangeResponseMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryLogsRangeResponseMetadata) UnmarshalBinary

func (m *QueryLogsRangeResponseMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryLogsRangeResponseMetadata) Validate

func (m *QueryLogsRangeResponseMetadata) Validate(formats strfmt.Registry) error

Validate validates this query logs range response metadata

type QueryLogsRangeResponseMetadataPageResult

type QueryLogsRangeResponseMetadataPageResult struct {

	// Opaque page token that identifies the next page of items to request.
	// An empty value indicates there are no more items to return.
	NextToken string `json:"next_token,omitempty"`
}

QueryLogsRangeResponseMetadataPageResult query logs range response metadata page result

swagger:model QueryLogsRangeResponseMetadataPageResult

func (*QueryLogsRangeResponseMetadataPageResult) ContextValidate

ContextValidate validates this query logs range response metadata page result based on context it is used

func (*QueryLogsRangeResponseMetadataPageResult) MarshalBinary

func (m *QueryLogsRangeResponseMetadataPageResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryLogsRangeResponseMetadataPageResult) UnmarshalBinary

func (m *QueryLogsRangeResponseMetadataPageResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryLogsRangeResponseMetadataPageResult) Validate

Validate validates this query logs range response metadata page result

type QueryLogsRangeResponseRow

type QueryLogsRangeResponseRow struct {

	// Values to include that match each column type. Only one of the supported
	// fields can be set depending on the type of value.
	Values []*QueryLogsRangeResponseRowValue `json:"values"`
}

QueryLogsRangeResponseRow query logs range response row

swagger:model QueryLogsRangeResponseRow

func (*QueryLogsRangeResponseRow) ContextValidate

func (m *QueryLogsRangeResponseRow) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query logs range response row based on the context it is used

func (*QueryLogsRangeResponseRow) MarshalBinary

func (m *QueryLogsRangeResponseRow) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryLogsRangeResponseRow) UnmarshalBinary

func (m *QueryLogsRangeResponseRow) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryLogsRangeResponseRow) Validate

func (m *QueryLogsRangeResponseRow) Validate(formats strfmt.Registry) error

Validate validates this query logs range response row

type QueryLogsRangeResponseRowValue

type QueryLogsRangeResponseRowValue struct {

	// Indicates a boolean value.
	BoolValue bool `json:"bool_value,omitempty"`

	// Indicates a float value.
	FloatValue float64 `json:"float_value,omitempty"`

	// Indicates a string value.
	StringValue string `json:"string_value,omitempty"`
}

QueryLogsRangeResponseRowValue query logs range response row value

swagger:model QueryLogsRangeResponseRowValue

func (*QueryLogsRangeResponseRowValue) ContextValidate

func (m *QueryLogsRangeResponseRowValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this query logs range response row value based on context it is used

func (*QueryLogsRangeResponseRowValue) MarshalBinary

func (m *QueryLogsRangeResponseRowValue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryLogsRangeResponseRowValue) UnmarshalBinary

func (m *QueryLogsRangeResponseRowValue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryLogsRangeResponseRowValue) Validate

func (m *QueryLogsRangeResponseRowValue) Validate(formats strfmt.Registry) error

Validate validates this query logs range response row value

type QueryLogsRangeResponseTimeSeriesData

type QueryLogsRangeResponseTimeSeriesData struct {

	// Names of the dimensions to group results by.
	GroupByDimensionNames []string `json:"group_by_dimension_names"`

	// Specifies the time series to return from query results.
	Series []*TimeSeriesDataTimeSeries `json:"series"`
}

QueryLogsRangeResponseTimeSeriesData query logs range response time series data

swagger:model QueryLogsRangeResponseTimeSeriesData

func (*QueryLogsRangeResponseTimeSeriesData) ContextValidate

func (m *QueryLogsRangeResponseTimeSeriesData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query logs range response time series data based on the context it is used

func (*QueryLogsRangeResponseTimeSeriesData) MarshalBinary

func (m *QueryLogsRangeResponseTimeSeriesData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryLogsRangeResponseTimeSeriesData) UnmarshalBinary

func (m *QueryLogsRangeResponseTimeSeriesData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryLogsRangeResponseTimeSeriesData) Validate

Validate validates this query logs range response time series data

type SpanLink struct {

	// attributes is a collection of attribute key/value pairs on the link.
	// Attribute keys MUST be unique (it is not allowed to have more than one
	// attribute with the same key).
	Attributes []*V1KeyValue `json:"attributes"`

	// dropped_attributes_count is the number of dropped attributes. If the value is 0,
	// then no attributes were dropped.
	DroppedAttributesCount int64 `json:"dropped_attributes_count,omitempty"`

	// Flags, a bit field.
	//
	// Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace
	// Context specification. To read the 8-bit W3C trace flag, use
	// `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`.
	//
	// See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
	//
	// Bits 8 and 9 represent the 3 states of whether the link is remote.
	// The states are (unknown, is not remote, is remote).
	// To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`.
	// To read whether the link is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`.
	//
	// Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero.
	// When creating new spans, bits 10-31 (most-significant 22-bits) MUST be zero.
	//
	// [Optional].
	Flags int64 `json:"flags,omitempty"`

	// A unique identifier for the linked span. The ID is an 8-byte array.
	// Format: byte
	SpanID strfmt.Base64 `json:"span_id,omitempty"`

	// A unique identifier of a trace that this linked span is part of. The ID is a
	// 16-byte array.
	// Format: byte
	TraceID strfmt.Base64 `json:"trace_id,omitempty"`

	// The trace_state associated with the link.
	TraceState string `json:"trace_state,omitempty"`
}

SpanLink A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.

swagger:model SpanLink

func (*SpanLink) ContextValidate

func (m *SpanLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this span link based on the context it is used

func (*SpanLink) MarshalBinary

func (m *SpanLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SpanLink) UnmarshalBinary

func (m *SpanLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SpanLink) Validate

func (m *SpanLink) Validate(formats strfmt.Registry) error

Validate validates this span link

type SpanSpanKind

type SpanSpanKind string

SpanSpanKind SpanKind is the type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.

  • SPAN_KIND_INTERNAL: Indicates that the span represents an internal operation within an application,

as opposed to an operation happening at the boundaries. Default value.

  • SPAN_KIND_SERVER: Indicates that the span covers server-side handling of an RPC or other

remote network request.

  • SPAN_KIND_CLIENT: Indicates that the span describes a request to some remote service.
  • SPAN_KIND_PRODUCER: Indicates that the span describes a producer sending a message to a broker.

Unlike CLIENT and SERVER, there is often no direct critical path latency relationship between producer and consumer spans. A PRODUCER span ends when the message was accepted by the broker while the logical processing of the message might span a much longer time.

  • SPAN_KIND_CONSUMER: Indicates that the span describes consumer receiving a message from a broker.

Like the PRODUCER kind, there is often no direct critical path latency relationship between producer and consumer spans.

swagger:model SpanSpanKind

const (

	// SpanSpanKindSPANKINDINTERNAL captures enum value "SPAN_KIND_INTERNAL"
	SpanSpanKindSPANKINDINTERNAL SpanSpanKind = "SPAN_KIND_INTERNAL"

	// SpanSpanKindSPANKINDSERVER captures enum value "SPAN_KIND_SERVER"
	SpanSpanKindSPANKINDSERVER SpanSpanKind = "SPAN_KIND_SERVER"

	// SpanSpanKindSPANKINDCLIENT captures enum value "SPAN_KIND_CLIENT"
	SpanSpanKindSPANKINDCLIENT SpanSpanKind = "SPAN_KIND_CLIENT"

	// SpanSpanKindSPANKINDPRODUCER captures enum value "SPAN_KIND_PRODUCER"
	SpanSpanKindSPANKINDPRODUCER SpanSpanKind = "SPAN_KIND_PRODUCER"

	// SpanSpanKindSPANKINDCONSUMER captures enum value "SPAN_KIND_CONSUMER"
	SpanSpanKindSPANKINDCONSUMER SpanSpanKind = "SPAN_KIND_CONSUMER"
)

func NewSpanSpanKind

func NewSpanSpanKind(value SpanSpanKind) *SpanSpanKind

func (SpanSpanKind) ContextValidate

func (m SpanSpanKind) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this span span kind based on context it is used

func (SpanSpanKind) Pointer

func (m SpanSpanKind) Pointer() *SpanSpanKind

Pointer returns a pointer to a freshly-allocated SpanSpanKind.

func (SpanSpanKind) Validate

func (m SpanSpanKind) Validate(formats strfmt.Registry) error

Validate validates this span span kind

type StatusStatusCode

type StatusStatusCode string

StatusStatusCode For the semantics of status codes see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status

- STATUS_CODE_OK: The Span has been validated by an Application developer or Operator to have completed successfully.

  • STATUS_CODE_ERROR: The Span contains an error.

swagger:model StatusStatusCode

const (

	// StatusStatusCodeSTATUSCODEOK captures enum value "STATUS_CODE_OK"
	StatusStatusCodeSTATUSCODEOK StatusStatusCode = "STATUS_CODE_OK"

	// StatusStatusCodeSTATUSCODEERROR captures enum value "STATUS_CODE_ERROR"
	StatusStatusCodeSTATUSCODEERROR StatusStatusCode = "STATUS_CODE_ERROR"
)

func NewStatusStatusCode

func NewStatusStatusCode(value StatusStatusCode) *StatusStatusCode

func (StatusStatusCode) ContextValidate

func (m StatusStatusCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this status status code based on context it is used

func (StatusStatusCode) Pointer

func (m StatusStatusCode) Pointer() *StatusStatusCode

Pointer returns a pointer to a freshly-allocated StatusStatusCode.

func (StatusStatusCode) Validate

func (m StatusStatusCode) Validate(formats strfmt.Registry) error

Validate validates this status status code

type StringFilterStringFilterMatchType

type StringFilterStringFilterMatchType string

StringFilterStringFilterMatchType string filter string filter match type

swagger:model StringFilterStringFilterMatchType

const (

	// StringFilterStringFilterMatchTypeEXACT captures enum value "EXACT"
	StringFilterStringFilterMatchTypeEXACT StringFilterStringFilterMatchType = "EXACT"

	// StringFilterStringFilterMatchTypeREGEX captures enum value "REGEX"
	StringFilterStringFilterMatchTypeREGEX StringFilterStringFilterMatchType = "REGEX"

	// StringFilterStringFilterMatchTypeEXACTNEGATION captures enum value "EXACT_NEGATION"
	StringFilterStringFilterMatchTypeEXACTNEGATION StringFilterStringFilterMatchType = "EXACT_NEGATION"

	// StringFilterStringFilterMatchTypeREGEXNEGATION captures enum value "REGEX_NEGATION"
	StringFilterStringFilterMatchTypeREGEXNEGATION StringFilterStringFilterMatchType = "REGEX_NEGATION"

	// StringFilterStringFilterMatchTypeIN captures enum value "IN"
	StringFilterStringFilterMatchTypeIN StringFilterStringFilterMatchType = "IN"

	// StringFilterStringFilterMatchTypeNOTIN captures enum value "NOT_IN"
	StringFilterStringFilterMatchTypeNOTIN StringFilterStringFilterMatchType = "NOT_IN"
)

func (StringFilterStringFilterMatchType) ContextValidate

func (m StringFilterStringFilterMatchType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this string filter string filter match type based on context it is used

func (StringFilterStringFilterMatchType) Pointer

Pointer returns a pointer to a freshly-allocated StringFilterStringFilterMatchType.

func (StringFilterStringFilterMatchType) Validate

Validate validates this string filter string filter match type

type TagFilterNumericFilter

type TagFilterNumericFilter struct {

	// comparison
	Comparison NumericFilterComparisonType `json:"comparison,omitempty"`

	// The filter value used in comparison against match candidates.
	Value float64 `json:"value,omitempty"`
}

TagFilterNumericFilter tag filter numeric filter

swagger:model TagFilterNumericFilter

func (*TagFilterNumericFilter) ContextValidate

func (m *TagFilterNumericFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this tag filter numeric filter based on the context it is used

func (*TagFilterNumericFilter) MarshalBinary

func (m *TagFilterNumericFilter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TagFilterNumericFilter) UnmarshalBinary

func (m *TagFilterNumericFilter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TagFilterNumericFilter) Validate

func (m *TagFilterNumericFilter) Validate(formats strfmt.Registry) error

Validate validates this tag filter numeric filter

type TagFilterStringFilter

type TagFilterStringFilter struct {

	// Values the filter tests against when using IN or NOT_IN match type.
	InValues []string `json:"in_values"`

	// match
	Match StringFilterStringFilterMatchType `json:"match,omitempty"`

	// The value the filter compares to the target trace or span field.
	Value string `json:"value,omitempty"`
}

TagFilterStringFilter tag filter string filter

swagger:model TagFilterStringFilter

func (*TagFilterStringFilter) ContextValidate

func (m *TagFilterStringFilter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this tag filter string filter based on the context it is used

func (*TagFilterStringFilter) MarshalBinary

func (m *TagFilterStringFilter) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TagFilterStringFilter) UnmarshalBinary

func (m *TagFilterStringFilter) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TagFilterStringFilter) Validate

func (m *TagFilterStringFilter) Validate(formats strfmt.Registry) error

Validate validates this tag filter string filter

type TimeSeriesBucket

type TimeSeriesBucket struct {

	// The end time of the time range for this bucket.
	// Format: date-time
	EndTime strfmt.DateTime `json:"end_time,omitempty"`

	// The aggregated value for the time period of this bucket.
	// This value is nullable.
	FloatValue float64 `json:"float_value,omitempty"`

	// The start time of the time range for this bucket.
	// Format: date-time
	StartTime strfmt.DateTime `json:"start_time,omitempty"`
}

TimeSeriesBucket time series bucket

swagger:model TimeSeriesBucket

func (*TimeSeriesBucket) ContextValidate

func (m *TimeSeriesBucket) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this time series bucket based on context it is used

func (*TimeSeriesBucket) MarshalBinary

func (m *TimeSeriesBucket) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TimeSeriesBucket) UnmarshalBinary

func (m *TimeSeriesBucket) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimeSeriesBucket) Validate

func (m *TimeSeriesBucket) Validate(formats strfmt.Registry) error

Validate validates this time series bucket

type TimeSeriesDataTimeSeries

type TimeSeriesDataTimeSeries struct {

	// Name of the aggregation used to calculate the values.
	AggregationName string `json:"aggregation_name,omitempty"`

	// Defines a time-bounded data point in a time series to store aggregated
	// values over specific time intervals.
	Buckets []*TimeSeriesBucket `json:"buckets"`

	// Values of the dimensions to group results by.
	GroupByDimensionValues []string `json:"group_by_dimension_values"`
}

TimeSeriesDataTimeSeries time series data time series

swagger:model TimeSeriesDataTimeSeries

func (*TimeSeriesDataTimeSeries) ContextValidate

func (m *TimeSeriesDataTimeSeries) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this time series data time series based on the context it is used

func (*TimeSeriesDataTimeSeries) MarshalBinary

func (m *TimeSeriesDataTimeSeries) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TimeSeriesDataTimeSeries) UnmarshalBinary

func (m *TimeSeriesDataTimeSeries) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TimeSeriesDataTimeSeries) Validate

func (m *TimeSeriesDataTimeSeries) Validate(formats strfmt.Registry) error

Validate validates this time series data time series

type Tracev1Status

type Tracev1Status struct {

	// code
	Code StatusStatusCode `json:"code,omitempty"`

	// A developer-facing human readable error message.
	Message string `json:"message,omitempty"`
}

Tracev1Status The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.

swagger:model tracev1Status

func (*Tracev1Status) ContextValidate

func (m *Tracev1Status) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this tracev1 status based on the context it is used

func (*Tracev1Status) MarshalBinary

func (m *Tracev1Status) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Tracev1Status) UnmarshalBinary

func (m *Tracev1Status) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Tracev1Status) Validate

func (m *Tracev1Status) Validate(formats strfmt.Registry) error

Validate validates this tracev1 status

type V1AnyValue

type V1AnyValue struct {

	// array value
	ArrayValue *V1ArrayValue `json:"array_value,omitempty"`

	// bool value
	BoolValue bool `json:"bool_value,omitempty"`

	// bytes value
	// Format: byte
	BytesValue strfmt.Base64 `json:"bytes_value,omitempty"`

	// double value
	DoubleValue float64 `json:"double_value,omitempty"`

	// int value
	IntValue string `json:"int_value,omitempty"`

	// kvlist value
	KvlistValue *V1KeyValueList `json:"kvlist_value,omitempty"`

	// string value
	StringValue string `json:"string_value,omitempty"`
}

V1AnyValue AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and primitives.

swagger:model v1AnyValue

func (*V1AnyValue) ContextValidate

func (m *V1AnyValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 any value based on the context it is used

func (*V1AnyValue) MarshalBinary

func (m *V1AnyValue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1AnyValue) UnmarshalBinary

func (m *V1AnyValue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1AnyValue) Validate

func (m *V1AnyValue) Validate(formats strfmt.Registry) error

Validate validates this v1 any value

type V1ArrayValue

type V1ArrayValue struct {

	// Array of values. The array may be empty (contain 0 elements).
	Values []*V1AnyValue `json:"values"`
}

V1ArrayValue ArrayValue is a list of AnyValue messages. We need ArrayValue as a message since oneof in AnyValue does not allow repeated fields.

swagger:model v1ArrayValue

func (*V1ArrayValue) ContextValidate

func (m *V1ArrayValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 array value based on the context it is used

func (*V1ArrayValue) MarshalBinary

func (m *V1ArrayValue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ArrayValue) UnmarshalBinary

func (m *V1ArrayValue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ArrayValue) Validate

func (m *V1ArrayValue) Validate(formats strfmt.Registry) error

Validate validates this v1 array value

type V1EntityRef

type V1EntityRef struct {

	// Descriptive (non-identifying) attribute keys of the entity.
	// MAY change over the lifetime of the entity. MAY be empty.
	// These attribute keys are not part of entity's identity.
	// These keys MUST exist in the containing {message}.attributes.
	DescriptionKeys []string `json:"description_keys"`

	// Attribute Keys that identify the entity.
	// MUST not change during the lifetime of the entity. The Id must contain at least one attribute.
	// These keys MUST exist in the containing {message}.attributes.
	IDKeys []string `json:"id_keys"`

	// The Schema URL, if known. This is the identifier of the Schema that the entity data
	// is recorded in. To learn more about Schema URL see
	// https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
	//
	// This schema_url applies to the data in this message and to the Resource attributes
	// referenced by id_keys and description_keys.
	// TODO: discuss if we are happy with this somewhat complicated definition of what
	// the schema_url applies to.
	//
	// This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs.
	SchemaURL string `json:"schema_url,omitempty"`

	// Defines the type of the entity. MUST not change during the lifetime of the entity.
	// For example: "service" or "host". This field is required and MUST not be empty
	// for valid entities.
	Type string `json:"type,omitempty"`
}

V1EntityRef A reference to an Entity. Entity represents an object of interest associated with produced telemetry: e.g spans, metrics, profiles, or logs.

Status: [Development]

swagger:model v1EntityRef

func (*V1EntityRef) ContextValidate

func (m *V1EntityRef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 entity ref based on context it is used

func (*V1EntityRef) MarshalBinary

func (m *V1EntityRef) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1EntityRef) UnmarshalBinary

func (m *V1EntityRef) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1EntityRef) Validate

func (m *V1EntityRef) Validate(formats strfmt.Registry) error

Validate validates this v1 entity ref

type V1InstrumentationScope

type V1InstrumentationScope struct {

	// Additional attributes that describe the scope. [Optional].
	// Attribute keys MUST be unique (it is not allowed to have more than one
	// attribute with the same key).
	Attributes []*V1KeyValue `json:"attributes"`

	// dropped attributes count
	DroppedAttributesCount int64 `json:"dropped_attributes_count,omitempty"`

	// An empty instrumentation scope name means the name is unknown.
	Name string `json:"name,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

V1InstrumentationScope InstrumentationScope is a message representing the instrumentation scope information such as the fully qualified name and version.

swagger:model v1InstrumentationScope

func (*V1InstrumentationScope) ContextValidate

func (m *V1InstrumentationScope) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 instrumentation scope based on the context it is used

func (*V1InstrumentationScope) MarshalBinary

func (m *V1InstrumentationScope) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1InstrumentationScope) UnmarshalBinary

func (m *V1InstrumentationScope) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1InstrumentationScope) Validate

func (m *V1InstrumentationScope) Validate(formats strfmt.Registry) error

Validate validates this v1 instrumentation scope

type V1KeyValue

type V1KeyValue struct {

	// key
	Key string `json:"key,omitempty"`

	// value
	Value *V1AnyValue `json:"value,omitempty"`
}

V1KeyValue KeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.

swagger:model v1KeyValue

func (*V1KeyValue) ContextValidate

func (m *V1KeyValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 key value based on the context it is used

func (*V1KeyValue) MarshalBinary

func (m *V1KeyValue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1KeyValue) UnmarshalBinary

func (m *V1KeyValue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1KeyValue) Validate

func (m *V1KeyValue) Validate(formats strfmt.Registry) error

Validate validates this v1 key value

type V1KeyValueList

type V1KeyValueList struct {

	// A collection of key/value pairs of key-value pairs. The list may be empty (may
	// contain 0 elements).
	// The keys MUST be unique (it is not allowed to have more than one
	// value with the same key).
	Values []*V1KeyValue `json:"values"`
}

V1KeyValueList KeyValueList is a list of KeyValue messages. We need KeyValueList as a message since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches are semantically equivalent.

swagger:model v1KeyValueList

func (*V1KeyValueList) ContextValidate

func (m *V1KeyValueList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 key value list based on the context it is used

func (*V1KeyValueList) MarshalBinary

func (m *V1KeyValueList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1KeyValueList) UnmarshalBinary

func (m *V1KeyValueList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1KeyValueList) Validate

func (m *V1KeyValueList) Validate(formats strfmt.Registry) error

Validate validates this v1 key value list

type V1Resource

type V1Resource struct {

	// Set of attributes that describe the resource.
	// Attribute keys MUST be unique (it is not allowed to have more than one
	// attribute with the same key).
	Attributes []*V1KeyValue `json:"attributes"`

	// dropped_attributes_count is the number of dropped attributes. If the value is 0, then
	// no attributes were dropped.
	DroppedAttributesCount int64 `json:"dropped_attributes_count,omitempty"`

	// Set of entities that participate in this Resource.
	//
	// Note: keys in the references MUST exist in attributes of this message.
	//
	// Status: [Development]
	EntityRefs []*V1EntityRef `json:"entity_refs"`
}

V1Resource Resource information.

swagger:model v1Resource

func (*V1Resource) ContextValidate

func (m *V1Resource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 resource based on the context it is used

func (*V1Resource) MarshalBinary

func (m *V1Resource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Resource) UnmarshalBinary

func (m *V1Resource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Resource) Validate

func (m *V1Resource) Validate(formats strfmt.Registry) error

Validate validates this v1 resource

type V1ResourceSpans

type V1ResourceSpans struct {

	// resource
	Resource *V1Resource `json:"resource,omitempty"`

	// The Schema URL, if known. This is the identifier of the Schema that the resource data
	// is recorded in. Notably, the last part of the URL path is the version number of the
	// schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
	// https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
	// This schema_url applies to the data in the "resource" field. It does not apply
	// to the data in the "scope_spans" field which have their own schema_url field.
	SchemaURL string `json:"schema_url,omitempty"`

	// A list of ScopeSpans that originate from a resource.
	ScopeSpans []*V1ScopeSpans `json:"scope_spans"`
}

V1ResourceSpans A collection of ScopeSpans from a Resource.

swagger:model v1ResourceSpans

func (*V1ResourceSpans) ContextValidate

func (m *V1ResourceSpans) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 resource spans based on the context it is used

func (*V1ResourceSpans) MarshalBinary

func (m *V1ResourceSpans) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ResourceSpans) UnmarshalBinary

func (m *V1ResourceSpans) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ResourceSpans) Validate

func (m *V1ResourceSpans) Validate(formats strfmt.Registry) error

Validate validates this v1 resource spans

type V1ScopeSpans

type V1ScopeSpans struct {

	// The Schema URL, if known. This is the identifier of the Schema that the span data
	// is recorded in. Notably, the last part of the URL path is the version number of the
	// schema: http[s]://server[:port]/path/<version>. To learn more about Schema URL see
	// https://opentelemetry.io/docs/specs/otel/schemas/#schema-url
	// This schema_url applies to all spans and span events in the "spans" field.
	SchemaURL string `json:"schema_url,omitempty"`

	// scope
	Scope *V1InstrumentationScope `json:"scope,omitempty"`

	// A list of Spans that originate from an instrumentation scope.
	Spans []*V1Span `json:"spans"`
}

V1ScopeSpans A collection of Spans produced by an InstrumentationScope.

swagger:model v1ScopeSpans

func (*V1ScopeSpans) ContextValidate

func (m *V1ScopeSpans) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 scope spans based on the context it is used

func (*V1ScopeSpans) MarshalBinary

func (m *V1ScopeSpans) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ScopeSpans) UnmarshalBinary

func (m *V1ScopeSpans) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ScopeSpans) Validate

func (m *V1ScopeSpans) Validate(formats strfmt.Registry) error

Validate validates this v1 scope spans

type V1Span

type V1Span struct {

	// attributes is a collection of key/value pairs. Note, global attributes
	// like server name can be set using the resource API. Examples of attributes:
	//
	// "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
	//     "/http/server_latency": 300
	//     "example.com/myattribute": true
	//     "example.com/score": 10.239
	//
	// The OpenTelemetry API specification further restricts the allowed value types:
	// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute
	// Attribute keys MUST be unique (it is not allowed to have more than one
	// attribute with the same key).
	Attributes []*V1KeyValue `json:"attributes"`

	// dropped_attributes_count is the number of attributes that were discarded. Attributes
	// can be discarded because their keys are too long or because there are too many
	// attributes. If this value is 0, then no attributes were dropped.
	DroppedAttributesCount int64 `json:"dropped_attributes_count,omitempty"`

	// dropped_events_count is the number of dropped events. If the value is 0, then no
	// events were dropped.
	DroppedEventsCount int64 `json:"dropped_events_count,omitempty"`

	// dropped_links_count is the number of dropped links after the maximum size was
	// enforced. If this value is 0, then no links were dropped.
	DroppedLinksCount int64 `json:"dropped_links_count,omitempty"`

	// end_time_unix_nano is the end time of the span. On the client side, this is the time
	// kept by the local machine where the span execution ends. On the server side, this
	// is the time when the server application handler stops running.
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
	//
	// This field is semantically required and it is expected that end_time >= start_time.
	EndTimeUnixNano string `json:"end_time_unix_nano,omitempty"`

	// events is a collection of Event items.
	Events []*V1SpanEvent `json:"events"`

	// Flags, a bit field.
	//
	// Bits 0-7 (8 least significant bits) are the trace flags as defined in W3C Trace
	// Context specification. To read the 8-bit W3C trace flag, use
	// `flags & SPAN_FLAGS_TRACE_FLAGS_MASK`.
	//
	// See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
	//
	// Bits 8 and 9 represent the 3 states of whether a span's parent
	// is remote. The states are (unknown, is not remote, is remote).
	// To read whether the value is known, use `(flags & SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK) != 0`.
	// To read whether the span is remote, use `(flags & SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK) != 0`.
	//
	// When creating span messages, if the message is logically forwarded from another source
	// with an equivalent flags fields (i.e., usually another OTLP span message), the field SHOULD
	// be copied as-is. If creating from a source that does not have an equivalent flags field
	// (such as a runtime representation of an OpenTelemetry span), the high 22 bits MUST
	// be set to zero.
	// Readers MUST NOT assume that bits 10-31 (22 most significant bits) will be zero.
	//
	// [Optional].
	Flags int64 `json:"flags,omitempty"`

	// kind
	Kind SpanSpanKind `json:"kind,omitempty"`

	// links is a collection of Links, which are references from this span to a span
	// in the same or different trace.
	Links []*SpanLink `json:"links"`

	// A description of the span's operation.
	//
	// For example, the name can be a qualified method name or a file name
	// and a line number where the operation is called. A best practice is to use
	// the same display name at the same call point in an application.
	// This makes it easier to correlate spans in different traces.
	//
	// This field is semantically required to be set to non-empty string.
	// Empty value is equivalent to an unknown span name.
	//
	// This field is required.
	Name string `json:"name,omitempty"`

	// The `span_id` of this span's parent span. If this is a root span, then this
	// field must be empty. The ID is an 8-byte array.
	// Format: byte
	ParentSpanID strfmt.Base64 `json:"parent_span_id,omitempty"`

	// A unique identifier for a span within a trace, assigned when the span
	// is created. The ID is an 8-byte array. An ID with all zeroes OR of length
	// other than 8 bytes is considered invalid (empty string in OTLP/JSON
	// is zero-length and thus is also invalid).
	//
	// This field is required.
	// Format: byte
	SpanID strfmt.Base64 `json:"span_id,omitempty"`

	// start_time_unix_nano is the start time of the span. On the client side, this is the time
	// kept by the local machine where the span execution starts. On the server side, this
	// is the time when the server's application handler starts running.
	// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
	//
	// This field is semantically required and it is expected that end_time >= start_time.
	StartTimeUnixNano string `json:"start_time_unix_nano,omitempty"`

	// status
	Status *Tracev1Status `json:"status,omitempty"`

	// A unique identifier for a trace. All spans from the same trace share
	// the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes OR
	// of length other than 16 bytes is considered invalid (empty string in OTLP/JSON
	// is zero-length and thus is also invalid).
	//
	// This field is required.
	// Format: byte
	TraceID strfmt.Base64 `json:"trace_id,omitempty"`

	// trace_state conveys information about request position in multiple distributed tracing graphs.
	// It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header
	// See also https://github.com/w3c/distributed-tracing for more details about this field.
	TraceState string `json:"trace_state,omitempty"`
}

V1Span A Span represents a single operation performed by a single component of the system.

The next available field id is 17.

swagger:model v1Span

func (*V1Span) ContextValidate

func (m *V1Span) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 span based on the context it is used

func (*V1Span) MarshalBinary

func (m *V1Span) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Span) UnmarshalBinary

func (m *V1Span) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Span) Validate

func (m *V1Span) Validate(formats strfmt.Registry) error

Validate validates this v1 span

type V1SpanEvent

type V1SpanEvent struct {

	// attributes is a collection of attribute key/value pairs on the event.
	// Attribute keys MUST be unique (it is not allowed to have more than one
	// attribute with the same key).
	Attributes []*V1KeyValue `json:"attributes"`

	// dropped_attributes_count is the number of dropped attributes. If the value is 0,
	// then no attributes were dropped.
	DroppedAttributesCount int64 `json:"dropped_attributes_count,omitempty"`

	// name of the event.
	// This field is semantically required to be set to non-empty string.
	Name string `json:"name,omitempty"`

	// time_unix_nano is the time the event occurred.
	TimeUnixNano string `json:"time_unix_nano,omitempty"`
}

V1SpanEvent Event is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs.

swagger:model v1SpanEvent

func (*V1SpanEvent) ContextValidate

func (m *V1SpanEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 span event based on the context it is used

func (*V1SpanEvent) MarshalBinary

func (m *V1SpanEvent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SpanEvent) UnmarshalBinary

func (m *V1SpanEvent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SpanEvent) Validate

func (m *V1SpanEvent) Validate(formats strfmt.Registry) error

Validate validates this v1 span event

type V1TracesData

type V1TracesData struct {

	// An array of ResourceSpans.
	// For data coming from a single resource this array will typically contain
	// one element. Intermediary nodes that receive data from multiple origins
	// typically batch the data before forwarding further and in that case this
	// array will contain multiple elements.
	ResourceSpans []*V1ResourceSpans `json:"resource_spans"`
}

V1TracesData TracesData represents the traces data that can be stored in a persistent storage, OR can be embedded by other protocols that transfer OTLP traces data but do not implement the OTLP protocol.

The main difference between this message and collector protocol is that in this message there will not be any "control" or "metadata" specific to OTLP protocol.

When new fields are added into this message, the OTLP request MUST be updated as well.

swagger:model v1TracesData

func (*V1TracesData) ContextValidate

func (m *V1TracesData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 traces data based on the context it is used

func (*V1TracesData) MarshalBinary

func (m *V1TracesData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1TracesData) UnmarshalBinary

func (m *V1TracesData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1TracesData) Validate

func (m *V1TracesData) Validate(formats strfmt.Registry) error

Validate validates this v1 traces data

Source Files

Jump to

Keyboard shortcuts

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