models

package
v1.1.105 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIDetails

type APIDetails struct {
	ID                 string `json:"id"`
	Name               string `json:"name"`
	Revision           int    `json:"revision,omitempty"`
	TeamID             string `json:"teamId,omitempty"`
	APIServiceInstance string `json:"apiServiceInstance,omitempty"`
	Stage              string `json:"-"`
	Version            string `json:"-"`
}

APIDetails - Represents the api used in the transaction summary provider details event

func (APIDetails) GetLogFields added in v1.1.80

func (a APIDetails) GetLogFields(fields logrus.Fields) logrus.Fields

type APIResourceReference added in v1.1.105

type APIResourceReference struct {
	ResourceReference
	Name         string `json:"name,omitempty"`
	APIServiceID string `json:"apiServiceId,omitempty"`
}

type AppDetails

type AppDetails struct {
	ID            string `json:"id"`
	Name          string `json:"name"`
	ConsumerOrgID string `json:"consumerOrgId,omitempty"`
}

AppDetails - struct for app details to report

func (AppDetails) GetLogFields added in v1.1.80

func (a AppDetails) GetLogFields(fields logrus.Fields) logrus.Fields

type ApplicationResourceReference added in v1.1.105

type ApplicationResourceReference struct {
	ResourceReference
	ConsumerOrgID string `json:"consumerOrgId,omitempty"`
}

type AssetResource

type AssetResource struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

AssetResource - Represents the asset resource used in transaction summary provider details event

func (AssetResource) GetLogFields added in v1.1.80

func (a AssetResource) GetLogFields(fields logrus.Fields) logrus.Fields

type ConsumerDetails

type ConsumerDetails struct {
	Application      *AppDetails   `json:"application,omitempty"` // marketplace application
	PublishedProduct *Product      `json:"publishedProduct,omitempty"`
	Subscription     *Subscription `json:"subscription,omitempty"`
}

ConsumerDetails - Represents the consumer details in the transaction summary event

type CustomMetricDetail added in v1.1.105

type CustomMetricDetail struct {
	APIDetails  APIDetails
	AppDetails  AppDetails
	UnitDetails Unit
	Count       int64
	Observation ObservationDetails
}

type ObservationDetails added in v1.1.105

type ObservationDetails struct {
	Start int64 `json:"start,omitempty"`
	End   int64 `json:"end,omitempty"`
}

ObservationDetails - Holds start and end timestamp for interval

type Product

type Product struct {
	ID          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	VersionName string `json:"versionName,omitempty"`
	VersionID   string `json:"versionId,omitempty"`
}

Product - Represents the product used in the transaction summary provider details event

func (Product) GetLogFields added in v1.1.80

func (a Product) GetLogFields(fields logrus.Fields) logrus.Fields

type ProductPlan

type ProductPlan struct {
	ID string `json:"id,omitempty"`
}

ProductPlan - Represents the plan used in the transaction summary provider details event

func (ProductPlan) GetLogFields added in v1.1.80

func (a ProductPlan) GetLogFields(fields logrus.Fields) logrus.Fields

type ProductResourceReference added in v1.1.105

type ProductResourceReference struct {
	ResourceReference
	VersionID string `json:"versionId,omitempty"`
}

func (ProductResourceReference) GetLogFields added in v1.1.105

func (a ProductResourceReference) GetLogFields(fields logrus.Fields, idFieldName string) logrus.Fields

type Quota

type Quota struct {
	ID string `json:"id,omitempty"`
}

Quota - Represents the quota used in the transaction summary provider details event

func (Quota) GetLogFields added in v1.1.80

func (a Quota) GetLogFields(fields logrus.Fields) logrus.Fields

type ResourceReference added in v1.1.105

type ResourceReference struct {
	ID string `json:"id,omitempty"`
}

func (ResourceReference) GetLogFields added in v1.1.105

func (a ResourceReference) GetLogFields(fields logrus.Fields, idFieldName string) logrus.Fields

type Subscription

type Subscription struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

Subscription - Represents the subscription used in transaction summary consumer details

func (Subscription) GetLogFields added in v1.1.80

func (a Subscription) GetLogFields(fields logrus.Fields) logrus.Fields

type Unit added in v1.1.105

type Unit struct {
	Name string `json:"name"`
}

Unit - struct for custom unit details to report

func (Unit) GetLogFields added in v1.1.105

func (a Unit) GetLogFields(fields logrus.Fields) logrus.Fields

Jump to

Keyboard shortcuts

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