FPRConsoleURLGenerator.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #import <Foundation/Foundation.h>
  15. /** This class generated the console URLs for a project or a metric.*/
  16. @interface FPRConsoleURLGenerator : NSObject
  17. /**
  18. * Generates the console URL for the dashboard page of the project.
  19. *
  20. * @param projectID The Firebase project ID.
  21. * @param bundleID The bundle ID of this project.
  22. * @return The console URL for the dashboard page.
  23. */
  24. + (NSString *)generateDashboardURLWithProjectID:(NSString *)projectID bundleID:(NSString *)bundleID;
  25. /**
  26. * Generates the console URL for the custom trace page.
  27. *
  28. * @param projectID The Firebase project ID.
  29. * @param bundleID The bundle ID of this project.
  30. * @return The console URL for the custom trace page.
  31. */
  32. + (NSString *)generateCustomTraceURLWithProjectID:(NSString *)projectID
  33. bundleID:(NSString *)bundleID
  34. traceName:(NSString *)traceName;
  35. /**
  36. * Generates the console URL for the screen trace page.
  37. *
  38. * @param projectID The Firebase project ID.
  39. * @param bundleID The bundle ID of this project.
  40. * @return The console URL for the custom trace page.
  41. */
  42. + (NSString *)generateScreenTraceURLWithProjectID:(NSString *)projectID
  43. bundleID:(NSString *)bundleID
  44. traceName:(NSString *)traceName;
  45. @end