Billhighway Cloud API

<back to all web services

ServerInfoRq

The following routes are available for this service:
GET/devops/api/diagnostics/server
import 'package:servicestack/servicestack.dart';

class ServerInfo implements IConvertible
{
    int? NumOfProcessors;
    String? MachineName;
    String? Os;
    bool? Is64BitProcess;
    bool? Is64BitOperatingSystem;
    int? SystemPageSize;
    int? UptimeTicks;
    String? ClrVersion;
    int? MappedProcessMemory;

    ServerInfo({this.NumOfProcessors,this.MachineName,this.Os,this.Is64BitProcess,this.Is64BitOperatingSystem,this.SystemPageSize,this.UptimeTicks,this.ClrVersion,this.MappedProcessMemory});
    ServerInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        NumOfProcessors = json['NumOfProcessors'];
        MachineName = json['MachineName'];
        Os = json['Os'];
        Is64BitProcess = json['Is64BitProcess'];
        Is64BitOperatingSystem = json['Is64BitOperatingSystem'];
        SystemPageSize = json['SystemPageSize'];
        UptimeTicks = json['UptimeTicks'];
        ClrVersion = json['ClrVersion'];
        MappedProcessMemory = json['MappedProcessMemory'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'NumOfProcessors': NumOfProcessors,
        'MachineName': MachineName,
        'Os': Os,
        'Is64BitProcess': Is64BitProcess,
        'Is64BitOperatingSystem': Is64BitOperatingSystem,
        'SystemPageSize': SystemPageSize,
        'UptimeTicks': UptimeTicks,
        'ClrVersion': ClrVersion,
        'MappedProcessMemory': MappedProcessMemory
    };

    getTypeName() => "ServerInfo";
    TypeContext? context = _ctx;
}

class ServerInfoRs implements IConvertible
{
    ServerInfo? Server;

    ServerInfoRs({this.Server});
    ServerInfoRs.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Server = JsonConverters.fromJson(json['Server'],'ServerInfo',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Server': JsonConverters.toJson(Server,'ServerInfo',context!)
    };

    getTypeName() => "ServerInfoRs";
    TypeContext? context = _ctx;
}

class ServerInfoRq implements IConvertible
{
    ServerInfoRq();
    ServerInfoRq.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "ServerInfoRq";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
    'ServerInfo': TypeInfo(TypeOf.Class, create:() => ServerInfo()),
    'ServerInfoRs': TypeInfo(TypeOf.Class, create:() => ServerInfoRs()),
    'ServerInfoRq': TypeInfo(TypeOf.Class, create:() => ServerInfoRq()),
});

Dart ServerInfoRq DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /devops/api/diagnostics/server HTTP/1.1 
Host: devapi.billhighway.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Server":{"NumOfProcessors":0,"MachineName":"String","Os":"String","Is64BitProcess":false,"Is64BitOperatingSystem":false,"SystemPageSize":0,"UptimeTicks":0,"ClrVersion":"String","MappedProcessMemory":0}}