instance.proto 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // Copyright 2016 Google Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.appengine.v1;
  16. import "google/api/annotations.proto";
  17. import "google/protobuf/timestamp.proto";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "InstanceProto";
  20. option java_package = "com.google.appengine.v1";
  21. // An Instance resource is the computing unit that App Engine uses to
  22. // automatically scale an application.
  23. message Instance {
  24. // Availability of the instance.
  25. enum Availability {
  26. UNSPECIFIED = 0;
  27. RESIDENT = 1;
  28. DYNAMIC = 2;
  29. }
  30. // Full path to the Instance resource in the API.
  31. // Example: `apps/myapp/services/default/versions/v1/instances/instance-1`.
  32. //
  33. // @OutputOnly
  34. string name = 1;
  35. // Relative name of the instance within the version.
  36. // Example: `instance-1`.
  37. //
  38. // @OutputOnly
  39. string id = 2;
  40. // App Engine release this instance is running on.
  41. //
  42. // @OutputOnly
  43. string app_engine_release = 3;
  44. // Availability of the instance.
  45. //
  46. // @OutputOnly
  47. Availability availability = 4;
  48. // Name of the virtual machine where this instance lives. Only applicable
  49. // for instances in App Engine flexible environment.
  50. //
  51. // @OutputOnly
  52. string vm_name = 5;
  53. // Zone where the virtual machine is located. Only applicable for instances
  54. // in App Engine flexible environment.
  55. //
  56. // @OutputOnly
  57. string vm_zone_name = 6;
  58. // Virtual machine ID of this instance. Only applicable for instances in
  59. // App Engine flexible environment.
  60. //
  61. // @OutputOnly
  62. string vm_id = 7;
  63. // Time that this instance was started.
  64. //
  65. // @OutputOnly
  66. google.protobuf.Timestamp start_time = 8;
  67. // Number of requests since this instance was started.
  68. //
  69. // @OutputOnly
  70. int32 requests = 9;
  71. // Number of errors since this instance was started.
  72. //
  73. // @OutputOnly
  74. int32 errors = 10;
  75. // Average queries per second (QPS) over the last minute.
  76. //
  77. // @OutputOnly
  78. float qps = 11;
  79. // Average latency (ms) over the last minute.
  80. //
  81. // @OutputOnly
  82. int32 average_latency = 12;
  83. // Total memory in use (bytes).
  84. //
  85. // @OutputOnly
  86. int64 memory_usage = 13;
  87. // Status of the virtual machine where this instance lives. Only applicable
  88. // for instances in App Engine flexible environment.
  89. //
  90. // @OutputOnly
  91. string vm_status = 14;
  92. // Whether this instance is in debug mode. Only applicable for instances in
  93. // App Engine flexible environment.
  94. //
  95. // @OutputOnly
  96. bool vm_debug_enabled = 15;
  97. }