Page MenuHomePhabricator

Initial CloudWatch metric reporting support
ClosedPublic

Authored by amckinley on Apr 12 2018, 11:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 2:18 PM
Unknown Object (File)
Sun, Nov 24, 7:49 AM
Unknown Object (File)
Nov 10 2024, 6:55 AM
Unknown Object (File)
Oct 29 2024, 9:11 PM
Unknown Object (File)
Oct 17 2024, 3:42 AM
Unknown Object (File)
Oct 16 2024, 6:58 AM
Unknown Object (File)
Oct 2 2024, 2:52 AM
Unknown Object (File)
Oct 1 2024, 5:05 AM
Subscribers

Details

Summary

Ref T12857. Ref T13076. Initial infrastrucutre for creating and submitting CloudWatch metrics to AWS.

Test Plan

Submitted some metrics, saw them show up.

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20137
Build 27319: Run Core Tests
Build 27318: arc lint + arc unit

Event Timeline

wrong concatenation operator

epriestley added inline comments.
src/future/aws/PhutilCloudWatchMetric.php
46

I think this construction means that adding the same dimension with different values will silently do nothing the second time, which is maybe a little weird:

$metric->addDimension('a', 1);
$metric->addDimension('a', 2); // Does nothing.

Consider:

$this->dimensions[$name] = $value;

...to make a second call override, or an array_key_exists() test plus throw ... to make a second call an error.

This revision is now accepted and ready to land.Apr 13 2018, 11:53 AM
This revision was automatically updated to reflect the committed changes.