1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/monitoring/v3/group.proto 3 4package monitoring 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 _ "google.golang.org/genproto/googleapis/api/annotations" 12) 13 14// Reference imports to suppress errors if they are not otherwise used. 15var _ = proto.Marshal 16var _ = fmt.Errorf 17var _ = math.Inf 18 19// This is a compile-time assertion to ensure that this generated file 20// is compatible with the proto package it is being compiled against. 21// A compilation error at this line likely means your copy of the 22// proto package needs to be updated. 23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25// The description of a dynamic collection of monitored resources. Each group 26// has a filter that is matched against monitored resources and their associated 27// metadata. If a group's filter matches an available monitored resource, then 28// that resource is a member of that group. Groups can contain any number of 29// monitored resources, and each monitored resource can be a member of any 30// number of groups. 31// 32// Groups can be nested in parent-child hierarchies. The `parentName` field 33// identifies an optional parent for each group. If a group has a parent, then 34// the only monitored resources available to be matched by the group's filter 35// are the resources contained in the parent group. In other words, a group 36// contains the monitored resources that match its filter and the filters of all 37// the group's ancestors. A group without a parent can contain any monitored 38// resource. 39// 40// For example, consider an infrastructure running a set of instances with two 41// user-defined tags: `"environment"` and `"role"`. A parent group has a filter, 42// `environment="production"`. A child of that parent group has a filter, 43// `role="transcoder"`. The parent group contains all instances in the 44// production environment, regardless of their roles. The child group contains 45// instances that have the transcoder role *and* are in the production 46// environment. 47// 48// The monitored resources contained in a group can change at any moment, 49// depending on what resources exist and what filters are associated with the 50// group and its ancestors. 51type Group struct { 52 // Output only. The name of this group. The format is 53 // `"projects/{project_id_or_number}/groups/{group_id}"`. 54 // When creating a group, this field is ignored and a new name is created 55 // consisting of the project specified in the call to `CreateGroup` 56 // and a unique `{group_id}` that is generated automatically. 57 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 58 // A user-assigned name for this group, used only for display purposes. 59 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` 60 // The name of the group's parent, if it has one. 61 // The format is `"projects/{project_id_or_number}/groups/{group_id}"`. 62 // For groups with no parent, `parentName` is the empty string, `""`. 63 ParentName string `protobuf:"bytes,3,opt,name=parent_name,json=parentName,proto3" json:"parent_name,omitempty"` 64 // The filter used to determine which monitored resources belong to this 65 // group. 66 Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"` 67 // If true, the members of this group are considered to be a cluster. 68 // The system can perform additional analysis on groups that are clusters. 69 IsCluster bool `protobuf:"varint,6,opt,name=is_cluster,json=isCluster,proto3" json:"is_cluster,omitempty"` 70 XXX_NoUnkeyedLiteral struct{} `json:"-"` 71 XXX_unrecognized []byte `json:"-"` 72 XXX_sizecache int32 `json:"-"` 73} 74 75func (m *Group) Reset() { *m = Group{} } 76func (m *Group) String() string { return proto.CompactTextString(m) } 77func (*Group) ProtoMessage() {} 78func (*Group) Descriptor() ([]byte, []int) { 79 return fileDescriptor_907e30c1f087271d, []int{0} 80} 81 82func (m *Group) XXX_Unmarshal(b []byte) error { 83 return xxx_messageInfo_Group.Unmarshal(m, b) 84} 85func (m *Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 86 return xxx_messageInfo_Group.Marshal(b, m, deterministic) 87} 88func (m *Group) XXX_Merge(src proto.Message) { 89 xxx_messageInfo_Group.Merge(m, src) 90} 91func (m *Group) XXX_Size() int { 92 return xxx_messageInfo_Group.Size(m) 93} 94func (m *Group) XXX_DiscardUnknown() { 95 xxx_messageInfo_Group.DiscardUnknown(m) 96} 97 98var xxx_messageInfo_Group proto.InternalMessageInfo 99 100func (m *Group) GetName() string { 101 if m != nil { 102 return m.Name 103 } 104 return "" 105} 106 107func (m *Group) GetDisplayName() string { 108 if m != nil { 109 return m.DisplayName 110 } 111 return "" 112} 113 114func (m *Group) GetParentName() string { 115 if m != nil { 116 return m.ParentName 117 } 118 return "" 119} 120 121func (m *Group) GetFilter() string { 122 if m != nil { 123 return m.Filter 124 } 125 return "" 126} 127 128func (m *Group) GetIsCluster() bool { 129 if m != nil { 130 return m.IsCluster 131 } 132 return false 133} 134 135func init() { 136 proto.RegisterType((*Group)(nil), "google.monitoring.v3.Group") 137} 138 139func init() { 140 proto.RegisterFile("google/monitoring/v3/group.proto", fileDescriptor_907e30c1f087271d) 141} 142 143var fileDescriptor_907e30c1f087271d = []byte{ 144 // 349 bytes of a gzipped FileDescriptorProto 145 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xcf, 0x4a, 0x2b, 0x31, 146 0x14, 0xc6, 0x49, 0xef, 0x6d, 0xb9, 0x4d, 0xef, 0x6a, 0xb8, 0x5c, 0x6a, 0x41, 0xda, 0xba, 0x2a, 147 0x0a, 0xc9, 0x62, 0x76, 0x0a, 0x82, 0xed, 0xa2, 0x2b, 0xa5, 0x74, 0xd1, 0x85, 0x14, 0x4a, 0x9c, 148 0xa6, 0x21, 0x92, 0xc9, 0x09, 0xc9, 0x4c, 0x41, 0x87, 0x3e, 0x86, 0x0b, 0xb7, 0x2e, 0x5d, 0xfa, 149 0x18, 0x3e, 0x8a, 0x4f, 0x21, 0x93, 0x8c, 0x4c, 0xa5, 0xae, 0xe6, 0x9c, 0xf3, 0xfd, 0x72, 0xfe, 150 0x7c, 0x83, 0x07, 0x02, 0x40, 0x28, 0x4e, 0x53, 0xd0, 0x32, 0x03, 0x2b, 0xb5, 0xa0, 0xdb, 0x98, 151 0x0a, 0x0b, 0xb9, 0x21, 0xc6, 0x42, 0x06, 0xd1, 0xbf, 0x40, 0x90, 0x9a, 0x20, 0xdb, 0xb8, 0x77, 152 0x54, 0xbd, 0x63, 0x46, 0x52, 0xcb, 0x1d, 0xe4, 0x36, 0xe1, 0xe1, 0xc1, 0xc9, 0x5b, 0x03, 0x37, 153 0xa7, 0x65, 0x83, 0x28, 0xc2, 0xbf, 0x35, 0x4b, 0x79, 0x17, 0x0d, 0xd0, 0xa8, 0x3d, 0xf7, 0x71, 154 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