Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92838694
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
Sun, Nov 24, 03:02
Size
884 B
Mime Type
text/x-php
Expires
Tue, Nov 26, 03:02 (2 d)
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