Google Cloud Logging v2 API - Class CreateLogMetricRequest (4.4.0)

public sealed class CreateLogMetricRequest : IMessage<CreateLogMetricRequest>, IEquatable<CreateLogMetricRequest>, IDeepCloneable<CreateLogMetricRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Logging v2 API class CreateLogMetricRequest.

The parameters to CreateLogMetric.

Inheritance

object > CreateLogMetricRequest

Namespace

Google.Cloud.Logging.V2

Assembly

Google.Cloud.Logging.V2.dll

Constructors

CreateLogMetricRequest()

public CreateLogMetricRequest()

CreateLogMetricRequest(CreateLogMetricRequest)

public CreateLogMetricRequest(CreateLogMetricRequest other)
Parameter
Name Description
other CreateLogMetricRequest

Properties

Metric

public LogMetric Metric { get; set; }

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

Property Value
Type Description
LogMetric

Parent

public string Parent { get; set; }

Required. The resource name of the project in which to create the metric:

"projects/[PROJECT_ID]"

The new metric must be provided in the request.

Property Value
Type Description
string

ParentAsProjectName

public ProjectName ParentAsProjectName { get; set; }

ProjectName-typed view over the Parent resource name property.

Property Value
Type Description
ProjectName