this is the part you use dev tools and

this is the part you use dev tools and steal from the dashboard for
1 Reply
Chaika
ChaikaOP2y ago
Class A Query:
query {
viewer {
accounts(filter: { accountTag: "b9e510810e1e12fcd40826d266a1fb12"}) {
r2OperationsAdaptiveGroups(
filter: {
date_geq: "2023-04-01",
date_leq: "2023-04-30",
actionType_in:["ListBuckets","PutBucket","ListObjects","PutObject","CopyObject","CompleteMultipartUpload","CreateMultipartUpload","UploadPart","UploadPartCopy","PutBucketEncryption","ListMultipartUploads"],
actionStatus_in:["success","userError"]
},
limit: 10000
) {
dimensions {
bucketName
}
sum {
requests
}
}
}
}
}
query {
viewer {
accounts(filter: { accountTag: "b9e510810e1e12fcd40826d266a1fb12"}) {
r2OperationsAdaptiveGroups(
filter: {
date_geq: "2023-04-01",
date_leq: "2023-04-30",
actionType_in:["ListBuckets","PutBucket","ListObjects","PutObject","CopyObject","CompleteMultipartUpload","CreateMultipartUpload","UploadPart","UploadPartCopy","PutBucketEncryption","ListMultipartUploads"],
actionStatus_in:["success","userError"]
},
limit: 10000
) {
dimensions {
bucketName
}
sum {
requests
}
}
}
}
}
Class B query:
query {
viewer {
accounts(filter: { accountTag: "b9e510810e1e12fcd40826d266a1fb12"}) {
r2OperationsAdaptiveGroups(
filter: {
date_geq: "2023-04-01",
date_leq: "2023-04-30",
actionType_in:["HeadBucket","HeadObject","GetObject","ReportUsageSummary","GetBucketEncryption","GetBucketLocation"],
actionStatus_in:["success","userError"]
},
limit: 10000
) {
dimensions {
bucketName
}
sum {
requests
}
}
}
}
}
query {
viewer {
accounts(filter: { accountTag: "b9e510810e1e12fcd40826d266a1fb12"}) {
r2OperationsAdaptiveGroups(
filter: {
date_geq: "2023-04-01",
date_leq: "2023-04-30",
actionType_in:["HeadBucket","HeadObject","GetObject","ReportUsageSummary","GetBucketEncryption","GetBucketLocation"],
actionStatus_in:["success","userError"]
},
limit: 10000
) {
dimensions {
bucketName
}
sum {
requests
}
}
}
}
}
Replace Account Id with your own. That's the same queries the dashboard uses for Class A/ Class B showing
Want results from more Discord servers?
Add your server