class CreateLogMetricRequest extends Message

The parameters to CreateLogMetric.

Protobuf type Google\Logging\V2\CreateLogMetricRequest

Methods

__construct()

No description

string
getParent()

The resource name of the project in which to create the metric: "projects/[PROJECT_ID]" The new metric must be provided in the request.

setParent(string $var)

The resource name of the project in which to create the metric: "projects/[PROJECT_ID]" The new metric must be provided in the request.

getMetric()

The new logs-based metric, which must not have an identifier that already exists.

setMetric(LogMetric $var)

The new logs-based metric, which must not have an identifier that already exists.

Details

at line 34
__construct()

at line 47
string getParent()

The resource name of the project in which to create the metric: "projects/[PROJECT_ID]" The new metric must be provided in the request.

Generated from protobuf field string parent = 1;

Return Value

string

at line 60
setParent(string $var)

The resource name of the project in which to create the metric: "projects/[PROJECT_ID]" The new metric must be provided in the request.

Generated from protobuf field string parent = 1;

Parameters

string $var

at line 73
LogMetric getMetric()

The new logs-based metric, which must not have an identifier that already exists.

Generated from protobuf field .google.logging.v2.LogMetric metric = 2;

Return Value

LogMetric

at line 85
setMetric(LogMetric $var)

The new logs-based metric, which must not have an identifier that already exists.

Generated from protobuf field .google.logging.v2.LogMetric metric = 2;

Parameters

LogMetric $var