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

Send basic tofi history to Toaster-ToasterDB #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alt-dima
Copy link
Owner

@alt-dima alt-dima commented May 4, 2024

Implemented basic history POST request to Toaster
Info stored in ToasterDB like

{
  "_id": { "$oid": "66367db93509ca433fdcfb06" },
  "orgname": "demo-org",
  "workspace": "master",
  "tofiname": "vpc",
  "cmdtoexec": "tofu",
  "cmdargs": [
    "-backend-config=bucket=default-tfstates",
    "-backend-config=key=org_demo-org/account_test-account/datacenter_staging1/vpc.tfstate",
    "-backend-config=region=us-east-2"
  ],
  "cmdmainarg": "init",
  "exitcode": { "$numberInt": "1" },
  "dimensions": {
    "account": "test-account",
    "datacenter": "staging1"
  },
  "accountid": "662cab7c5e226819838b01fa",
  "datecreated": {
    "$date": { "$numberLong": "1714846798515" }
  }
}

@alt-dima alt-dima self-assigned this May 4, 2024
@alt-dima alt-dima added the enhancement New feature or request label May 4, 2024
@alt-dima alt-dima linked an issue May 4, 2024 that may be closed by this pull request
@alt-dima alt-dima changed the title Add history post to toaster Send basic tofi history to Toaster-ToasterDB May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Analytics for tofi and dimensions state (infrastructure state)
1 participant