PHP Class ThreeScaleAuthorizeResponseUsageReport

One object of this class always corresponds to one usage limit defined on the plan.
Mostra file Open project: 3scale/3scale_ws_api_for_php

Public Methods

Method Description
getCurrentValue ( ) : integer The value the application alredy spent in the current period of the usage limit.
getMaxValue ( ) : integer Maximum value allowed by the usage limit for the current period.
getMetric ( ) Name of the metric the usage limit is defined for.
getPeriod ( ) The period of the usage limit.
getPeriodEnd ( ) : integer End of the current period of the usage limit, as unix timestamp.
getPeriodStart ( ) : integer Start of the current period of the usage limit, as unix timestamp.
isExceeded ( ) Is the usage limit corresponding to this report exceeded?
setCurrentValue ( $value )
setMaxValue ( $value )
setMetric ( $metric )
setPeriod ( $period )
setPeriodInterval ( $start, $end )

Method Details

getCurrentValue() public method

The value the application alredy spent in the current period of the usage limit.
public getCurrentValue ( ) : integer
return integer

getMaxValue() public method

Maximum value allowed by the usage limit for the current period.
public getMaxValue ( ) : integer
return integer

getMetric() public method

Name of the metric the usage limit is defined for.
public getMetric ( )

getPeriod() public method

The period of the usage limit.
public getPeriod ( )

getPeriodEnd() public method

End of the current period of the usage limit, as unix timestamp.
public getPeriodEnd ( ) : integer
return integer (unit timestamp)

getPeriodStart() public method

Start of the current period of the usage limit, as unix timestamp.
public getPeriodStart ( ) : integer
return integer (unit timestamp)

isExceeded() public method

Is the usage limit corresponding to this report exceeded?
public isExceeded ( )

setCurrentValue() public method

public setCurrentValue ( $value )

setMaxValue() public method

public setMaxValue ( $value )

setMetric() public method

public setMetric ( $metric )

setPeriod() public method

public setPeriod ( $period )

setPeriodInterval() public method

public setPeriodInterval ( $start, $end )