system_service.proto 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. syntax = "proto2";
  2. option go_package = "system";
  3. package appengine;
  4. message SystemServiceError {
  5. enum ErrorCode {
  6. OK = 0;
  7. INTERNAL_ERROR = 1;
  8. BACKEND_REQUIRED = 2;
  9. LIMIT_REACHED = 3;
  10. }
  11. }
  12. message SystemStat {
  13. // Instaneous value of this stat.
  14. optional double current = 1;
  15. // Average over time, if this stat has an instaneous value.
  16. optional double average1m = 3;
  17. optional double average10m = 4;
  18. // Total value, if the stat accumulates over time.
  19. optional double total = 2;
  20. // Rate over time, if this stat accumulates.
  21. optional double rate1m = 5;
  22. optional double rate10m = 6;
  23. }
  24. message GetSystemStatsRequest {
  25. }
  26. message GetSystemStatsResponse {
  27. // CPU used by this instance, in mcycles.
  28. optional SystemStat cpu = 1;
  29. // Physical memory (RAM) used by this instance, in megabytes.
  30. optional SystemStat memory = 2;
  31. }
  32. message StartBackgroundRequestRequest {
  33. }
  34. message StartBackgroundRequestResponse {
  35. // Every /_ah/background request will have an X-AppEngine-BackgroundRequest
  36. // header, whose value will be equal to this parameter, the request_id.
  37. optional string request_id = 1;
  38. }