From 6b45d2a808769a4e6c042ce473a7ee99b192ef50 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 26 Jul 2018 22:37:05 +0000 Subject: [PATCH] --- Controllers/OpsController.cs | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Controllers/OpsController.cs b/Controllers/OpsController.cs index e5da9d8..1c409e2 100644 --- a/Controllers/OpsController.cs +++ b/Controllers/OpsController.cs @@ -46,7 +46,7 @@ namespace rockfishCore.Controllers } catch (Exception ex) { - Ret.OpsCheckMessage += $"AyaNova website: {ex.Message}\r\n"; + Ret.OpsCheckMessage += $"AyaNova site: {ex.Message}\r\n"; } try @@ -55,7 +55,7 @@ namespace rockfishCore.Controllers } catch (Exception ex) { - Ret.OpsCheckMessage += $"API website: {ex.Message}\r\n"; + Ret.OpsCheckMessage += $"API site: {ex.Message}\r\n"; } try @@ -64,7 +64,7 @@ namespace rockfishCore.Controllers } catch (Exception ex) { - Ret.OpsCheckMessage += $"Contact form website: {ex.Message}\r\n"; + Ret.OpsCheckMessage += $"Contact form: {ex.Message}\r\n"; } try @@ -73,7 +73,7 @@ namespace rockfishCore.Controllers } catch (Exception ex) { - Ret.OpsCheckMessage += $"Request website: {ex.Message}\r\n"; + Ret.OpsCheckMessage += $"Request form: {ex.Message}\r\n"; } try @@ -82,7 +82,7 @@ namespace rockfishCore.Controllers } catch (Exception ex) { - Ret.OpsCheckMessage += $"RequestLite website: {ex.Message}\r\n"; + Ret.OpsCheckMessage += $"RequestLite form: {ex.Message}\r\n"; } try @@ -91,7 +91,7 @@ namespace rockfishCore.Controllers } catch (Exception ex) { - Ret.OpsCheckMessage += $"Subversion server: {ex.Message}\r\n"; + Ret.OpsCheckMessage += $"Subversion: {ex.Message}\r\n"; } try @@ -112,6 +112,15 @@ namespace rockfishCore.Controllers Ret.OpsCheckMessage += $"DevOps: {ex.Message}\r\n"; } + try + { + Ret.BackupOK = OpsDiagnostics.VerifyBackups(); + } + catch (Exception ex) + { + Ret.OpsCheckMessage += $"Backup: {ex.Message}\r\n"; + } + //PING? @@ -128,17 +137,8 @@ namespace rockfishCore.Controllers //Forum: http://forum.ayanova.com/ //devops: https://test.helloayanova.com/api/v8/ //Spaces and backup: https://gztw1.nyc3.digitaloceanspaces.com/ - //Need S3 library for c# - /* - IAmazonS3 amazonS3Client = - AWSClientFactory.CreateAmazonS3Client("your-spaces-key", "your-spaces-key-secrete", - new AmazonS3Config - { - ServiceURL = "https://nyc3.digitaloceanspaces.com" - } -); -var myBuckets = amazonS3Client.ListBuckets(); - */ + //confirm expected backup files are present + return Ret;