Name | Type | Description | Notes |
---|---|---|---|
Active | Pointer to int64 | Number of packages with at least 1 download | [optional] |
Bandwidth | CommonBandwidthMetrics | ||
Downloads | CommonDownloadsMetrics | ||
Inactive | Pointer to int64 | Packages with zero downloads | [optional] |
Total | Pointer to int64 | Total number of packages in repo | [optional] |
func NewCommonMetrics(bandwidth CommonBandwidthMetrics, downloads CommonDownloadsMetrics, ) *CommonMetrics
NewCommonMetrics instantiates a new CommonMetrics object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCommonMetricsWithDefaults() *CommonMetrics
NewCommonMetricsWithDefaults instantiates a new CommonMetrics object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *CommonMetrics) GetActive() int64
GetActive returns the Active field if non-nil, zero value otherwise.
func (o *CommonMetrics) GetActiveOk() (*int64, bool)
GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CommonMetrics) SetActive(v int64)
SetActive sets Active field to given value.
func (o *CommonMetrics) HasActive() bool
HasActive returns a boolean if a field has been set.
func (o *CommonMetrics) GetBandwidth() CommonBandwidthMetrics
GetBandwidth returns the Bandwidth field if non-nil, zero value otherwise.
func (o *CommonMetrics) GetBandwidthOk() (*CommonBandwidthMetrics, bool)
GetBandwidthOk returns a tuple with the Bandwidth field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CommonMetrics) SetBandwidth(v CommonBandwidthMetrics)
SetBandwidth sets Bandwidth field to given value.
func (o *CommonMetrics) GetDownloads() CommonDownloadsMetrics
GetDownloads returns the Downloads field if non-nil, zero value otherwise.
func (o *CommonMetrics) GetDownloadsOk() (*CommonDownloadsMetrics, bool)
GetDownloadsOk returns a tuple with the Downloads field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CommonMetrics) SetDownloads(v CommonDownloadsMetrics)
SetDownloads sets Downloads field to given value.
func (o *CommonMetrics) GetInactive() int64
GetInactive returns the Inactive field if non-nil, zero value otherwise.
func (o *CommonMetrics) GetInactiveOk() (*int64, bool)
GetInactiveOk returns a tuple with the Inactive field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CommonMetrics) SetInactive(v int64)
SetInactive sets Inactive field to given value.
func (o *CommonMetrics) HasInactive() bool
HasInactive returns a boolean if a field has been set.
func (o *CommonMetrics) GetTotal() int64
GetTotal returns the Total field if non-nil, zero value otherwise.
func (o *CommonMetrics) GetTotalOk() (*int64, bool)
GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CommonMetrics) SetTotal(v int64)
SetTotal sets Total field to given value.
func (o *CommonMetrics) HasTotal() bool
HasTotal returns a boolean if a field has been set.