- 3.55.0 (latest)
- 3.54.0
- 3.53.0
- 3.52.0
- 3.50.0
- 3.49.0
- 3.48.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.38.0
- 3.37.0
- 3.36.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.25.0
- 3.24.0
- 3.23.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.6
- 3.3.6
- 3.2.10
public final class Group extends GeneratedMessageV3 implements GroupOrBuilder
The description of a dynamic collection of monitored resources. Each group
has a filter that is matched against monitored resources and their associated
metadata. If a group's filter matches an available monitored resource, then
that resource is a member of that group. Groups can contain any number of
monitored resources, and each monitored resource can be a member of any
number of groups.
Groups can be nested in parent-child hierarchies. The parentName
field
identifies an optional parent for each group. If a group has a parent, then
the only monitored resources available to be matched by the group's filter
are the resources contained in the parent group. In other words, a group
contains the monitored resources that match its filter and the filters of all
the group's ancestors. A group without a parent can contain any monitored
resource.
For example, consider an infrastructure running a set of instances with two
user-defined tags: "environment"
and "role"
. A parent group has a filter,
environment="production"
. A child of that parent group has a filter,
role="transcoder"
. The parent group contains all instances in the
production environment, regardless of their roles. The child group contains
instances that have the transcoder role and are in the production
environment.
The monitored resources contained in a group can change at any moment,
depending on what resources exist and what filters are associated with the
group and its ancestors.
Protobuf type google.monitoring.v3.Group
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GroupImplements
GroupOrBuilderStatic Fields
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Type | Description |
int |
FILTER_FIELD_NUMBER
public static final int FILTER_FIELD_NUMBER
Type | Description |
int |
IS_CLUSTER_FIELD_NUMBER
public static final int IS_CLUSTER_FIELD_NUMBER
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
PARENT_NAME_FIELD_NUMBER
public static final int PARENT_NAME_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Group getDefaultInstance()
Type | Description |
Group |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Group.Builder newBuilder()
Type | Description |
Group.Builder |
newBuilder(Group prototype)
public static Group.Builder newBuilder(Group prototype)
Name | Description |
prototype | Group |
Type | Description |
Group.Builder |
parseDelimitedFrom(InputStream input)
public static Group parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Group |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Group parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Group |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Group parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Group |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Group parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Group |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Group parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Group |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Group parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Group |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Group parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Group |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Group parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Group |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Group parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Group |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Group parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Group |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Group parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Group |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Group parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Group |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Group> parser()
Type | Description |
Parser<Group> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Group getDefaultInstanceForType()
Type | Description |
Group |
getDisplayName()
public String getDisplayName()
A user-assigned name for this group, used only for display purposes.
string display_name = 2;
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
A user-assigned name for this group, used only for display purposes.
string display_name = 2;
Type | Description |
ByteString | The bytes for displayName. |
getFilter()
public String getFilter()
The filter used to determine which monitored resources belong to this group.
string filter = 5;
Type | Description |
String | The filter. |
getFilterBytes()
public ByteString getFilterBytes()
The filter used to determine which monitored resources belong to this group.
string filter = 5;
Type | Description |
ByteString | The bytes for filter. |
getIsCluster()
public boolean getIsCluster()
If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters.
bool is_cluster = 6;
Type | Description |
boolean | The isCluster. |
getName()
public String getName()
Output only. The name of this group. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
When creating a group, this field is ignored and a new name is created
consisting of the project specified in the call to CreateGroup
and a unique [GROUP_ID]
that is generated automatically.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. The name of this group. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
When creating a group, this field is ignored and a new name is created
consisting of the project specified in the call to CreateGroup
and a unique [GROUP_ID]
that is generated automatically.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getParentName()
public String getParentName()
The name of the group's parent, if it has one. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
For groups with no parent, parent_name
is the empty string, ""
.
string parent_name = 3;
Type | Description |
String | The parentName. |
getParentNameBytes()
public ByteString getParentNameBytes()
The name of the group's parent, if it has one. The format is:
projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]
For groups with no parent, parent_name
is the empty string, ""
.
string parent_name = 3;
Type | Description |
ByteString | The bytes for parentName. |
getParserForType()
public Parser<Group> getParserForType()
Type | Description |
Parser<Group> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Group.Builder newBuilderForType()
Type | Description |
Group.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Group.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Group.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Group.Builder toBuilder()
Type | Description |
Group.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |