Google Cloud Logging v2 API - Class CreateLogMetricRequest (4.1.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
NameDescription
otherCreateLogMetricRequest

Properties

Metric

public LogMetric Metric { get; set; }

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

Property Value
TypeDescription
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
TypeDescription
string

ParentAsProjectName

public ProjectName ParentAsProjectName { get; set; }

ProjectName-typed view over the Parent resource name property.

Property Value
TypeDescription
ProjectName