Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92578012
PhutilCloudWatchMetric.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Nov 21, 15:42
Size
884 B
Mime Type
text/x-php
Expires
Sat, Nov 23, 15:42 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
22463463
Attached To
rPHU libphutil
PhutilCloudWatchMetric.php
View Options
<?php
final
class
PhutilCloudWatchMetric
extends
Phobject
{
private
$name
;
private
$value
;
private
$unit
=
'None'
;
private
$dimensions
=
array
();
public
function
setName
(
$name
)
{
$this
->
name
=
$name
;
return
$this
;
}
public
function
getName
()
{
return
$this
->
name
;
}
public
function
setValue
(
$value
)
{
$this
->
value
=
$value
;
return
$this
;
}
public
function
getValue
()
{
return
$this
->
value
;
}
public
function
setUnit
(
$unit
)
{
$this
->
unit
=
$unit
;
return
$this
;
}
public
function
getUnit
()
{
return
$this
->
unit
;
}
public
function
setDimensions
(
array
$dimensions
)
{
$this
->
dimensions
=
$dimensions
;
return
$this
;
}
public
function
getDimensions
()
{
return
$this
->
dimensions
;
}
public
function
addDimension
(
$name
,
$value
)
{
$this
->
dimensions
[
$name
]
=
$value
;
return
$this
;
}
}
Event Timeline
Log In to Comment