You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

158 lines
6.7 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/monitoring/v3/group.proto
  3. package monitoring // import "google.golang.org/genproto/googleapis/monitoring/v3"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ = proto.Marshal
  9. var _ = fmt.Errorf
  10. var _ = math.Inf
  11. // This is a compile-time assertion to ensure that this generated file
  12. // is compatible with the proto package it is being compiled against.
  13. // A compilation error at this line likely means your copy of the
  14. // proto package needs to be updated.
  15. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  16. // The description of a dynamic collection of monitored resources. Each group
  17. // has a filter that is matched against monitored resources and their associated
  18. // metadata. If a group's filter matches an available monitored resource, then
  19. // that resource is a member of that group. Groups can contain any number of
  20. // monitored resources, and each monitored resource can be a member of any
  21. // number of groups.
  22. //
  23. // Groups can be nested in parent-child hierarchies. The `parentName` field
  24. // identifies an optional parent for each group. If a group has a parent, then
  25. // the only monitored resources available to be matched by the group's filter
  26. // are the resources contained in the parent group. In other words, a group
  27. // contains the monitored resources that match its filter and the filters of all
  28. // the group's ancestors. A group without a parent can contain any monitored
  29. // resource.
  30. //
  31. // For example, consider an infrastructure running a set of instances with two
  32. // user-defined tags: `"environment"` and `"role"`. A parent group has a filter,
  33. // `environment="production"`. A child of that parent group has a filter,
  34. // `role="transcoder"`. The parent group contains all instances in the
  35. // production environment, regardless of their roles. The child group contains
  36. // instances that have the transcoder role *and* are in the production
  37. // environment.
  38. //
  39. // The monitored resources contained in a group can change at any moment,
  40. // depending on what resources exist and what filters are associated with the
  41. // group and its ancestors.
  42. type Group struct {
  43. // Output only. The name of this group. The format is
  44. // `"projects/{project_id_or_number}/groups/{group_id}"`.
  45. // When creating a group, this field is ignored and a new name is created
  46. // consisting of the project specified in the call to `CreateGroup`
  47. // and a unique `{group_id}` that is generated automatically.
  48. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  49. // A user-assigned name for this group, used only for display purposes.
  50. DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
  51. // The name of the group's parent, if it has one.
  52. // The format is `"projects/{project_id_or_number}/groups/{group_id}"`.
  53. // For groups with no parent, `parentName` is the empty string, `""`.
  54. ParentName string `protobuf:"bytes,3,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"`
  55. // The filter used to determine which monitored resources belong to this
  56. // group.
  57. Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
  58. // If true, the members of this group are considered to be a cluster.
  59. // The system can perform additional analysis on groups that are clusters.
  60. IsCluster bool `protobuf:"varint,6,opt,name=is_cluster,json=isCluster,proto3" json:"is_cluster,omitempty"`
  61. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  62. XXX_unrecognized []byte `json:"-"`
  63. XXX_sizecache int32 `json:"-"`
  64. }
  65. func (m *Group) Reset() { *m = Group{} }
  66. func (m *Group) String() string { return proto.CompactTextString(m) }
  67. func (*Group) ProtoMessage() {}
  68. func (*Group) Descriptor() ([]byte, []int) {
  69. return fileDescriptor_group_700c5154781dcc4e, []int{0}
  70. }
  71. func (m *Group) XXX_Unmarshal(b []byte) error {
  72. return xxx_messageInfo_Group.Unmarshal(m, b)
  73. }
  74. func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  75. return xxx_messageInfo_Group.Marshal(b, m, deterministic)
  76. }
  77. func (dst *Group) XXX_Merge(src proto.Message) {
  78. xxx_messageInfo_Group.Merge(dst, src)
  79. }
  80. func (m *Group) XXX_Size() int {
  81. return xxx_messageInfo_Group.Size(m)
  82. }
  83. func (m *Group) XXX_DiscardUnknown() {
  84. xxx_messageInfo_Group.DiscardUnknown(m)
  85. }
  86. var xxx_messageInfo_Group proto.InternalMessageInfo
  87. func (m *Group) GetName() string {
  88. if m != nil {
  89. return m.Name
  90. }
  91. return ""
  92. }
  93. func (m *Group) GetDisplayName() string {
  94. if m != nil {
  95. return m.DisplayName
  96. }
  97. return ""
  98. }
  99. func (m *Group) GetParentName() string {
  100. if m != nil {
  101. return m.ParentName
  102. }
  103. return ""
  104. }
  105. func (m *Group) GetFilter() string {
  106. if m != nil {
  107. return m.Filter
  108. }
  109. return ""
  110. }
  111. func (m *Group) GetIsCluster() bool {
  112. if m != nil {
  113. return m.IsCluster
  114. }
  115. return false
  116. }
  117. func init() {
  118. proto.RegisterType((*Group)(nil), "google.monitoring.v3.Group")
  119. }
  120. func init() {
  121. proto.RegisterFile("google/monitoring/v3/group.proto", fileDescriptor_group_700c5154781dcc4e)
  122. }
  123. var fileDescriptor_group_700c5154781dcc4e = []byte{
  124. // 261 bytes of a gzipped FileDescriptorProto
  125. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x4a, 0x2b, 0x31,
  126. 0x14, 0x87, 0x49, 0xef, 0xed, 0x60, 0x4f, 0x5d, 0x0d, 0x22, 0x83, 0x20, 0x8e, 0xae, 0xba, 0xca,
  127. 0x2c, 0xb2, 0x14, 0x5c, 0xb4, 0x8b, 0xae, 0x94, 0xd2, 0x45, 0x17, 0x32, 0x50, 0x62, 0x1b, 0x43,
  128. 0x20, 0x93, 0x13, 0x92, 0x99, 0x82, 0x2f, 0xe2, 0x03, 0xb8, 0xf4, 0x51, 0x7c, 0x2a, 0x99, 0x93,
  129. 0x91, 0x41, 0x70, 0x97, 0xf3, 0xfb, 0x3e, 0x72, 0xfe, 0x40, 0xa9, 0x11, 0xb5, 0x55, 0x55, 0x83,
  130. 0xce, 0xb4, 0x18, 0x8c, 0xd3, 0xd5, 0x49, 0x54, 0x3a, 0x60, 0xe7, 0xb9, 0x0f, 0xd8, 0x62, 0x7e,
  131. 0x91, 0x0c, 0x3e, 0x1a, 0xfc, 0x24, 0xee, 0xde, 0x19, 0x4c, 0xd7, 0xbd, 0x95, 0xe7, 0xf0, 0xdf,
  132. 0xc9, 0x46, 0x15, 0xac, 0x64, 0x8b, 0xd9, 0x96, 0xde, 0xf9, 0x2d, 0x9c, 0x1f, 0x4d, 0xf4, 0x56,
  133. 0xbe, 0xed, 0x89, 0x4d, 0x88, 0xcd, 0x87, 0xec, 0xa9, 0x57, 0x6e, 0x60, 0xee, 0x65, 0x50, 0xae,
  134. 0x4d, 0xc6, 0x3f, 0x32, 0x20, 0x45, 0x24, 0x5c, 0x42, 0xf6, 0x6a, 0x6c, 0xab, 0x42, 0x31, 0x25,
  135. 0x36, 0x54, 0xf9, 0x35, 0x80, 0x89, 0xfb, 0x83, 0xed, 0x62, 0xcf, 0xb2, 0x92, 0x2d, 0xce, 0xb6,
  136. 0x33, 0x13, 0x57, 0x29, 0x58, 0x7e, 0x30, 0x28, 0x0e, 0xd8, 0xf0, 0xbf, 0xa6, 0x5e, 0x02, 0x8d,
  137. 0xbc, 0xe9, 0xf7, 0xda, 0xb0, 0xe7, 0x87, 0xc1, 0xd1, 0x68, 0xa5, 0xd3, 0x1c, 0x83, 0xae, 0xb4,
  138. 0x72, 0xb4, 0x75, 0x95, 0x90, 0xf4, 0x26, 0xfe, 0x3e, 0xcd, 0xfd, 0x58, 0x7d, 0x4e, 0xae, 0xd6,
  139. 0xe9, 0x83, 0x95, 0xc5, 0xee, 0xc8, 0x1f, 0xc7, 0x56, 0x3b, 0xf1, 0xf5, 0x03, 0x6b, 0x82, 0xf5,
  140. 0x08, 0xeb, 0x9d, 0x78, 0xc9, 0xa8, 0x89, 0xf8, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x95, 0xd1, 0xa1,
  141. 0x34, 0x7e, 0x01, 0x00, 0x00,
  142. }