Class CreateLogMetricRequest (3.3.0)

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

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