public sealed class CreateLogMetricRequest : IMessage<CreateLogMetricRequest>, IEquatable<CreateLogMetricRequest>, IDeepCloneable<CreateLogMetricRequest>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Logging v2 API class CreateLogMetricRequest.
The parameters to CreateLogMetric.
Implements
IMessageCreateLogMetricRequest, IEquatableCreateLogMetricRequest, IDeepCloneableCreateLogMetricRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Logging.V2Assembly
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 |
|