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

FIX: Chang the timing about calling logAnalytics.Post #8

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

miyagin15
Copy link

@miyagin15 miyagin15 commented Mar 5, 2022

I want to merge this change because this code posts many requests and the wrong JSON to the logAnalytics.

Before the code call API each resource. These are some example JSONs posted to the logAnalytics.

  1. first call: [ {"PreTaxCost": {cost},"Date": "{sDate}","ResourceId": "{sResourceId}","ResourceType": "{sResourceType}","SubscriptionName": "{sSubscriptionName}","ResourceGroup": "{sResourceGroup}"}]
  2. second call: [{"PreTaxCost": {cost},"Date": "{sDate}","ResourceId": "{sResourceId}","ResourceType": "{sResourceType}","SubscriptionName": "{sSubscriptionName}","ResourceGroup": "{sResourceGroup}"}]
    $",{"PreTaxCost": {cost},"Date": "{sDate}","ResourceId": "{sResourceId}","ResourceType": "{sResourceType}","SubscriptionName": "{sSubscriptionName}","ResourceGroup": "{sResourceGroup}"}]
    ...

@ghost
Copy link

ghost commented Mar 5, 2022

CLA assistant check
All CLA requirements met.

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.

1 participant