Loupe - Log - Monitor - Resolve
Loupe.Agent.AspNetCore.Metrics Namespace / ActionMetricBase Class / HttpMethod Property

In This Topic
    HttpMethod Property
    In This Topic
    Gets/Sets the HttpMethod (GET, POST, PUT, DELETE, etc) used for this action.
    Syntax
    'Declaration
     
    
    <NullableAttribute(1)>
    <EventMetricValueAttribute("httpMethod", 
       SummaryFunction.Count, 
       "", 
       Caption="Http Method", 
       Description="The HTTP Method (GET, POST, PUT, DELETE, etc) used for this action")>
    Public ReadOnly Property HttpMethod As String
    [Nullable(1)]
    [EventMetricValue("httpMethod", 
       SummaryFunction.Count, 
       "", 
       Caption="Http Method", 
       Description="The HTTP Method (GET, POST, PUT, DELETE, etc) used for this action")]
    public string HttpMethod {get;}
    Remarks
    In MVC, some actions (typically an EDIT) have both definition for both GET and POST. This value helps differentiate between those two calls
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also