Get billing stats by Groups

@param groups groups array
@return List of Group billing stats
557482
public List<BillingStats> getBillingStats(Group... groups) {
        List<BillingStats> result = new ArrayList<>();
        List<Group> groupList = Arrays.asList(groups);

        groupList.forEach(
            group -> result.add(
                converter.convertBillingStats(
                    client.getGroupBillingStats(idByRef(group))
                )
            )
        );

        return result;
    }
1069851
def list(self):
        """"""
        mask = """mask[availableInstanceCount, occupiedInstanceCount,
instances[id, billingItem[description, hourlyRecurringFee]], instanceCount, backendRouter[datacenter]]"""
        results = self.client.call('Account', 'getReservedCapacityGroups', mask=mask)
        return results
379608
@Override
	public List<CommerceDiscount> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
298149
@Override
    public Iterator findMemberGroups(IEntityGroup group) throws GroupsException {

        if (isTreeRefreshRequired()) {
            refreshTree();
        }

        log.debug("Invoking findMemberGroups() for group:  {}", group.getLocalKey());

        List<IEntityGroup> rslt = new ArrayList<>();

        List<String> list = groupsTree.getChildren().get(group.getLocalKey());
        if (list != null) {
            // should only reach this code if its a SmartLdap managed group...
            for (String s : list) {
                rslt.add(groupsTree.getGroups().get(s));
            }
        }

        return rslt.iterator();
    }
240979
@RunAsSystem
  public Group getGroup(String groupName) {
    Fetch roleFetch = new Fetch().field(RoleMetadata.NAME).field(RoleMetadata.LABEL);
    Fetch fetch =
        new Fetch()
            .field(GroupMetadata.ROLES, roleFetch)
            .field(GroupMetadata.NAME)
            .field(GroupMetadata.LABEL)
            .field(GroupMetadata.DESCRIPTION)
            .field(GroupMetadata.ID)
            .field(GroupMetadata.PUBLIC)
            .field(GroupMetadata.ROOT_PACKAGE);

    Group group =
        dataService
            .query(GroupMetadata.GROUP, Group.class)
            .eq(GroupMetadata.NAME, groupName)
            .fetch(fetch)
            .findOne();
    if (group == null) {
      throw new UnknownEntityException(
          groupMetadata, groupMetadata.getAttribute(GroupMetadata.NAME), groupName);
    }
    return group;
  }
636251
@Override
    public List<GroupDef> getGroups() {
        List<GroupDef> groups = new ArrayList<GroupDef>();
        for (Node group : model.get("group")) {
            groups.add(new GroupDefImpl(getDescriptorName(), model, group));
        }
        return groups;
    }
748165
@Override
	public List<String> getJobGroups() throws SchedulerException {
		List<String> groups = scheduler.getJobGroupNames();
		Collections.sort(groups);
		return groups;
	}
380276
public Map<Group, List<ServerMonitoringStatistics>> getMonitoringStatsAsMap(List<Group> groups, ServerMonitoringFilter config) {
        Map<Group, List<ServerMonitoringStatistics>> result = new HashMap<>(groups.size());
        groups.stream()
            .forEach(group -> result.put(group, getMonitoringStats(group, config)));

        return result;
    }
886076
@Test(groups = {SAMPLES})
    public void getMonitoringStatisticsGroupedByDatacenters() {
        List<MonitoringStatsEntry> stats = statisticsService
            .monitoringStats()
            .forGroups(
                new GroupFilter().nameContains(nameCriteria)
            )
            .forTime(new ServerMonitoringFilter().last(Duration.ofDays(2)))
            .groupByDataCenter();

        assertNotNull(stats);
    }
1116280
@Override
	public List<CommercePaymentMethodGroupRel> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
900777
@Test(groups = {SAMPLES})
    public void getBillingStatisticsGroupedByDatacenters() {
        List<BillingStatsEntry> stats = statisticsService
            .billingStats()
            .forGroups(
                new GroupFilter().nameContains(nameCriteria)
            )
            .groupByDataCenter();

        assertNotNull(stats);
    }
548318
public java.util.List<String> getGroupList() {
        if (groupList == null) {
            groupList = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return groupList;
    }
568907
@Nullable
    @ObjectiveCName("getGroups")
    public MVVMCollection<Group, GroupVM> getGroups() {
        if (modules.getGroupsModule() == null) {
            return null;
        }
        return modules.getGroupsModule().getGroupsCollection();
    }
498794
public List<Group> getTopGroups() {
        if (root != null && root.getGroups() != null && root.getGroups().size() == 1) {
            return root.getGroups().get(0).getGroups();
        }
        return new ArrayList<Group>();
    }
28380
public void setGroups(java.util.Collection<ReservationCoverageGroup> groups) {
        if (groups == null) {
            this.groups = null;
            return;
        }

        this.groups = new java.util.ArrayList<ReservationCoverageGroup>(groups);
    }
1192806
def GetAll(root_group_id,alias=None,session=None):
		
		if not alias:  alias = clc.v2.Account.GetAlias(session=session)

		groups = []
		for r in clc.v2.API.Call('GET','groups/%s/%s' % (alias,root_group_id),{}, session=session)['groups']:
			groups.append(Group(id=r['id'],alias=alias,group_obj=r,session=session))

		return(groups)
590814
public Map<Group, List<ServerMonitoringStatistics>> getMonitoringStatsAsMap(GroupFilter groupFilter, ServerMonitoringFilter config) {
        return getMonitoringStatsAsMap(Arrays.asList(getRefsFromFilter(groupFilter)), config);
    }