Skip to content

HaoQianCheng/ServiceReport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ServiceReport

image-20230301231817726

Introduce

ServiceReport is a monitoring plug-in. NET core services. Its main function is monitoring, analysis and tracking. It is well suited for business analysis.

The attempt page uses the Ant Design for Blazor framework.

Document

  • Step 1: Introduce the nuget package

    NuGet\Install-Package ServiceReport -Version 1.0.0

    image-20230302202518443

    //new
    builder.Services.AddServiceReportModule().AddServiceReportSendHttpModule();
    //new
    app.UseHttpReports();
  • Step 2:Modify the appsetting.json file of the project

      "ServiceReportOptions": {
        "ServiceReportSendOptions": {
          "PushAddress": "https://localhost:5003/",
          "PushSecond": 1,
          "PushCount": 1000
        },
        "Server": "http://localhost:5169/",
        "ServiceName": "ApiServer",
        "RecordRequest": true,
        "RecordResponse": true,
        "RecordCookie": true,
        "RecordHeader": true,
        "RequestFilter": [
        ]
      }

    Parameter Specification:

    ​ ServiceReportSendOptions-

    ​ PushAddress(Service address for sending data)

    ​ PushSecond(Data sent per second)

    ​ PushCount(Amount of data sent at a time)

    ​ Server(Service address)

    ​ ServiceName(Service name)

    ​ RecordRequest(Whether to record request)

    ​ RecordResponse(Whether to record response)

    ​ RecordCookie(Whether to record cookie)

    ​ RecordHeader(Whether to record http header)

    ​ RecordHeader(Filter path)

  • Step 3: 下载 tem/ServiceReport.Ui.Web 模板

    image-20230302212110974

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published