Documentation ¶
Index ¶
- type APIDetails
- type APIResourceReference
- type AppDetails
- type ApplicationResourceReference
- type AssetResource
- type ConsumerDetails
- type CustomMetricDetail
- type ObservationDetails
- type Product
- type ProductPlan
- type ProductResourceReference
- type Quota
- type ResourceReference
- type Subscription
- type Unit
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 ¶
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
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
type Quota ¶
type Quota struct {
ID string `json:"id,omitempty"`
}
Quota - Represents the quota used in the transaction summary provider details event
type ResourceReference ¶ added in v1.1.105
type ResourceReference struct {
ID string `json:"id,omitempty"`
}
func (ResourceReference) GetLogFields ¶ added in v1.1.105
type Subscription ¶
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