Stackdriver Logging V2 Client - Class GetLogMetricRequest (2.0.0-RC1)Stay organized with collectionsSave and categorize content based on your preferences.
Reference documentation and code samples for the Stackdriver Logging V2 Client class GetLogMetricRequest.
The parameters to GetLogMetric.
Generated from protobuf messagegoogle.logging.v2.GetLogMetricRequest
Namespace
Google \ Cloud \ Logging \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ metric_name
string
Required. The resource name of the desired metric: "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
getMetricName
Required. The resource name of the desired metric:
"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
Returns
Type
Description
string
setMetricName
Required. The resource name of the desired metric:
"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
metricName
string
Required. The resource name of the desired metric:
"projects/[PROJECT_ID]/metrics/[METRIC_ID]"
Please seeMetricsServiceV2Client::logMetricName()for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-18 UTC."],[],[]]