GET /organizations/{organization_id}/organization_periodic_usages
and GET /organizations/{organization_id}/space_periodic_usages endpoints are
deprecated in favor of the new Usage API. They will be removed on 2027-02-28, after
which requests will return 410 Gone.@Deprecated public class CMAUsage extends CMAResource
| Modifier and Type | Class and Description |
|---|---|
static class |
CMAUsage.DateRange
Deprecated.
|
static class |
CMAUsage.UsageMetric
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CMAUsage.DateRange |
getDateRange()
Deprecated.
|
CMAUsage.UsageMetric |
getMetric()
Deprecated.
|
String |
getUnitOfMeasure()
Deprecated.
|
int |
getUsage()
Deprecated.
|
LinkedHashMap<String,Integer> |
getUsagePerDay()
Deprecated.
|
void |
setDateRange(CMAUsage.DateRange dateRange)
Deprecated.
|
void |
setMetric(CMAUsage.UsageMetric metric)
Deprecated.
|
void |
setUnitOfMeasure(String unitOfMeasure)
Deprecated.
|
void |
setUsage(int usage)
Deprecated.
|
void |
setUsagePerDay(LinkedHashMap<String,Integer> usagePerDay)
Deprecated.
|
getEnvironmentId, getId, getSpaceId, getSystem, getVersion, getVisibility, isArchived, isPublished, setEnvironmentId, setId, setSpaceId, setSystem, setVersion, setVisibility, toStringpublic CMAUsage(CMAType type)
public String getUnitOfMeasure()
public void setUnitOfMeasure(String unitOfMeasure)
public CMAUsage.UsageMetric getMetric()
public void setMetric(CMAUsage.UsageMetric metric)
public int getUsage()
public void setUsage(int usage)
public LinkedHashMap<String,Integer> getUsagePerDay()
public void setUsagePerDay(LinkedHashMap<String,Integer> usagePerDay)
public CMAUsage.DateRange getDateRange()
public void setDateRange(CMAUsage.DateRange dateRange)
Copyright © 2026 Contentful, GmbH.. All rights reserved.