Skip to content

Commit 4bb07ef

Browse files
adding custom extraction for metrics in apig (#501)
adding custom extraction for metrics in apig Reviewed-by: Anton Sidelnikov
1 parent c554fa0 commit 4bb07ef

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

otcextensions/sdk/apig/v2/_proxy.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1010
# License for the specific language governing permissions and limitations
1111
# under the License.
12-
1312
from openstack import proxy
1413

14+
from otcextensions.common.utils import extract_url_parts
15+
1516

1617
class Proxy(proxy.Proxy):
1718

1819
skip_discovery = True
20+
21+
def _extract_name(self, url, service_type=None, project_id=None):
22+
return extract_url_parts(url, project_id)

0 commit comments

Comments
 (0)