Query for particular S3 bucket folder

Hi, is there any way to query the metrics of particular folder of S3 bucket.
I have this Query, which shows me the entire size changes, but i need to track changes in the particular folder of that bucket. I’d like to write query like this → entityName = ‘S3BucketName/foldername’

SELECT max(provider.bucketSizeBytes.Average) from DatastoreSample WHERE provider = ‘S3Bucket’ AND providerAccountId = ‘9999999’ AND entityName = ‘My S3 Bucket name’ TIMESERIES 1 day FACET entityName SINCE 1 week ago UNTIL 30 minutes ago