org.twonote.rgwadmin4j.model.UsageInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of radosgw-admin4j Show documentation
Show all versions of radosgw-admin4j Show documentation
A Ceph Object Storage Admin SDK / Client Library for Java
package org.twonote.rgwadmin4j.model;
import org.twonote.rgwadmin4j.model.usage.Entries;
import org.twonote.rgwadmin4j.model.usage.Summary;
import java.util.List;
/*
Example:
{
"entries":[
{
"user":"howdoyoudo",
"buckets":[
{
"bucket":"howdoyoudo",
"time":"2017-04-05 08:00:00.000000Z",
"epoch":1491379200,
"owner":"howdoyoudo",
"categories":[
{
"category":"create_bucket",
"bytes_sent":171,
"bytes_received":0,
"ops":9,
"successful_ops":9
},
{
"category":"put_obj",
"bytes_sent":0,
"bytes_received":983040,
"ops":24,
"successful_ops":24
}
]
}
]
},
{
"user":"qqq",
"buckets":[
{
"bucket":"",
"time":"2017-04-05 08:00:00.000000Z",
"epoch":1491379200,
"owner":"qqq",
"categories":[
{
"category":"list_buckets",
"bytes_sent":2961,
"bytes_received":0,
"ops":9,
"successful_ops":9
}
]
}
]
}
],
"summary":[
{
"user":"howdoyoudo",
"categories":[
{
"category":"create_bucket",
"bytes_sent":171,
"bytes_received":0,
"ops":9,
"successful_ops":9
},
{
"category":"put_obj",
"bytes_sent":0,
"bytes_received":983040,
"ops":24,
"successful_ops":24
}
],
"total":{
"bytes_sent":171,
"bytes_received":983040,
"ops":33,
"successful_ops":33
}
},
{
"user":"qqq",
"categories":[
{
"category":"list_buckets",
"bytes_sent":2961,
"bytes_received":0,
"ops":9,
"successful_ops":9
}
],
"total":{
"bytes_sent":2961,
"bytes_received":0,
"ops":9,
"successful_ops":9
}
}
]
}
*/
/** Represents the request bandwidth usage information. */
public class UsageInfo {
private List entries;
private List summary;
public List getEntries() {
return entries;
}
public void setEntries(List entries) {
this.entries = entries;
}
public List getSummary() {
return summary;
}
public void setSummary(List summary) {
this.summary = summary;
}
}