Class ProjectsResource.MetricsResource.UpdateRequest
Creates or updates a logs-based metric.
Inheritance
ProjectsResource.MetricsResource.UpdateRequest
Inherited Members
Namespace: Google.Apis.Logging.v2
Assembly: Google.Apis.Logging.v2.dll
Syntax
public class ProjectsResource.MetricsResource.UpdateRequest : LoggingBaseServiceRequest<LogMetric>, IClientServiceRequest<LogMetric>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, LogMetric, string)
Constructs a new Update request.
Declaration
public UpdateRequest(IClientService service, LogMetric body, string metricName)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
LogMetric | body | |
string | metricName |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MetricName
Required. The resource name of the metric to update: "projects/[PROJECT_ID]/metrics/[METRIC_ID]" The updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.
Declaration
[RequestParameter("metricName", RequestParameterType.Path)]
public virtual string MetricName { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()