oracle / oracle/oci-python-sdk

resource name not getting cost analysis (Usageapi cllent)

Open
#637 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Usage
Dominant language
Python
Stars
474
Forks
321
Avg merge
23m
Merged PRs (30d)
4

Description

In the usage API call, many values return as "none". In the JSON response, the "resource name" key is present but its value is null. Could you assist me in making the correct API call to retrieve these values? @adizohar, for your help

  "compartment_id": null,
  "compartment_name": null,
  "compartment_path": null,
  "computed_amount": null,
  "computed_quantity": 0.0,
  "currency": " ",
  "discount": null,
  "is_forecast": false,
  "list_rate": null,
  "overage": null,
  "overages_flag": null,
  "platform": null,
 **"resource_name": null,**
  "service": "Virtual Cloud Network",
  "shape": null,
 "tenant_id": null,
  "tenant_name": null,
  "time_usage_ended": "2023-05-14T00:00:00+00:00",
  "time_usage_started": "2023-05-01T00:00:00+00:00",
  "unit": null,
  **"unit_price": null,**
  "weight": null

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Usage API call and the JSON response shown in the issue, focusing on the null resource_name and related cost fields. Determine which request parameters or API behavior control these values; the work is done when the call returns the expected resource name and cost data.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.