POST api/servermetrics/save

Request Information

URI Parameters

None.

Body Parameters

ServerMetricsDto
NameDescriptionTypeAdditional information
ServerName

string

None.

ServerDomain

string

None.

ServerType

string

None.

ServerId

string

None.

ServerIP

string

None.

ServerPublicIp

string

None.

CpuUsage

decimal number

None.

RamUsage

decimal number

None.

DiskUsage

decimal number

None.

NetworkIn

decimal number

None.

NetworkOut

decimal number

None.

Timestamp

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ServerName": "sample string 1",
  "ServerDomain": "sample string 2",
  "ServerType": "sample string 3",
  "ServerId": "sample string 4",
  "ServerIP": "sample string 5",
  "ServerPublicIp": "sample string 6",
  "CpuUsage": 7.1,
  "RamUsage": 8.1,
  "DiskUsage": 9.1,
  "NetworkIn": 10.1,
  "NetworkOut": 11.1,
  "Timestamp": "2026-04-07T10:08:23.5739524-04:00"
}

application/xml, text/xml

Sample:
<ServerMetricsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GSS_Server_Diagnosis_API.Models">
  <CpuUsage>7.1</CpuUsage>
  <DiskUsage>9.1</DiskUsage>
  <NetworkIn>10.1</NetworkIn>
  <NetworkOut>11.1</NetworkOut>
  <RamUsage>8.1</RamUsage>
  <ServerDomain>sample string 2</ServerDomain>
  <ServerIP>sample string 5</ServerIP>
  <ServerId>sample string 4</ServerId>
  <ServerName>sample string 1</ServerName>
  <ServerPublicIp>sample string 6</ServerPublicIp>
  <ServerType>sample string 3</ServerType>
  <Timestamp>2026-04-07T10:08:23.5739524-04:00</Timestamp>
</ServerMetricsDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.