:doc:`ServiceResource <index>` / Sub-Resource / Metric

******
Metric
******



.. py:method:: CloudWatch.ServiceResource.Metric(namespace,name)

  Creates a Metric resource.::

    metric = cloudwatch.Metric('namespace','name')

  :type namespace: string
  :param namespace: The Metric's namespace identifier. This **must** be set.
  :type name: string
  :param name: The Metric's name identifier. This **must** be set.
  
  :rtype: :py:class:`CloudWatch.Metric`
  :returns: A Metric resource
  