"""Configuration and marshaling for feeds' service links.""" from flask_restful import fields from flask_restful import marshal_with from flask_restful import Resource from feed_status import flows def sentryURL(project_id: int, account='the-orchard') -> str: """Return sentry project link.""" return ('https://{account}.sentry.io/issues/' '?project={project_id}&statsPeriod=7d').format( project_id=project_id, account=account ) def schedulerURL(exec_name: str) -> str: """Return scheduler link.""" return 'https://scheduler.theorchard.io/job/{exec_name}/'.format( exec_name=exec_name) def pipelineURL(pipeline_name: str) -> str: """Return pipeline link.""" return 'https://pipeline.theorchard.io/job/{pipeline_name}/'.format( pipeline_name=pipeline_name) def jenkins_url_in_org_folder( repo: str, folder='theorchard', branch='master', server='pipeline') -> str: """Return pipeline link from Jenkins organization folder.""" return ('https://{server}.theorchard.io' '/job/{folder}' '/job/{repo}' '/job/{branch}/').format( server=server, repo=repo, folder=folder, branch=branch, ) def github_url( repo: str, branch: str = 'master', org='theorchard', folder='') -> str: """Return link to github repo.""" if branch: path = f'/tree/{branch}{folder}' else: path = '' return 'https://github.com/{org}/{repo}{path}'.format( org=org, repo=repo, path=path, ) def awsURL(flow_name: str) -> str: """Return AWS SWF workflow link.""" return ('https://us-east-1.console.aws.amazon.com/swf/v2/home' '?region=us-east-1' '#/domains/prod_swf_feed_ingestion/executions' '?relative_time=7&relative_unit=day&name[]={flow_name}' '&operation=and'.format( flow_name=flow_name)) def datadogCloudwatchURL(loggroup: str) -> str: """Return DataDog logGroup link for cloudwatch service.""" return ('https://sonymusic-pde.datadoghq.com/logs?' 'query=service%3Acloudwatch%20' '%40aws.awslogs.logGroup%3A{loggroup}'.format(loggroup=loggroup)) def datadogServiceURL(service: str) -> str: """Return DataDog direct servicelink.""" return ('https://sonymusic-pde.datadoghq.com/logs?' 'query=service%3A{service}+environment%3Aprod' '&cols=&index=&messageDisplay=inline' '&stream_sort=desc&live=true'.format(service=service)) # Activity detector urls def activity_detector_aws_url(flow_name: str) -> str: """Return a link to Activity Detector AWS SWF workflow.""" return ( 'https://us-east-1.console.aws.amazon.com/swf/v2/' 'home?region=us-east-1#/domains/prod_activity_detector/' f'workflows/{flow_name}/0.1' ) def activity_detector_datadog_url(flow_name: str) -> str: """Return a link to Activity Detector AWS SWF workflow.""" return ( 'https://sonymusic-pde.datadoghq.com/logs?query=' f'service%3Aswf-activity-detector%20{flow_name}%20' '&cols=host%2Cservice&index=%2A&messageDisplay=inline' '&refresh_mode=sliding&stream_sort=desc&viz=stream' ) def activity_detector_sentry_url(flow_name_part: str) -> str: """Return a link to Activity Detector AWS SWF workflow.""" return ( 'https://the-orchard.sentry.io/issues/?project=1223588' f'&query=logger%3Agarcon.prod_activity_detector.{flow_name_part}-*' ) supported_links = { 'amazon_digital_services_sme': 'amazon_digital_services', 'amazon_digital_services_theorchard': 'amazon_digital_services', 'amazon_music_sme_adsupported': 'amazon_music', 'amazon_music_sme_prime': 'amazon_music', 'amazon_music_sme_unlimited': 'amazon_music', 'amazon_music_theorchard_adsupported': 'amazon_music', 'amazon_music_theorchard_prime': 'amazon_music', 'amazon_music_theorchard_unlimited': 'amazon_music', 'apple_financial': 'apple_financial', 'apple_id_mapping_sme': 'apple_id_mapping_sme', 'apple_music_awal_amArtists': 'apple_music', 'apple_music_awal_amContainer': 'apple_music', 'apple_music_awal_amContentDemographics': 'apple_music', 'apple_music_awal_amLibraryEvents': 'apple_music', 'apple_music_awal_amNonRoyaltyStreams': 'apple_music', 'apple_music_awal_amNonRoyaltySummaryStreams': 'apple_music', 'apple_music_awal_amPlaylists': 'apple_music', 'apple_music_awal_amShazam': 'apple_music', 'apple_music_awal_amSongs': 'apple_music', 'apple_music_awal_amStreams': 'apple_music', 'apple_music_awal_amStreamsSummary': 'apple_music', 'apple_music_awal_amTotalLibraryAdds': 'apple_music', 'apple_music_sme_amArtists': 'apple_music', 'apple_music_sme_amContainer': 'apple_music', 'apple_music_sme_amContentDemographics': 'apple_music', 'apple_music_sme_amLibraryEvents': 'apple_music', 'apple_music_sme_amNonRoyaltyStreams': 'apple_music', 'apple_music_sme_amNonRoyaltySummaryStreams': 'apple_music', 'apple_music_sme_amPlaylists': 'apple_music', 'apple_music_sme_amShazam': 'apple_music', 'apple_music_sme_amSongs': 'apple_music', 'apple_music_sme_amStreams': 'apple_music', 'apple_music_sme_amStreamsSummary': 'apple_music', 'apple_music_sme_amTotalLibraryAdds': 'apple_music', 'apple_music_theorchard_amArtists': 'apple_music', 'apple_music_theorchard_amContainer': 'apple_music', 'apple_music_theorchard_amContentDemographics': 'apple_music', 'apple_music_theorchard_amLibraryEvents': 'apple_music', 'apple_music_theorchard_amNonRoyaltyStreams': 'apple_music', 'apple_music_theorchard_amNonRoyaltySummaryStreams': 'apple_music', 'apple_music_theorchard_amPlaylists': 'apple_music', 'apple_music_theorchard_amShazam': 'apple_music', 'apple_music_theorchard_amSongs': 'apple_music', 'apple_music_theorchard_amStreams': 'apple_music', 'apple_music_theorchard_amStreamsSummary': 'apple_music', 'apple_music_theorchard_amTotalLibraryAdds': 'apple_music', 'awa_theorchard': 'awa', 'awa_smej': 'awa', 'beatport': 'beatport', 'chartmetric_charts': 'chartmetric_charts', 'chartmetric_participants': 'chartmetric_participants', 'chartmetric_playlists_share': 'chartmetric_playlists_share', 'chartmetric_socials_backfill': 'chartmetric_socials_backfill', 'chartmetric_socials': 'chartmetric_socials', 'chartmetric_tracks': 'chartmetric_tracks', 'deezer_daily_sme': 'deezer', 'deezer_daily_theorchard': 'deezer', 'feature_fm_facebook': 'feature_fm_facebook', 'gfk': 'gfk', 'itunes_hides': 'itunes_hides', 'itunes_sme': 'itunes', 'itunes_theorchard': 'itunes', 'itunes_tickets': 'itunes_tickets', 'kugou_sme': 'kugou', 'kugou_theorchard': 'kugou', 'kuwo_sme': 'kuwo', 'kuwo_theorchard': 'kuwo', 'line_theorchard': 'line', 'line_smej': 'line', 'mrc': 'mrc', 'pandora_sme': 'pandora', 'pandora_theorchard': 'pandora', 'physical-warehouse-reports': 'physical_warehouse_reports', 'proper_daily_goodsin': 'proper_daily', 'proper_daily_sales': 'proper_daily', 'proper_daily_shortages': 'proper_daily', 'proper_daily_stock': 'proper_daily', 'qq_sme': 'qq', 'qq_theorchard': 'qq', 'ritmogestion': 'ritmogestion', 'sme_latam': 'sme_latam', 'soundcloud_theorchard': 'soundcloud', 'soundcloud_sme': 'soundcloud', 'spotify_artificial_streams': 'spotify_artificial_streams', 'spotify_sme_aggregated_streams': 'spotify', 'spotify_sme_streams': 'spotify', 'spotify_sme_sub_30_sec_streams': 'spotify', 'spotify_smejpintl_aggregated_streams': 'spotify', 'spotify_smejpintl_streams': 'spotify', 'spotify_smejpintl_sub_30_sec_streams': 'spotify', 'spotify_theorchard_aggregated_streams': 'spotify', 'spotify_theorchard_streams': 'spotify', 'spotify_theorchard_sub_30_sec_streams': 'spotify', 'spotify_charts_daily_top_songs': 'spotify_charts', 'spotify_charts_weekly_top_songs': 'spotify_charts', 'tiktok_sme': 'tiktok', 'tiktok_smejp': 'tiktok', 'tiktok_smejpintl': 'tiktok', 'tiktok_theorchard': 'tiktok', 'tiktok_openescrow': 'tiktok_openescrow', 'tiktok_fraudulent_streams_report': 'tiktok_fraudulent_streams_report', 'tiktok_weekly': 'tiktok_weekly', 'delphi_crm_complaint_tracking': 'delphi_crm', 'delphi_crm_held_emails': 'delphi_crm', 'delphi_crm_mc_unsubscribe_data': 'delphi_crm', 'vevo': 'vevo', 'wynk': 'wynk', 'youtube_claim_theorchard': 'youtube_claim', 'youtube_analytics_summary_streams_daily': 'youtube_analytics', 'youtube_claim_sme': 'youtube_claim', 'youtube_neo4j': 'youtube_neo4j', 'youtube_weekly': 'youtube_weekly', 'chartmetric_spike_detector': 'chartmetric_spike_detector', 'amazon_prime_marketshare': 'amazon_prime_marketshare', 'amazon_unlimited_marketshare': 'amazon_unlimited_marketshare', 'deezer_marketshare': 'deezer_marketshare', 'itunes_marketshare': 'itunes_marketshare', 'spotify_marketshare': 'spotify_marketshare', 'youtube_red_marketshare': 'youtube_red_marketshare', 'insta_reels_creations': 'insta_reels', 'insta_reels_views': 'insta_reels', 'youtube_channel_names_sme': 'youtube_channel_names', 'youtube_channel_names_theorchard': 'youtube_channel_names', 'youtube_facts_sme_asset': 'youtube_facts', 'youtube_facts_sme_video': 'youtube_facts', 'youtube_facts_theorchard_asset': 'youtube_facts', 'youtube_facts_theorchard_video': 'youtube_facts', 'youtube_asset_theorchard': 'youtube_asset', 'youtube_asset_sme': 'youtube_asset', 'youtube_video_theorchard': 'youtube_video', 'youtube_video_sme': 'youtube_video', 'snapchat_creations': 'snapchat', 'snapchat_views': 'snapchat', 'spotify_marquee_theorchard_segment_level': 'spotify_marquee', 'spotify_marquee_theorchard_campaign_level': 'spotify_marquee', 'spotify_track_metrics_playlist_atc': 'spotify_track_metrics', 'spotify_track_metrics_track_passion': 'spotify_track_metrics', 'spotify_track_metrics_track_conversion': 'spotify_track_metrics', 'netease': 'netease', 'ticketek_event_booking': 'ticketek', 'bandsintown_artist_optins': 'bandsintown', 'bandsintown_rsvp': 'bandsintown', 'bandsintown_sony_optins': 'bandsintown', 'bandsintown_ticketclick': 'bandsintown', 'bandsintown_tracking': 'bandsintown', 'spotify_marketshare_week_ending': 'spotify-marketshare-week-ending', 'seated_opt_ins': 'seated', 'physical_reporting_dpworld': 'physical_reporting', 'gfk_physical': 'gfk_physical', 'gfk_streaming': 'gfk_streaming', 'meta_daily_production_theorchard': 'meta_daily', 'meta_daily_production_sme': 'meta_daily', 'meta_daily_consumption_theorchard': 'meta_daily', 'meta_daily_consumption_sme': 'meta_daily', } for report in flows.YouTubeBulkReports.ALL_REPORTS: for licensor in ['theorchard', 'sme']: key = f'youtube_bulk_reports_{licensor}_{report}' supported_links[key] = 'youtube_bulk_reports' for feed_id in flows.Tadas.FEEDS: supported_links[feed_id] = 'tadas' for feed_id in flows.AmazonDatapulse.FEEDS: supported_links[feed_id] = 'amazon_datapulse' for report in flows.YOUTUBE_MONTHLY_REPORTS: key = f'youtube_monthly_{report}' supported_links[key] = 'youtube_monthly' service_links = { 'amazon_datapulse': { 'sentry': sentryURL(4511230012227584), 'scheduler': schedulerURL('swf-amazon-datapulse-exec'), 'datadog': datadogServiceURL('swf-amazon-datapulse'), 'aws_swf': awsURL('amazon_datapulse_feed_ingestion') }, 'amazon_digital_services': { 'sentry': sentryURL(5415597), 'scheduler': schedulerURL('swf-amazon-digital-services-v2-sf-exec'), 'pipeline': pipelineURL('swf-amazon-digital-services-pipeline'), 'datadog': datadogServiceURL('swf-amazon-digital-services'), 'aws_swf': awsURL('amazon_digital_services_feed_ingestion') }, 'amazon_music': { 'sentry': sentryURL(6490335), 'scheduler': schedulerURL('swf-amazon-music-v2-exec'), 'pipeline': pipelineURL('swf-amazon-music-pipeline'), 'datadog': datadogServiceURL('swf-amazon-music'), 'aws_swf': awsURL('amazon_music_feed_ingestion') }, 'apple_financial': { 'sentry': sentryURL(4508370958352384), 'scheduler': schedulerURL('swf-apple-financial-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-apple-financial'), 'aws_swf': awsURL('apple_financial_feed_ingestion') }, 'apple_id_mapping_sme': { 'sentry': sentryURL(5341260), 'scheduler': schedulerURL('swf-apple-id-mapping-sme-exec'), 'pipeline': pipelineURL('swf-apple-id-mapping-sme-pipeline'), 'datadog': datadogServiceURL('swf-apple-id-mapping-sme'), 'aws_swf': awsURL('apple_id_mapping_sme_feed_ingestion') }, 'apple_music': { 'sentry': sentryURL(4504452892131328), 'scheduler': schedulerURL('swf-apple-music-streams-exec'), 'pipeline': pipelineURL('swf-am-streams-pipeline'), 'datadog': datadogServiceURL('swf-apple-music-streams'), 'aws_swf': awsURL('apple_music_feed_ingestion') }, 'awa': { 'sentry': sentryURL(5964583), 'scheduler': schedulerURL('swf-awa-exec'), 'pipeline': pipelineURL('swf-awa-pipeline'), 'datadog': datadogServiceURL('swf-awa'), 'aws_swf': awsURL('awa_feed_ingestion') }, 'beatport': { 'sentry': sentryURL(6618021), 'scheduler': schedulerURL('swf-beatport-exec'), 'pipeline': pipelineURL('swf-beatport-pipeline'), 'datadog': datadogServiceURL('swf-beatport'), 'aws_swf': awsURL('beatport_feed_ingestion') }, 'chartmetric_charts': { 'sentry': sentryURL(5216385), 'scheduler': schedulerURL('swf-chartmetric-charts-exec'), 'pipeline': pipelineURL('swf-chartmetric-charts-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-chartmetric-charts'), 'aws_swf': awsURL('chartmetric_charts_feed_ingestion') }, 'chartmetric_participants': { 'sentry': sentryURL(5223949), 'scheduler': schedulerURL('swf-cm-participants-exec'), 'pipeline': pipelineURL('swf-cm-participants-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-cm-participants'), 'aws_swf': awsURL('chartmetric_participants_feed_ingestion') }, 'chartmetric_playlists_share': { 'sentry': sentryURL(5529132), 'scheduler': schedulerURL('swf-cm-playlists-share-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-ch-playlists-share-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-cm-playlists-share'), 'aws_swf': awsURL('chartmetric_playlists_share_feed_ingestion') }, 'chartmetric_socials': { 'sentry': sentryURL(5222655), 'scheduler': schedulerURL('swf-chartmetric-socials-exec'), 'pipeline': pipelineURL('swf-chartmetric-socials-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-chartmetric-socials'), 'aws_swf': awsURL('chartmetric_socials_feed_ingestion') }, 'chartmetric_socials_backfill': { 'sentry': sentryURL(5386821), 'scheduler': schedulerURL('swf-cm_socials_backfill-exec'), 'pipeline': pipelineURL( 'swf-chartmetric-socials-backfill-pipeline'), 'datadog': datadogServiceURL( 'swf-feed-ingestion-cm-socials-backfill-pipeline'), 'aws_swf': awsURL('chartmetric_socials_backfill_feed_ingestion') }, 'chartmetric_tracks': { 'sentry': sentryURL(5384626), 'scheduler': schedulerURL('swf-chartmetric-tracks-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-chartmetric-tracks-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-chartmetric-tracks'), 'aws_swf': awsURL('chartmetric_tracks_feed_ingestion') }, 'deezer': { 'sentry': sentryURL(65278), 'scheduler': schedulerURL('swf-deezer-exec-job'), 'pipeline': pipelineURL('swf-deezer-pipeline'), 'datadog': datadogServiceURL('swf-deezer'), 'aws_swf': awsURL('deezer_daily_feed_ingestion') }, 'feature_fm_facebook': { 'sentry': sentryURL(1520347), 'scheduler': schedulerURL('swf-feature-fm-facebook-exec'), 'pipeline': pipelineURL('swf-feature-fm-facebook-pipeline'), 'datadog': datadogServiceURL('swf-feature-fm-facebook'), 'aws_swf': awsURL('feature_fm_facebook_feed_ingestion') }, 'gfk': { 'sentry': sentryURL(1260164), 'scheduler': schedulerURL('swf-gfk-exec'), 'pipeline': pipelineURL('swf-gfk-pipeline'), 'datadog': datadogServiceURL('swf-gfk'), 'aws_swf': awsURL('gfk_feed_ingestion') }, 'itunes': { 'sentry': sentryURL(6485264), 'scheduler': schedulerURL('swf-itunes-exec'), 'pipeline': pipelineURL('swf-itunes-pipeline'), 'datadog': datadogServiceURL('swf-itunes'), 'aws_swf': awsURL('itunes_feed_ingestion') }, 'itunes_hides': { 'sentry': sentryURL(6079712), 'scheduler': schedulerURL('swf-itunes-hides-exec'), 'pipeline': pipelineURL('swf-itunes-hides-pipeline'), 'datadog': datadogServiceURL('swf-itunes-hides'), 'aws_swf': awsURL('itunes_hides_feed_ingestion') }, 'itunes_tickets': { 'sentry': sentryURL(5679907), 'scheduler': schedulerURL('swf-itunes-tickets-exec'), 'pipeline': pipelineURL('swf-itunes-tickets-pipeline'), 'datadog': datadogServiceURL('swf-itunes-tickets'), 'aws_swf': awsURL('itunes_tickets_feed_ingestion') }, 'kugou': { 'sentry': sentryURL(4504316422914049), 'scheduler': schedulerURL('swf-kugou-exec'), 'pipeline': pipelineURL('swf-kugou-pipeline'), 'datadog': datadogServiceURL('swf-kugou'), 'aws_swf': awsURL('kugou_feed_ingestion') }, 'kuwo': { 'sentry': sentryURL(4504315707785216), 'scheduler': schedulerURL('swf-kuwo-exec'), 'pipeline': pipelineURL('swf-kuwo-pipeline'), 'datadog': datadogServiceURL('swf-kuwo'), 'aws_swf': awsURL('kuwo_feed_ingestion') }, 'line': { 'sentry': sentryURL(5651167), 'scheduler': schedulerURL('swf-line-exec'), 'pipeline': pipelineURL('swf-line-pipeline'), 'datadog': datadogServiceURL('swf-line'), 'aws_swf': awsURL('line_feed_ingestion') }, 'meta_daily': { 'sentry': sentryURL(4511429465669632), 'scheduler': schedulerURL('swf-meta-daily-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-meta-daily'), 'aws_swf': awsURL('meta_daily_feed_ingestion') }, 'mrc': { 'sentry': sentryURL(5736719), 'scheduler': schedulerURL('swf-mrc-exec'), 'pipeline': pipelineURL('swf-mrc-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-mrc'), 'aws_swf': awsURL('mrc_feed_ingestion') }, 'pandora': { 'sentry': sentryURL(197857), 'scheduler': schedulerURL('swf-pandora-exec-job'), 'pipeline': pipelineURL('swf-pandora-pipeline'), 'datadog': '', 'aws_swf': awsURL('pandora_feed_ingestion') }, 'physical_warehouse_reports': { 'sentry': sentryURL(4507571934855168), 'scheduler': schedulerURL('swf-physical-warehouse-reports-exec-job'), 'pipeline': pipelineURL('swf-physical-warehouse-reports-pipeline'), 'datadog': datadogServiceURL('physical-warehouse-reports'), 'aws_swf': awsURL('physical-warehouse-reports_feed_ingestion') }, 'physical_reporting': { 'sentry': sentryURL(4510974526291968), 'scheduler': schedulerURL('swf-physical-reporting-exec'), 'pipeline': pipelineURL('swf-physical-reporting-pipeline'), 'datadog': datadogServiceURL('swf-physical-reporting'), 'aws_swf': awsURL('physical_reporting_feed_ingestion') }, 'proper_daily': { 'sentry': sentryURL(5988785), 'scheduler': schedulerURL('swf-proper-ingest-exec'), 'pipeline': pipelineURL('swf-proper-incoming-pipeline'), 'datadog': datadogServiceURL('swf-proper-incoming'), 'aws_swf': awsURL('proper_daily_feed_ingestion') }, 'qq': { 'sentry': sentryURL(4504276960804864), 'scheduler': schedulerURL('swf-qq-exec'), 'pipeline': pipelineURL('swf-qq-pipeline'), 'datadog': datadogServiceURL('swf-qq'), 'aws_swf': awsURL('qq_feed_ingestion') }, 'ritmogestion': { 'sentry': sentryURL(6417914), 'scheduler': schedulerURL('swf-ritmogestion-exec'), 'pipeline': pipelineURL('swf-ritmogestion-pipeline'), 'datadog': datadogServiceURL('swf-ritmogestion'), 'aws_swf': awsURL('ritmogestion_feed_ingestion') }, 'sme_latam': { 'sentry': sentryURL(4504639993151488), 'scheduler': schedulerURL('swf-sme-latam-exec'), 'pipeline': pipelineURL('swf-sme-latam-pipeline'), 'datadog': datadogServiceURL('swf-sme-latam'), 'aws_swf': awsURL('sme_latam_feed_ingestion') }, 'soundcloud': { 'sentry': sentryURL(5679378), 'scheduler': schedulerURL('swf-soundcloud-v2-exec'), 'pipeline': pipelineURL('swf-soundcloud-pipeline'), 'datadog': datadogServiceURL('swf-soundcloud'), 'aws_swf': awsURL('soundcloud_feed_ingestion') }, 'spotify': { 'sentry': sentryURL(6368497), 'scheduler': schedulerURL('swf-spotify-sf-exec'), 'pipeline': pipelineURL('swf-spotify-pipeline'), 'datadog': datadogServiceURL('swf-spotify'), 'aws_swf': awsURL('spotify_feed_ingestion') }, 'spotify_charts': { 'sentry': sentryURL(6303779), 'scheduler': schedulerURL('swf-spotify-charts-exec'), 'pipeline': pipelineURL('swf-spotify-charts-pipeline'), 'datadog': datadogServiceURL('swf-spotify-charts'), 'aws_swf': awsURL('spotify_charts_feed_ingestion'), 'source': 'https://charts.spotify.com/charts/overview/global', }, 'spotify_artificial_streams': { 'sentry': sentryURL(4505782328557568), 'scheduler': schedulerURL('swf-feed-ingestion-spotify-art-streams-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-spotify-art-streams-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-spotify-art-streams'), 'aws_swf': awsURL('spotify_artificial_streams_feed_ingestion') }, 'tiktok': { 'sentry': sentryURL(5880074), 'scheduler': schedulerURL('swf-tiktok-exec'), 'pipeline': pipelineURL('swf-tiktok-pipeline'), 'datadog': datadogServiceURL('swf-tiktok'), 'aws_swf': awsURL('tiktok_feed_ingestion') }, 'tadas': { 'sentry': sentryURL(4509514654023680), 'pipeline': jenkins_url_in_org_folder(repo='tadas-etl'), 'datadog': datadogServiceURL('tadas-etl'), 'github': github_url('tadas-etl'), }, 'tiktok_fraudulent_streams_report': { 'sentry': sentryURL(4505646329036800), 'scheduler': schedulerURL('swf-tiktok-fraudulent-streams-report-exec'), 'pipeline': pipelineURL('swf-tiktok-fraudulent-streams-report-pipeline'), 'datadog': datadogServiceURL('swf-tiktok-fraudulent-streams-report'), 'aws_swf': awsURL('tiktok_fraudulent_streams_report') }, 'tiktok_weekly': { 'sentry': sentryURL(5608547), 'scheduler': schedulerURL('swf-tiktok-weekly-exec'), 'pipeline': pipelineURL('swf-tiktok-weekly-pipeline'), 'datadog': datadogServiceURL('swf-tiktok-weekly'), 'aws_swf': awsURL('tiktok_weekly_feed_ingestion') }, 'tiktok_openescrow': { 'scheduler': schedulerURL('swf-tiktok-openescrow-exec'), 'pipeline': pipelineURL('swf-tiktok-openescrow-pipeline'), 'datadog': datadogServiceURL('swf-tiktok-openescrow'), 'aws_swf': awsURL('tiktok_openescrow_feed_ingestion') }, 'delphi_crm': { 'sentry': sentryURL(4507770664255488), 'scheduler': schedulerURL('swf-delphi-crm-exec-job'), 'pipeline': pipelineURL('swf-delphi-crm-pipeline'), 'datadog': datadogServiceURL('swf-delphi-crm'), 'aws_swf': awsURL('delphi_crm_feed_ingestion') }, 'vevo': { 'sentry': sentryURL(6184003), 'scheduler': schedulerURL('swf-vevo-exec'), 'pipeline': pipelineURL('swf-vevo-pipeline'), 'datadog': datadogServiceURL('swf-vevo'), 'aws_swf': awsURL('vevo_feed_ingestion') }, 'wynk': { 'sentry': sentryURL(6525786), 'scheduler': schedulerURL('swf-wynk-exec'), 'pipeline': pipelineURL('swf-wynk-pipeline'), 'datadog': datadogServiceURL('swf-wynk'), 'aws_swf': awsURL('wynk_feed_ingestion') }, 'youtube_claim': { 'sentry': sentryURL(6493673), 'scheduler': schedulerURL('swf-youtube-claim-sf-exec'), 'pipeline': pipelineURL('swf-youtube-claim-pipeline'), 'datadog': datadogServiceURL('swf-youtube-claim'), 'aws_swf': awsURL('youtube_claim_feed_ingestion') }, 'youtube_bulk_reports': { 'sentry': sentryURL(5910785), 'scheduler': schedulerURL('swf-youtube-bulk-report-sf-garcon-exec'), 'pipeline': pipelineURL('swf-youtube-bulk-reports-pipeline'), 'datadog': datadogServiceURL('swf-youtube-bulk-reports'), 'aws_swf': awsURL('youtube_bulk_reports_feed_ingestion') }, 'youtube_neo4j': { 'sentry': sentryURL(5428729), 'scheduler': schedulerURL('swf-youtube-neo4j-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-youtube-neo4j-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-youtube-neo4j'), 'aws_swf': awsURL('youtube_neo4j') }, 'youtube_weekly': { 'sentry': sentryURL(1215625), 'scheduler': schedulerURL('swf-youtube-weekly-sf-exec'), 'pipeline': pipelineURL('swf-youtube-weekly-pipeline'), 'datadog': '', 'aws_swf': awsURL('youtube_weekly_feed_ingestion') }, 'chartmetric_spike_detector': { 'sentry': activity_detector_sentry_url('spike_detector'), 'scheduler': schedulerURL('prod-swf-activity-detector-exec'), 'pipeline': pipelineURL('swf-activity-detector-pipeline'), 'datadog': activity_detector_datadog_url('chartmetric_spike_detector'), 'aws_swf': activity_detector_aws_url('chartmetric_spike_detector'), }, 'amazon_prime_marketshare': { 'sentry': sentryURL(5976312), 'scheduler': schedulerURL('swf-amazon-prime-marketshare-v2-exec'), 'pipeline': pipelineURL('swf-amazon-prime-marketshare-pipeline'), 'datadog': datadogServiceURL( 'swf-feed-ingestion-amazon-prime-marketshare' ), 'aws_swf': awsURL('amazon_prime_marketshare_feed_ingestion') }, 'amazon_unlimited_marketshare': { 'sentry': sentryURL(5976429), 'scheduler': schedulerURL('swf-amazon-unlimited-marketshare-v2-exec'), 'pipeline': pipelineURL('swf-amazon-unlimited-marketshare-pipeline'), 'datadog': datadogServiceURL('swf-amazon-unlimited-marketshare'), 'aws_swf': awsURL('amazon_unlimited_marketshare_feed_ingestion') }, 'deezer_marketshare': { 'sentry': sentryURL(5976532), 'scheduler': schedulerURL('swf-deezer-marketshare-exec'), 'pipeline': pipelineURL('swf-deezer-marketshare-pipeline'), 'datadog': datadogServiceURL('swf-deezer-marketshare'), 'aws_swf': awsURL('deezer_marketshare_feed_ingestion') }, 'itunes_marketshare': { 'sentry': sentryURL(5978111), 'scheduler': schedulerURL('swf-itunes-marketshare-exec'), 'pipeline': pipelineURL('swf-itunes-marketshare-pipeline'), 'datadog': datadogServiceURL('swf-itunes-marketshare'), 'aws_swf': awsURL('itunes_marketshare_feed_ingestion') }, 'spotify_marketshare': { 'sentry': sentryURL(5991628), 'scheduler': schedulerURL('swf-spotify-marketshare-exec'), 'pipeline': pipelineURL('swf-spotify-marketshare-pipeline'), 'datadog': datadogServiceURL('swf-spotify-marketshare'), 'aws_swf': awsURL('spotify_marketshare_feed_ingestion') }, 'youtube_red_marketshare': { 'sentry': sentryURL(5981686), 'scheduler': schedulerURL('swf-youtube-red-marketshare-exec'), 'pipeline': pipelineURL('swf-youtube-red-marketshare-pipeline'), 'datadog': datadogServiceURL('swf-youtube-red-marketshare'), 'aws_swf': awsURL('youtube_red_marketshare_feed_ingestion') }, 'insta_reels': { 'sentry': sentryURL(4504803118415872), 'scheduler': schedulerURL('swf-insta-reels-exec'), 'pipeline': pipelineURL('swf-insta-reels-pipeline'), 'datadog': datadogServiceURL('swf-insta-reels'), 'aws_swf': awsURL('insta_reels_feed_ingestion') }, 'youtube_channel_names': { 'sentry': sentryURL(5429708), 'scheduler': schedulerURL('swf-feed-ingestion-yt-channel-names-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-yt-channel-names-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-yt-channel-names'), 'aws_swf': awsURL('youtube_channel_names_feed_ingestion') }, 'youtube_monthly': { 'sentry': sentryURL(5981476), 'scheduler': schedulerURL('swf-youtube-monthly-exec'), 'pipeline': pipelineURL('swf-youtube-monthly-pipeline'), 'datadog': datadogServiceURL('swf-youtube-monthly'), 'aws_swf': awsURL('youtube_monthly_feed_ingestion') }, 'youtube_analytics': { 'sentry': sentryURL(5981476), 'scheduler': schedulerURL('swf-feed-ingestion-youtube-analytics-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-youtube-analytics-pipeline'), 'datadog': datadogServiceURL('swf-youtube-analytics'), 'aws_swf': awsURL('youtube_analytics_feed_ingestion') }, 'youtube_facts': { 'sentry': sentryURL(6349891), 'scheduler': schedulerURL('swf-youtube-facts-exec'), 'pipeline': pipelineURL('swf-youtube-facts-pipeline'), 'datadog': datadogServiceURL('swf-youtube-facts'), 'aws_swf': awsURL('youtube_facts_feed_ingestion') }, 'youtube_asset': { 'sentry': sentryURL(5985469), 'scheduler': schedulerURL('swf-youtube-asset-report-exec'), 'pipeline': pipelineURL('swf-youtube-asset-report-pipeline'), 'datadog': datadogServiceURL('swf-youtube-asset-report'), 'aws_swf': awsURL('youtube_asset_feed_ingestion') }, 'youtube_video': { 'sentry': sentryURL(5390109), 'scheduler': schedulerURL('swf-feed-ingestion-youtube-video-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-youtube-video-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-youtube-video'), 'aws_swf': awsURL('youtube_video_feed_ingestion') }, 'snapchat': { 'sentry': sentryURL(4507934503403520), 'scheduler': schedulerURL('swf-snapchat-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-feed-ingestion-snapchat'), 'aws_swf': awsURL('snapchat_feed_ingestion') }, 'spotify_marquee': { 'sentry': sentryURL(4508699094548480), 'scheduler': schedulerURL('swf-spotify-marquee-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-spotify-marquee'), 'aws_swf': awsURL('spotify_marquee_feed_ingestion') }, 'spotify_track_metrics': { 'sentry': sentryURL(4509717594963968), 'scheduler': schedulerURL('swf-spotify-track-metrics-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-spotify-track-metrics'), 'aws_swf': awsURL('spotify_track_metrics_feed_ingestion') }, 'netease': { 'sentry': sentryURL(4509322452795392), 'scheduler': schedulerURL('swf-netease-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-netease'), 'aws_swf': awsURL('netease_feed_ingestion') }, 'ticketek': { 'sentry': sentryURL(4509526237380608), 'scheduler': schedulerURL('swf-ticketek-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-ticketek'), 'aws_swf': awsURL('ticketek_feed_ingestion') }, 'bandsintown': { 'sentry': sentryURL(4509633325891584), 'scheduler': schedulerURL('swf-bandsintown-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-bandsintown'), 'aws_swf': awsURL('bandsintown_feed_ingestion') }, 'spotify-marketshare-week-ending': { 'sentry': sentryURL(6392254), 'scheduler': schedulerURL('spotify-marketshare-week-ending-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-spotify-marketshare-week-ending'), 'aws_swf': awsURL('spotify_marketshare_week_ending') }, 'seated': { 'sentry': sentryURL(4510913735819264), 'scheduler': schedulerURL('swf-seated-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-seated'), 'aws_swf': awsURL('seated_feed_ingestion') }, 'gfk_physical': { 'sentry': sentryURL(4511350290513920), 'scheduler': schedulerURL('swf-gfk-physical-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-gfk-physical'), 'aws_swf': awsURL('gfk_physical_feed_ingestion') }, 'gfk_streaming': { 'sentry': sentryURL(4511429729452032), 'scheduler': schedulerURL('swf-gfk-streaming-exec'), 'pipeline': pipelineURL('swf-feed-ingestion-pipeline'), 'datadog': datadogServiceURL('swf-gfk-streaming'), 'aws_swf': awsURL('gfk_streaming_feed_ingestion') }, } service_links_fields = { 'supported_links': fields.Raw, 'service_links': fields.Raw } class ServiceLinks(Resource): """Provides response for /ingestion_feed/service_links.""" @marshal_with(service_links_fields) def get(self): """Marshal specific IngestionFeed status. Returns: dict: json payload of feeds' links. """ return { 'supported_links': supported_links, 'service_links': service_links }, 200