addRule('resourceId', [ 'type' => self::TYPE_STRING, 'description' => 'Resource ID.', 'default' => '', 'example' => '5e5ea5c16897e', ]) ->addRule('name', [ 'type' => self::TYPE_STRING, 'description' => 'Resource name.', 'default' => '', 'example' => 'Documents', ]) ->addRule('value', [ 'type' => self::TYPE_INTEGER, 'description' => 'The value of this metric at the timestamp.', 'default' => 0, 'example' => 1, ]); } /** * Get Name * * @return string */ public function getName(): string { return 'Metric Breakdown'; } /** * Get Collection * * @return string */ public function getType(): string { return Response::MODEL_METRIC_BREAKDOWN; } }