Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnnictとEPGStation側の録画ルールとのマッピング情報を保存するように変更 #84

Merged
merged 6 commits into from
Jan 3, 2024

Conversation

musaprg
Copy link
Member

@musaprg musaprg commented Dec 27, 2023

fixes #1
fixes #85

 ❯ ./annict-epgstation-connector sync -d
2024/01/04 01:46:33 INFO start sync in daemon mode interval=60
2024/01/04 01:46:33 INFO syncing...
2024/01/04 01:46:33 INFO finish sync and sleep interval=60
 ❯ curl -s localhost:8080/metrics
# HELP annict_epgstation_connector_syncer_recording_rule_synced Whether the recording rule is synced.
# TYPE annict_epgstation_connector_syncer_recording_rule_synced gauge
annict_epgstation_connector_syncer_recording_rule_synced{annict_work_id="V29yay00MA==",rule_id="2200"} 1
annict_epgstation_connector_syncer_recording_rule_synced{annict_work_id="V29yay00MDAz",rule_id="2271"} 1
...
# HELP annict_epgstation_connector_syncer_sync_duration_seconds The time it takes to sync.
# TYPE annict_epgstation_connector_syncer_sync_duration_seconds histogram
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="0.005"} 0
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="0.01"} 0
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="0.025"} 0
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="0.05"} 0
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="0.1"} 0
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="0.25"} 0
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="0.5"} 1
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="1"} 2
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="2.5"} 2
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="5"} 2
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="10"} 2
annict_epgstation_connector_syncer_sync_duration_seconds_bucket{le="+Inf"} 2
annict_epgstation_connector_syncer_sync_duration_seconds_sum 0.8564094580000001
annict_epgstation_connector_syncer_sync_duration_seconds_count 2
# HELP annict_epgstation_connector_syncer_sync_success_total The number of successful syncs.
# TYPE annict_epgstation_connector_syncer_sync_success_total counter
annict_epgstation_connector_syncer_sync_success_total 2
...

@musaprg musaprg force-pushed the store-rule-to-annnict-mapping-in-db branch from 8afae11 to 74d3313 Compare December 27, 2023 16:11
@musaprg musaprg force-pushed the store-rule-to-annnict-mapping-in-db branch from 74d3313 to e255228 Compare January 3, 2024 06:57
Signed-off-by: Kotaro Inoue <[email protected]>
Signed-off-by: Kotaro Inoue <[email protected]>
Signed-off-by: Kotaro Inoue <[email protected]>
@musaprg musaprg marked this pull request as ready for review January 3, 2024 16:44
@musaprg musaprg merged commit 4b80ecc into master Jan 3, 2024
2 checks passed
@musaprg musaprg deleted the store-rule-to-annnict-mapping-in-db branch January 3, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EPGStationの録画ルールとAnnictの番組情報とのマッピングをDB上に持つ Add daemon mode
1 participant