Logging/src/Metric.php
public function update(array $metadata, array $options = [])
    {
        $options += $metadata;
        $options += $this->info($options);

        return $this->info = $this->connection->updateMetric($options + [
            'metricName' => $this->formattedName
        ]);
    }
public function update(array $metadata, array $options = [])
    {
        $options += $metadata;
        $options += $this->info($options);

        return $this->info = $this->connection->updateMetric($options + [
            'metricName' => $this->formattedName
        ]);
    }
public function update ( array $ metadata , array $ options = [ ] ) { $ options += $ metadata ; $ options += $ this -> info ( $ options ) ; return $ this -> info = $ this -> connection -> updateMetric ( $ options + [ 'metricName' => $ this -> formattedName ] ) ; }
Update the metric. Please note this will trigger a network request if
cached data is not available to perform the update with.

Example:
```
$metric->update([
'description' => 'A description for my metric.'
]);
```

@codingStandardsIgnoreStart
@see https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.metrics/update projects.metrics update API documentation.
@codingStandardsIgnoreEnd

@param array $metadata {
The data to update.

@type string $description A description of the metric.
@type string $filter An [advanced logs filter](https://cloud.google.com/logging/docs/view/advanced_filters).
}
@param array $options [optional] Configuration Options.
@return array
Update the metric . Please note this will trigger a network request if cached data is not available to perform the update with .