Adding external plugin for ACLP-MR service #823
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
This is linode CLI external plugin for ACLP-MR services. Here is how this requests going to looks like
Sample Command
linode-cli monitor-metrics-get --url 'https://mr-devcloud.cloud-observability-dev.akadns.net/v2beta/monitor/services/firewall/metrics'
--header 'Authorization: Bearer eyJhbGciOiAiZGlyIiwgImVuYyI6ICJBMTI4Q0JDLUhTMjU2IiwgImtpZCI6IDIsICJleHAiOiAxNzYyNDk5NzcxfQ..mZBA7PCPO0mI70rSwycEKQ.tw1l3aK3nlrQDsDTW7ew0ziMcjhukZFDT6VQ1WgTJJKuRuOxV_5ds7AcslyT32E82CblTr0dqdaOrkhMOkYSkbYE3XQHKTnmcxOrkFoIXlE4lVdZj1et6oYpVI1MzNT5Rod1uJdbMCVq2foMMU0zPK6n_CRk9vj0G-uSQhnOpgMtFkvMC_M00qYyx4S5SbFq1GKCBFvODXSnNilfSfdwUMWepZxHibLXJIPKLwoRuUbE4_YmWuDJVjTRn8PH0czwbXsUHVUrWfCr2S7HwVAIHc3rWptFtDEQKjqZeQATZPs0_8gGPEVqWWFjW8PPsuUdPl-aByoaXox7JKGLsknsMFaJY1-fl35iqru_KOxMux8.1eMkjtwm9etcVr2chlKySg'
--header 'Authentication-type: jwe'
--header 'Pragma: akamai-x-get-extracted-values'
--header 'Userid: 10001'
--header 'Content-Type: application/json'
--data '{"entity_ids":[1001], "relative_time_duration":{"unit":"min","value":60}, "metrics":[{"aggregate_function":"sum","name":"fw_ingress_bytes_accepted"}],"filters": [],
"associated_entity_region": "us-east", "time_granularity": {"value": 1, "unit": "days"}}'
['Authorization: Bearer eyJhbGciOiAiZGlyIiwgImVuYyI6ICJBMTI4Q0JDLUhTMjU2IiwgImtpZCI6IDIsICJleHAiOiAxNzYyNDk5NzcxfQ..mZBA7PCPO0mI70rSwycEKQ.tw1l3aK3nlrQDsDTW7ew0ziMcjhukZFDT6VQ1WgTJJKuRuOxV_5ds7AcslyT32E82CblTr0dqdaOrkhMOkYSkbYE3XQHKTnmcxOrkFoIXlE4lVdZj1et6oYpVI1MzNT5Rod1uJdbMCVq2foMMU0zPK6n_CRk9vj0G-uSQhnOpgMtFkvMC_M00qYyx4S5SbFq1GKCBFvODXSnNilfSfdwUMWepZxHibLXJIPKLwoRuUbE4_YmWuDJVjTRn8PH0czwbXsUHVUrWfCr2S7HwVAIHc3rWptFtDEQKjqZeQATZPs0_8gGPEVqWWFjW8PPsuUdPl-aByoaXox7JKGLsknsMFaJY1-fl35iqru_KOxMux8.1eMkjtwm9etcVr2chlKySg', 'Authentication-type: jwe', 'Pragma: akamai-x-get-extracted-values', 'Userid: 10001', 'Content-Type: application/json']
{'entity_ids': [1001], 'relative_time_duration': {'unit': 'min', 'value': 60}, 'metrics': [{'aggregate_function': 'sum', 'name': 'fw_ingress_bytes_accepted'}], 'filters': [], 'associated_entity_region': 'us-east', 'time_granularity': {'value': 1, 'unit': 'days'}}
Response
{
"data": {
"result": [],
"resultType": "matrix"
},
"isPartial": false,
"stats": {
"executionTimeMsec": 1,
"seriesFetched": "0"
},
"status": "success"
}
✔️ How to Test
What are the steps to reproduce the issue or verify the changes?
How do I run the relevant unit/integration tests?
📷 Preview
If applicable, include a screenshot or code snippet of this change. Otherwise, please remove this section.