[ 
https://issues.apache.org/jira/browse/HDDS-7709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Devesh Kumar Singh updated HDDS-7709:
-------------------------------------
    Description: 
If Path is Bucket:
- Keys
- TopN Keys with Age, Size details
- By Count - Give user option to select 10, 20, 30 etc
- By Size - Give user option to select With or Without Replica
- Dirs
- TopN Dirs with Age, Size, dirCount, keycount details
- By Count - Give user option to select 10, 20, 30 etc
- By Size - Give user option to select With or Without Replica

If Path is Volume:
- Buckets
- TopN Buckets with Age, Size, dirCount, keycount details
- By Count - Give user option to select 10, 20, 30 etc
- By Size - Give user option to select With or Without Replica


If Path is Directory:
- Keys
- TopN Keys with Age, Size details
- By Count - Give user option to select 10, 20, 30 etc
- By Size - Give user option to select With or Without Replica
- Dirs
- TopN Dirs with Age, Size, dirCount, keycount details
- By Count - Give user option to select 10, 20, 30 etc
- By Size - Give user option to select With or Without Replica


If Path is Key:
- Display: Size, Age details
{\{API End Point : }}
{{Request Type: GET}}
{\{API Path: }}/api/v1/namespace/entitymetrics?path=<path of 
volume/bucket/dir/key>
Sample Response:
{
"entityInfo":

{ "type": "DIRECTORY", "numVolume": -1, "numBucket": -1, "numDir": 2, "numKey": 
5, "status": "OK" }

,
"childEntityMetrics": [

{ "key": false, "path": "/volume1/bucket1/dir1/dir2", "size": 86060, 
"sizeWithReplica": 258180, "isKey": false, "keyCount": 4, "bucketCount": -1, 
"dirCount": 1, "volumeCount": -1, "type": "DIRECTORY", "creationTime": 
1671801625290, "modificationTime": 1671801625290 }

,

{ "key": true, "path": "/volume1/bucket1/dir1/LICENSE.txt", "size": 21515, 
"sizeWithReplica": 64545, "isKey": true, "keyCount": 0, "bucketCount": -1, 
"dirCount": -1, "volumeCount": -1, "type": "KEY", "creationTime": 
1671801625290, "modificationTime": 1671801625290 }

],
"status": "OK"
}

  was:
{{If Path is Bucket:}}
{{    - Keys}}
{{        - TopN Keys with Age, Size details}}
{{            - By Count - Give user option to select 10, 20, 30 etc }}
{{            - By Size - Give user option to select With or Without Replica}}
{{    - Dirs}}
{{        - TopN Dirs with Age, Size, dirCount, keycount details}}
{{            - By Count - Give user option to select 10, 20, 30 etc }}
{{            - By Size - Give user option to select With or Without Replica}}

{{If Path is Volume:}}
{{    - Buckets}}
{{        - TopN Buckets with Age, Size, dirCount, keycount details}}
{{            - By Count - Give user option to select 10, 20, 30 etc }}
{{            - By Size - Give user option to select With or Without Replica}}


{{If Path is Directory:}}
{{    - Keys}}
{{        - TopN Keys with Age, Size details}}
{{            - By Count - Give user option to select 10, 20, 30 etc }}
{{            - By Size - Give user option to select With or Without Replica}}
{{    - Dirs}}
{{        - TopN Dirs with Age, Size, dirCount, keycount details}}
{{            - By Count - Give user option to select 10, 20, 30 etc }}
{{            - By Size - Give user option to select With or Without Replica}}


{{If Path is Key:}}
{{    - Display: Size, Age details}}

{{API End Point : }}
{{Request Type: GET}}
{{API Path: }}/api/v1/namespace/entitymetrics?path=<path of 
volume/bucket/dir/key>
Sample Response:
{
"entityInfo": {
"type": "DIRECTORY",
"numVolume": -1,
"numBucket": -1,
"numDir": 2,
"numKey": 5,
"status": "OK"
},
"childEntityMetrics": [
{
"key": false,
"path": "/volume1/bucket1/dir1/dir2",
"size": 86060,
"sizeWithReplica": 258180,
"isKey": false,
"keyCount": 4,
"bucketCount": -1,
"dirCount": 1,
"volumeCount": -1,
"type": "DIRECTORY",
"creationTime": 1671801625290,
"modificationTime": 1671801625290
},
{
"key": true,
"path": "/volume1/bucket1/dir1/LICENSE.txt",
"size": 21515,
"sizeWithReplica": 64545,
"isKey": true,
"keyCount": 0,
"bucketCount": -1,
"dirCount": -1,
"volumeCount": -1,
"type": "KEY",
"creationTime": 1671801625290,
"modificationTime": 1671801625290
}
],
"status": "OK"
}


> Recon UI - Display various metrics based on entity path entered by user.
> ------------------------------------------------------------------------
>
>                 Key: HDDS-7709
>                 URL: https://issues.apache.org/jira/browse/HDDS-7709
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone Recon
>            Reporter: Devesh Kumar Singh
>            Priority: Major
>
> If Path is Bucket:
> - Keys
> - TopN Keys with Age, Size details
> - By Count - Give user option to select 10, 20, 30 etc
> - By Size - Give user option to select With or Without Replica
> - Dirs
> - TopN Dirs with Age, Size, dirCount, keycount details
> - By Count - Give user option to select 10, 20, 30 etc
> - By Size - Give user option to select With or Without Replica
> If Path is Volume:
> - Buckets
> - TopN Buckets with Age, Size, dirCount, keycount details
> - By Count - Give user option to select 10, 20, 30 etc
> - By Size - Give user option to select With or Without Replica
> If Path is Directory:
> - Keys
> - TopN Keys with Age, Size details
> - By Count - Give user option to select 10, 20, 30 etc
> - By Size - Give user option to select With or Without Replica
> - Dirs
> - TopN Dirs with Age, Size, dirCount, keycount details
> - By Count - Give user option to select 10, 20, 30 etc
> - By Size - Give user option to select With or Without Replica
> If Path is Key:
> - Display: Size, Age details
> {\{API End Point : }}
> {{Request Type: GET}}
> {\{API Path: }}/api/v1/namespace/entitymetrics?path=<path of 
> volume/bucket/dir/key>
> Sample Response:
> {
> "entityInfo":
> { "type": "DIRECTORY", "numVolume": -1, "numBucket": -1, "numDir": 2, 
> "numKey": 5, "status": "OK" }
> ,
> "childEntityMetrics": [
> { "key": false, "path": "/volume1/bucket1/dir1/dir2", "size": 86060, 
> "sizeWithReplica": 258180, "isKey": false, "keyCount": 4, "bucketCount": -1, 
> "dirCount": 1, "volumeCount": -1, "type": "DIRECTORY", "creationTime": 
> 1671801625290, "modificationTime": 1671801625290 }
> ,
> { "key": true, "path": "/volume1/bucket1/dir1/LICENSE.txt", "size": 21515, 
> "sizeWithReplica": 64545, "isKey": true, "keyCount": 0, "bucketCount": -1, 
> "dirCount": -1, "volumeCount": -1, "type": "KEY", "creationTime": 
> 1671801625290, "modificationTime": 1671801625290 }
> ],
> "status": "OK"
> }



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to